*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --bg3: #13131f;
  --card: #16161f;
  --card2: #1c1c2e;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --green: #22c55e;
  --text: #e2e8f0;
  --muted: #64748b;
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.logo-text {
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

.logo-text strong {
  color: var(--accent2);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--card2);
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* SEARCH BAR */
.search-bar {
  display: none;
  padding: 12px 2rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.search-bar.open {
  display: block;
}

.search-bar input {
  width: 100%;
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: var(--accent);
}

.search-results {
  position: absolute;
  top: calc(100% - 12px);
  left: 2rem;
  right: 2rem;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.search-result-item:hover {
  background: var(--card);
}

.search-result-item .sri-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 5px;
}

.search-result-item .sri-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.search-result-item .sri-info strong {
  display: block;
  font-size: 0.9rem;
}

.search-result-item .sri-info small {
  color: var(--muted);
  font-size: 0.78rem;
}

.search-result-item .sri-badge {
  margin-left: auto;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(108, 99, 255, 0.2);
  color: var(--accent2);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(108, 99, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(167, 139, 250, 0.08) 0%, transparent 60%),
    var(--bg);
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--accent2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2), #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-search {
  display: flex;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.hero-search input {
  flex: 1;
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.hero-search input:focus {
  border-color: var(--accent);
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat span {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

/* HERO VISUAL */
.hero-visual {
  flex: 1;
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card2);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  animation: float 4s ease-in-out infinite;
}

.floating-card strong {
  display: block;
  font-size: 0.88rem;
}

.floating-card small {
  color: var(--muted);
  font-size: 0.75rem;
}

.fc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  padding: 4px;
}

.fc-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fc-badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  font-weight: 600;
}

.fc1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.fc2 {
  top: 10%;
  right: 5%;
  animation-delay: 1s;
}

.fc3 {
  bottom: 20%;
  left: 0%;
  animation-delay: 2s;
}

.fc4 {
  bottom: 10%;
  right: 10%;
  animation-delay: 0.5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* TICKER */
.ticker-wrap {
  background: var(--card2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 0;
}

.ticker {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.ticker span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  flex-shrink: 0;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* SECTIONS */
.section {
  padding: 90px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1rem;
}

/* CATEGORIES */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
}

.cat-card:hover {
  border-color: var(--accent);
  background: var(--card2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.2);
}

.cat-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.cat-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cat-card span {
  color: var(--muted);
  font-size: 0.75rem;
}

/* FILTER TABS */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  color: var(--text);
  border-color: var(--accent);
}

.tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-color: transparent;
}

/* SOFTWARE GRID */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.sw-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.sw-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.sw-card:hover {
  border-color: rgba(108, 99, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.sw-card:hover::before {
  opacity: 1;
}

.sw-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
}

.sw-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 7px;
}

.sw-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sw-info {
  flex: 1;
  min-width: 0;
}

.sw-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-info .sw-version {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
}

.sw-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.sw-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.tag-free {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.tag-popular {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.tag-new {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.tag-security {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.sw-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sw-size {
  color: var(--muted);
  font-size: 0.78rem;
}

.sw-dl-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sw-dl-btn:hover {
  opacity: 0.85;
}

.sw-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sw-rating .stars {
  color: #fbbf24;
  font-size: 0.75rem;
}

.sw-rating span {
  color: var(--muted);
  font-size: 0.75rem;
}

/* BANNER */
.banner-section {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(167, 139, 250, 0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 70px 0;
}

.banner-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.banner-text {
  flex: 1;
  min-width: 280px;
}

.banner-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.banner-text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.banner-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.mini-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.mini-card span {
  font-size: 1.8rem;
}

.mini-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px;
}

.mini-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mini-card strong {
  display: block;
  font-size: 0.88rem;
}

.mini-card small {
  color: var(--muted);
  font-size: 0.75rem;
}

.stars {
  color: #fbbf24;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* STEPS */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}

.step-card:hover {
  border-color: rgba(108, 99, 255, 0.4);
  transform: translateY(-4px);
}

.step-num {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(108, 99, 255, 0.1);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  letter-spacing: -2px;
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* FOOTER */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.social-links a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--accent2);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.8rem;
}

.trust-badges {
  display: flex;
  gap: 1rem;
}

.trust-badges span {
  color: var(--muted);
  font-size: 0.78rem;
  background: var(--card2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 460px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  overflow: hidden;
  padding: 12px;
}

.modal-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.modal p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.modal-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.modal-meta div {
  text-align: center;
}

.modal-meta strong {
  display: block;
  font-size: 0.9rem;
}

.modal-meta small {
  color: var(--muted);
  font-size: 0.75rem;
}

.progress-wrap {
  margin-bottom: 1.5rem;
}

.progress-bar {
  background: var(--card);
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 50px;
  transition: width 0.1s linear;
}

#progressText {
  color: var(--muted);
  font-size: 0.82rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-download {
  padding: 12px 32px;
  font-size: 0.95rem;
}

a.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-search {
    max-width: 500px;
    margin: 0 auto 2rem;
  }

  .hero-visual {
    width: 100%;
    height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: block;
    margin-left: auto;
  }

  .hero-visual {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .banner-inner {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}