/* ================================================================
   AptiEdge — Landing Page (Dark Mode Only)
   Custom styles layered on top of Tailwind CDN
   ================================================================ */

/* ── TOKENS ── */
:root {
  --font:   'Inter', sans-serif;
  --bg:     #09090b;
  --bg2:    #0d0d0f;
  --bg3:    #18181b;
  --bg4:    #1f1f23;
  --bg5:    #27272a;
  --b:      rgba(255,255,255,.06);
  --b2:     rgba(255,255,255,.10);
  --b3:     rgba(255,255,255,.18);
  --t1:     #fafafa;
  --t2:     #a1a1aa;
  --t3:     #71717a;
  --t4:     #52525b;
  --blu:    #60a5fa;
  --grn:    #4ade80;
  --pur:    #a78bfa;
  --yel:    #fbbf24;
  --red:    #f87171;
  --ora:    #fb923c;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg5); border-radius: 9px; }

/* ── HERO SECTION BACKGROUNDS ── */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,255,255,.05) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
}
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── HERO IMAGE WRAP ── */
.hero-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 80px rgba(0,0,0,.7);
}
.hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(.75) saturate(.85);
}
.float-anim { animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ── CHIP / BADGE TAGS ── */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13px; color: #a1a1aa; font-weight: 500;
}
.tag-badge {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: #a1a1aa; font-size: 11px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}

/* ── SHARED BUTTONS ── */
.btn-primary {
  background: #fafafa; color: #09090b; font-weight: 700; font-size: 14px;
  padding: 12px 28px; border-radius: 9px; letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .2s, box-shadow .2s;
  cursor: pointer; white-space: nowrap;
}
.btn-primary:hover { background: #e4e4e7; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(250,250,250,.15); }
.btn-outline {
  background: transparent; color: #fafafa; font-weight: 500; font-size: 14px;
  padding: 11px 24px; border-radius: 9px; border: 1px solid rgba(255,255,255,.18);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, border-color .2s; cursor: pointer; white-space: nowrap;
}
.btn-outline:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.30); }

