/* ==========================================================================
   Karakoram — Landing page
   ========================================================================== */

/* ---- Layout primitives ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--space-6);
}
.section {
  position: relative;
  padding-block: var(--space-24);
}
.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-16);
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.eyebrow [data-lucide] { font-size: 14px; }
.section-title {
  font-size: clamp(28px, 4.4vw, var(--text-2xl));
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4);
}
.section-sub {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
}

/* ---- Badge / pill --------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 32px;
  padding-inline: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}
.badge [data-lucide] { font-size: 14px; color: var(--accent); }
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition-base), border-color var(--transition-base),
    backdrop-filter var(--transition-base);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 8, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: var(--text-base);
  letter-spacing: 0.16em;
}
.logo-mark {
  width: 30px; height: 30px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.35));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-left: auto;
}
.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.nav-link:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 20px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav-h) + var(--space-16));
  padding-bottom: var(--space-20);
}
.hero-badge { margin-bottom: var(--space-8); }
.hero-headline {
  font-size: clamp(44px, 8.5vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 0 0 var(--space-6);
}
.hero-headline .accent {
  background: linear-gradient(120deg, var(--accent), #9be9ff 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}
.hero-sub {
  max-width: 620px;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 auto var(--space-10);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-6);
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.hero-proof span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-proof [data-lucide] { font-size: 16px; color: var(--success); }

/* Hero visual — face on a glow platform, flanked by floating stat cards */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: var(--space-16) auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.hero-face-stage {
  position: relative;
  width: min(420px, 78vw);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-face-stage::before {
  /* soft radial glow behind the face */
  content: "";
  position: absolute;
  inset: -6% 0 auto 0;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(0, 200, 255, 0.18), transparent 62%);
  filter: blur(8px);
  z-index: -1;
}
.hero-face-stage::after {
  /* glow platform under the face */
  content: "";
  position: absolute;
  bottom: -6px; left: 50%;
  width: 260px; height: 34px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 200, 255, 0.4), transparent 70%);
  filter: blur(10px);
  border-radius: 50%;
}
.hero-face { width: 100%; height: 100%; pointer-events: none; }

.stat-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(15, 15, 15, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  animation: floatCard 6s ease-in-out infinite;
}
.stat-card .ic {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: rgba(0, 200, 255, 0.1);
  color: var(--accent);
  font-size: 18px;
  flex: none;
}
.stat-card .meta { text-align: left; line-height: 1.25; }
.stat-card .k { font-size: var(--text-xs); color: var(--text-secondary); letter-spacing: 0.04em; }
.stat-card .v { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.02em; }
.stat-card .v .up { color: var(--success); font-size: 14px; }

.stat-card.left  { left: -2%; top: 22%; animation-delay: -1s; }
.stat-card.right { right: -2%; top: 40%; animation-delay: -3s; }
.stat-card.bottom { left: 50%; bottom: -6%; transform: translateX(-50%); animation-delay: -2s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
/* keep the bottom card horizontally centered while it floats */
.stat-card.bottom { animation-name: floatCardCentered; }
@keyframes floatCardCentered {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-10px); }
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.eq span {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: eq 1s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 6px;  animation-delay: -0.1s; }
.eq span:nth-child(2) { height: 16px; animation-delay: -0.3s; }
.eq span:nth-child(3) { height: 10px; animation-delay: -0.5s; }
.eq span:nth-child(4) { height: 14px; animation-delay: -0.2s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* ==========================================================================
   Features
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.feature-card {
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base), background var(--transition-base),
    box-shadow var(--transition-base);
  will-change: transform;
}
.feature-card:hover {
  border-color: rgba(0, 200, 255, 0.3);
  background: rgba(0, 200, 255, 0.04);
  box-shadow: 0 8px 32px rgba(0, 200, 255, 0.1);
}
.feature-ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.15);
  color: var(--accent);
  font-size: 24px;
  margin-bottom: var(--space-6);
}
.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}
.feature-card p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   How it works
   ========================================================================== */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.steps::before {
  /* connecting line behind the number circles */
  content: "";
  position: absolute;
  top: 28px; left: 16%; right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.35), transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding-inline: var(--space-4); }
.step-num {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-5);
  display: grid; place-items: center;
  position: relative;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  color: var(--accent);
  font-size: 22px;
  box-shadow: 0 0 24px rgba(0, 200, 255, 0.12);
}
.step-num .n {
  position: absolute;
  top: -8px; right: -8px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #04222c;
  font-size: var(--text-xs);
  font-weight: 700;
}
.step h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--space-2);
}
.step p { font-size: var(--text-base); color: var(--text-secondary); margin: 0; }

/* ==========================================================================
   Stats bar
   ========================================================================== */
.stats-band {
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 200, 255, 0.03), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-16);
}
.stat {
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-size: clamp(32px, 5vw, var(--text-3xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}
.stat .num .suffix { color: var(--accent); }
.stat .label {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--space-24) var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 200, 255, 0.12), transparent 60%),
    var(--bg-secondary);
  box-shadow: var(--shadow-elevated);
}
.cta-card h2 {
  font-size: clamp(30px, 5vw, var(--text-3xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 var(--space-4);
}
.cta-card p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin: 0 0 var(--space-10);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: var(--space-12);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-brand .logo { font-size: var(--text-sm); }
.footer-tag { font-size: var(--text-sm); color: var(--text-dim); }
.footer-links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: var(--text-sm); color: var(--text-dim); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .steps { grid-template-columns: 1fr; gap: var(--space-10); }
  .steps::before { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .section { padding-block: var(--space-16); }
  /* Floating cards get busy on small screens — dock them tighter */
  .stat-card.left  { left: -4px; top: 8%; }
  .stat-card.right { right: -4px; top: 58%; }
}
@media (max-width: 560px) {
  .container { padding-inline: var(--space-5); }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: var(--space-6); }
  .stat:last-child { border-bottom: none; }
  .hero-cta .btn { width: 100%; }
  .stat-card .v { font-size: var(--text-base); }
}

/* Mobile nav drawer */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) var(--space-6) var(--space-8);
  display: none;
  flex-direction: column;
  gap: var(--space-2);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
}
.mobile-menu a:hover { background: var(--bg-card); color: var(--text-primary); }
.mobile-menu .btn { margin-top: var(--space-3); }