/* ── SECTION TYPOGRAPHY ── */
.section-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #71717a; }
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.045em; line-height: 1.08; color: #fafafa; }
.grad { background: linear-gradient(135deg,#60a5fa 0%,#a78bfa 55%,#4ade80 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── COMPANY MARQUEE ── */
.marquee-wrap {
  position: relative; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex; width: max-content; gap: 40px;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 20px; white-space: nowrap; padding: 4px 0; }
.marquee-item { flex: 0 0 auto; color: #d4d4d8; font-size: 13.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.marquee-sep { color: #52525b; font-size: 11px; user-select: none; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── EXAM CARDS (with image top) ── */
.exam-card {
  background: var(--bg3); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.exam-card:hover { border-color: rgba(255,255,255,.18); transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.exam-card-img { height: 170px; overflow: hidden; position: relative; }
.exam-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.exam-card:hover .exam-card-img img { transform: scale(1.06); }
.exam-card-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, #18181b 0%, rgba(24,24,27,.45) 50%, rgba(24,24,27,.18) 100%); }
.exam-card-body { padding: 22px; }

/* Track badge ("Most Popular" etc.) sits over the card photo, near the top where the
   darkening overlay above is weakest — .tag-badge's translucent fill reads fine on the
   card's flat dark body but disappears against a bright/busy photo, so this needs its
   own solid, photo-proof treatment instead (same look as the pricing page's "Most
   Popular" pill, for visual consistency with the one other place this label appears). */
.exam-card-photo-badge {
  background: #09090b; color: #fafafa; font-size: 11px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* ── FEATURE ICON ── */
.feature-icon {
  width: 46px; height: 46px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10); border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fafafa; flex-shrink: 0;
}

/* ── FEATURE / INFO CARDS ── */
.info-card {
  background: var(--bg3); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; transition: border-color .28s, transform .28s, box-shadow .28s;
}
.info-card:hover { border-color: rgba(255,255,255,.18); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.card-glow { transition: all .3s ease; }
.card-glow:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 20px 60px rgba(0,0,0,.4); transform: translateY(-4px); }

/* ── PROGRESS BAR ── */
.progress-bar { height: 4px; background: rgba(255,255,255,.10); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: #fafafa; border-radius: 999px; transition: width 1.2s ease; }

/* ── TESTIMONIAL & PRICING ── */
.testimonial-card {
  background: var(--bg3); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 28px;
  transition: border-color .28s, transform .28s, box-shadow .28s;
}
.testimonial-card:hover { border-color: rgba(255,255,255,.18); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.pricing-card {
  background: var(--bg3); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 34px;
  transition: all .3s ease; display: flex; flex-direction: column;
}
.pricing-card.featured { background: #fafafa; color: #09090b; border-color: #fafafa; }
.pricing-card:not(.featured):hover { border-color: rgba(255,255,255,.20); transform: translateY(-5px); box-shadow: 0 24px 60px rgba(0,0,0,.5); }

/* ── STAT NUM ── */
.stat-num { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -.05em; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 64px;
  background: rgba(9,9,11,.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(9,9,11,.96); border-bottom-color: rgba(255,255,255,.06); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center;
  position: relative;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 34px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 0;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  position: relative;
  font-size: 13.5px; font-weight: 500; color: #71717a;
  padding: 6px 13px;
  transition: color .15s;
}
/* minimalistic — text only brightens on the active page */
.nav-links a:hover, .nav-links a.active { color: #fafafa; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-login {
  font-size: 13.5px; font-weight: 500; color: #71717a; padding: 7px 14px;
  transition: color .15s; text-decoration: none;
}
.nav-login:hover { color: #fafafa; }
.nav-signup {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: #09090b; background: #fafafa;
  padding: 8px 18px; border-radius: 8px;
  transition: opacity .18s, transform .18s; text-decoration: none;
}
.nav-signup:hover { opacity: .86; transform: translateY(-1px); }
/* hamburger */
.hbg {
  display: none; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: auto;
  width: 36px; height: 36px;
  background: transparent; border: none; cursor: pointer;
  color: #a1a1aa; font-size: 20px;
  transition: color .15s;
}
.hbg:hover { color: #fafafa; }
/* mobile menu */
.mob-menu {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 899;
  background: rgba(9,9,11,.98);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 0 28px; overflow: hidden;
  max-height: 0; opacity: 0; pointer-events: none;
  transition: max-height 240ms ease, opacity 200ms ease, transform 200ms ease;
  transform: translateY(-6px);
}
.mob-menu.open {
  max-height: 500px; opacity: 1; pointer-events: auto; transform: translateY(0);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mob-link {
  display: block; padding: 12px 0; font-size: 15px; font-weight: 500; color: #a1a1aa;
  border-bottom: 1px solid rgba(255,255,255,.06); transition: color .15s;
}
.mob-link:last-of-type { border-bottom: none; }
.mob-link:hover { color: #fafafa; }
.mob-link.active { color: #fafafa; font-weight: 700; }
.mob-link.active::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; margin-right: 9px; vertical-align: middle;
}
.mob-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; margin-bottom: 24px; }
.mob-btns a { justify-content: center; padding: 12px 20px; font-size: 15px; }

/* ── LAYOUT WRAP ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ── FOOTER ── */
.footer { background: var(--bg); border-top: 1px solid rgba(255,255,255,.06); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.f-logo { height: 30px; width: auto; margin-bottom: 14px; }
.f-tagline { font-size: 13px; color: #71717a; line-height: 1.75; max-width: 240px; margin-bottom: 20px; }
.f-social { display: flex; gap: 8px; }
.f-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #71717a; transition: color .15s, border-color .15s;
}
.f-social a:hover { color: #fafafa; border-color: rgba(255,255,255,.20); }
.f-head { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #71717a; margin-bottom: 14px; }
.f-links { display: flex; flex-direction: column; gap: 10px; }
.f-links a { font-size: 13px; color: #71717a; transition: color .15s; }
.f-links a:hover { color: #fafafa; }
.f-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.f-copy { font-size: 12px; color: #52525b; }
.f-legal { display: flex; gap: 18px; }
.f-legal a { font-size: 12px; color: #52525b; transition: color .15s; }
.f-legal a:hover { color: #a1a1aa; }

/* ── REVEAL ANIMATION ── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: translateY(0); }
.d1{transition-delay:.06s} .d2{transition-delay:.12s} .d3{transition-delay:.18s}
.d4{transition-delay:.24s} .d5{transition-delay:.30s} .d6{transition-delay:.36s}

/* ── HERO STATS GRID (4 stat cards under the hero image) ── */
.hero-stat-card { padding: 20px 22px; gap: 14px; }
.hero-stat-icon { width: 40px; height: 40px; }
.hero-stat-icon i { font-size: 16px; }
.hero-stat-text { min-width: 0; } /* lets the label wrap/shrink instead of forcing the card to overflow */
.hero-stat-num { font-size: 22px; font-weight: 900; }
.hero-stat-label { font-size: 11.5px; white-space: nowrap; }

/* ── FEATURES: image + floating "Live Session" card ──
   Base rules below are the original desktop/tablet design, completely unchanged —
   full-width image, card floating off its bottom-left corner with a -22px offset.
   That only gets clipped on small phones (no gutter for the offset to bleed into),
   so the resize/reposition fix is scoped to a mobile-only media query further down;
   laptop and tablet never see anything different from before. */
.feature-live-card {
  position: absolute;
  bottom: -22px;
  left: -22px;
  min-width: 220px;
  background: #18181b;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,.55);
}
.flc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.flc-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; flex-shrink: 0; }
.flc-label { font-size: 12px; font-weight: 600; color: #a1a1aa; }
.flc-title { font-size: 15px; font-weight: 800; color: #fafafa; margin-bottom: 4px; letter-spacing: -.02em; }
.flc-meta { font-size: 12px; color: #71717a; }
.flc-badges { display: flex; gap: 8px; margin-top: 10px; }
.flc-badge { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.flc-badge.green { color: #4ade80; background: rgba(74,222,128,.10); }
.flc-badge.red   { color: #f87171; background: rgba(248,113,113,.10); }

/* Mobile only — laptop and tablet keep the exact original layout above untouched. */
@media (max-width: 640px) {
  .feature-img-frame { width: 92%; margin-left: auto; }
  .feature-live-card {
    left: 0;
    bottom: -18px;
    width: 46%;
    min-width: 0;
    max-width: 190px;
    padding: 12px 14px;
  }
  .flc-title { font-size: 13px; }
  .flc-meta { font-size: 10.5px; }
  .flc-badge { font-size: 9.5px; padding: 2px 7px; }
}
@media (max-width: 380px) {
  .feature-img-frame { width: 88%; }
  .feature-live-card { width: 54%; padding: 10px 12px; }
  .flc-title { font-size: 12px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none !important; }
  .hbg { display: flex !important; }
}
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }

  /* Cramped 2-column stat cards on phones — shrink the chrome and let the
     label wrap onto 2 lines instead of overflowing past the card edge. */
  .hero-stat-card { padding: 14px 12px; gap: 10px; }
  .hero-stat-icon { width: 32px; height: 32px; }
  .hero-stat-icon i { font-size: 13px; }
  .hero-stat-num { font-size: 16px; }
  .hero-stat-label { font-size: 10px; white-space: normal; line-height: 1.3; }
}
