:root {
  --bg: #060608;
  --bg-surface: #0c0c10;
  --bg-elevated: #151519;
  --bg-glass: rgba(12, 12, 16, 0.8);
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(35, 196, 110, 0.2);
  --fg: #EDEDED;
  --fg-muted: #8A8A9A;
  --fg-dim: #3E3E4A;
  --accent: #23C46E;
  --accent-hover: #2ed87a;
  --accent-glow: rgba(35, 196, 110, 0.25);
  --accent-glow-strong: rgba(35, 196, 110, 0.5);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --content-max: 1140px;
  --section-pad: clamp(80px, 10vw, 140px);
  color-scheme: dark;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ═══ Scroll Progress ═══ */
main, .footer, .marquee, .nav, .scroll-progress, .nav__mobile-overlay {
  position: relative; z-index: 1;
}
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow-strong);
  z-index: 200;
}

/* ═══ Nav ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding-block: 16px;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border-glass);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  letter-spacing: .04em; color: var(--fg-muted); transition: color .3s;
}
.nav__links a:hover { color: var(--fg); }
.nav__cta {
  padding: 10px 22px !important; background: var(--accent) !important;
  color: #000 !important; border-radius: 8px; font-weight: 600 !important;
  transition: box-shadow .3s, transform .3s !important;
}
.nav__cta:hover {
  box-shadow: 0 0 20px var(--accent-glow-strong) !important;
  transform: translateY(-1px) !important;
}
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--fg); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.nav__mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(6,6,8,.95);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  z-index: 99;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.nav__mobile-overlay.active { opacity: 1; pointer-events: all; }
.nav__mobile-overlay a {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: var(--fg); transition: color .3s;
}
.nav__mobile-overlay a:hover { color: var(--accent); }

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; font-family: var(--font-display);
  font-weight: 600; font-size: 14px; letter-spacing: .06em;
  text-transform: uppercase; border: none; border-radius: 10px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all .4s cubic-bezier(.16,1,.3,1);
}
.btn--primary { background: var(--accent); color: #000; }
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 40px var(--accent-glow-strong), 0 0 80px var(--accent-glow);
  transform: translateY(-2px);
}
.btn--primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(255,255,255,.25),transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn--primary:hover::after { opacity: 1; }
.btn--outline {
  background: transparent; color: var(--fg);
  border: 1px solid var(--border-glow);
}
.btn--outline:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  background: rgba(35,196,110,.04);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ═══ Floating 3D Icons ═══ */
.float-icons {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
}
.float-icon {
  position: absolute; color: var(--accent); opacity: 0;
  animation: float-bob 8s ease-in-out infinite;
}
.float-icon svg { width: 100%; height: 100%; }

.float-icon--1 { width: 52px; top: 12%; left: 6%; animation-delay: 0s; opacity: .15; }
.float-icon--2 { width: 60px; top: 22%; right: 8%; animation-delay: 1.2s; opacity: .12; }
.float-icon--3 { width: 44px; top: 55%; left: 3%; animation-delay: 2.4s; opacity: .10; }
.float-icon--4 { width: 36px; top: 8%; left: 42%; animation-delay: 0.6s; opacity: .08; }
.float-icon--5 { width: 48px; top: 65%; right: 5%; animation-delay: 3.0s; opacity: .12; }
.float-icon--6 { width: 56px; top: 40%; left: 12%; animation-delay: 1.8s; opacity: .10; }
.float-icon--7 { width: 40px; top: 75%; left: 25%; animation-delay: 4.2s; opacity: .08; }
.float-icon--8 { width: 38px; top: 18%; right: 22%; animation-delay: 3.6s; opacity: .10; }

@keyframes float-bob {
  0%, 100% { transform: translateY(0) rotate3d(1,.5,0, 0deg); }
  25% { transform: translateY(-18px) rotate3d(1,.5,0, 12deg); }
  50% { transform: translateY(-8px) rotate3d(1,.5,0, -6deg); }
  75% { transform: translateY(-22px) rotate3d(1,.5,0, 8deg); }
}

/* ═══ Hero ═══ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden; padding: 120px 0 60px;
  text-align: center;
}
.hero__video-bg {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__video-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(4px) brightness(.45) saturate(.5);
  transform: scale(1.08);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(35,196,110,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(35,196,110,.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(35,196,110,.05) 0%, transparent 50%);
}
.hero__content-wrap {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
.hero__logo { height: 44px; width: auto; margin-bottom: 28px; opacity: 0; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px); font-weight: 700;
  line-height: 1.06; letter-spacing: -.035em;
  margin-bottom: 20px; max-width: 700px;
}
.hero__title .word { display: inline-block; opacity: 0; transform: translateY(24px); }
.hero__title .word--accent { color: var(--accent); }
.hero__sub {
  font-size: clamp(15px, 1.5vw, 17px); color: var(--fg-muted);
  line-height: 1.75; max-width: 560px; margin-bottom: 32px; opacity: 0;
}
.hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; opacity: 0; }
.hero__buttons .btn { min-width: 190px; justify-content: center; }

/* Hero Screenshot — full width */
.hero__screen-container {
  position: relative; z-index: 2;
  margin-top: 48px;
  perspective: 1400px;
  opacity: 0;
}

.hero__scroll-cue {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
.hero__scroll-cue span {
  font-family: var(--font-display); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--fg-dim);
}
@keyframes scroll-pulse {
  0%, 100% { opacity: .4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); transform-origin: top; }
}

/* ═══ Browser Mockup ═══ */
.browser-mockup {
  background: #111115;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 60px var(--accent-glow);
  transform-style: preserve-3d;
  will-change: transform;
}
.browser-mockup__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #18181c;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.browser-mockup__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a2a30;
}
.browser-mockup__dot:nth-child(1) { background: #ff5f57; }
.browser-mockup__dot:nth-child(2) { background: #febc2e; }
.browser-mockup__dot:nth-child(3) { background: #28c840; }
.browser-mockup__url {
  flex: 1; text-align: center;
  font-family: var(--font-body); font-size: 11px;
  color: var(--fg-dim); letter-spacing: .02em;
  background: rgba(255,255,255,.03);
  border-radius: 6px; padding: 4px 12px;
  margin-left: 8px; margin-right: 40px;
}
.browser-mockup__viewport { position: relative; }
.browser-mockup__viewport img {
  width: 100%; height: auto; display: block;
}

.browser-mockup--showcase {
  margin-top: 40px;
  perspective: 1200px;
  transition: transform .5s cubic-bezier(.16,1,.3,1),
              box-shadow .5s cubic-bezier(.16,1,.3,1);
}

/* ═══ Marquee ═══ */
.marquee {
  overflow: hidden; white-space: nowrap;
  padding-block: 16px;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(12, 12, 16, 0.75);
  position: relative; z-index: 1;
}
.marquee__inner {
  display: inline-flex; gap: 40px;
  animation: marquee-scroll 35s linear infinite;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: .15em; color: var(--fg-dim);
}
.marquee__inner span { display: inline-flex; align-items: center; gap: 40px; }
.marquee__inner .dot {
  width: 3px; height: 3px; background: var(--accent);
  border-radius: 50%; flex-shrink: 0;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══ Section Block (generic) ═══ */
.section-block {
  padding-block: var(--section-pad);
  background: rgba(6, 6, 8, 0.72);
  position: relative; overflow: hidden;
}
.section-block--surface { background: rgba(12, 12, 16, 0.75); }
.section-block__glow {
  position: absolute; top: 30%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(35,196,110,.08) 0%, transparent 65%);
  pointer-events: none;
}
.section-block__header {
  text-align: center; margin-bottom: 48px;
  max-width: 620px; margin-inline: auto;
}
.pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 16px;
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-block__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: 16px;
}
.section-block__desc {
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--fg-muted); line-height: 1.75;
}

/* Stats row */
.section-block__stats {
  display: flex; justify-content: center; gap: 24px;
  flex-wrap: wrap; margin-bottom: 48px;
}
.stat-pill {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(35,196,110,.06);
  border: 1px solid var(--border-glow);
  border-radius: 14px; padding: 20px 32px;
  min-width: 160px;
}
.stat-pill__value {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  color: var(--accent); line-height: 1;
}
.stat-pill__label {
  font-size: 12px; color: var(--fg-dim);
  margin-top: 6px; letter-spacing: .02em;
}

/* ═══ Features Grid ═══ */
.features__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature-card {
  background: rgba(15,15,20,.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  border-radius: 14px; padding: 28px 24px;
  opacity: 0; transform: translateY(30px);
  transition: border-color .4s, box-shadow .4s, transform .4s;
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 32px var(--accent-glow), 0 8px 24px rgba(0,0,0,.3);
  transform: translateY(-3px);
}
.feature-card__icon {
  width: 42px; height: 42px;
  background: rgba(35,196,110,.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 16px;
}
.feature-card__icon svg { width: 20px; height: 20px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; margin-bottom: 8px;
}
.feature-card p { font-size: 13px; color: var(--fg-muted); line-height: 1.65; }

/* ═══ Showcase Row (text above, screenshot below — full width) ═══ */
.showcase-row { text-align: center; max-width: 620px; margin-inline: auto; }
.showcase-row__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px); font-weight: 700;
  line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px;
}
.showcase-row p {
  font-size: clamp(14px, 1.3vw, 15px); color: var(--fg-muted);
  line-height: 1.75; margin-bottom: 20px;
}
.check-list {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px;
  margin-bottom: 0;
}
.check-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--fg-muted);
}
.check-list li svg {
  width: 16px; height: 16px; flex-shrink: 0; color: var(--accent);
}

/* ═══ Final CTA ═══ */
.final-cta {
  padding-block: var(--section-pad);
  background: rgba(12, 12, 16, 0.75); position: relative;
}
.final-cta__box {
  background: linear-gradient(160deg, rgba(35,196,110,.05), rgba(6,6,8,.95) 60%);
  border: 1px solid var(--border-glow); border-radius: 20px;
  padding: clamp(48px, 6vw, 72px); text-align: center;
  position: relative; overflow: hidden;
}
.final-cta__particles {
  position: absolute; inset: 0; pointer-events: none;
}
.final-cta__particles .particle {
  position: absolute; width: 2px; height: 2px;
  background: var(--accent); border-radius: 50%; opacity: 0;
}
.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 40px); font-weight: 700;
  line-height: 1.15; margin-bottom: 16px;
  position: relative; z-index: 1; text-wrap: balance;
}
.final-cta__desc {
  font-size: clamp(14px, 1.3vw, 16px); color: var(--fg-muted);
  margin-bottom: 36px; position: relative; z-index: 1;
  max-width: 520px; margin-inline: auto; line-height: 1.7;
}
.final-cta__buttons {
  display: flex; justify-content: center; gap: 14px;
  flex-wrap: wrap; position: relative; z-index: 1;
}
.final-cta__buttons .btn { min-width: 210px; justify-content: center; }

/* ═══ Footer ═══ */
.footer {
  padding-block: 48px 28px; background: rgba(6, 6, 8, 0.75);
  border-top: 1px solid var(--border-glass);
}
.footer__inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
.footer__brand img { height: 30px; width: auto; margin-bottom: 14px; }
.footer__brand p { font-size: 13px; color: var(--fg-dim); max-width: 260px; line-height: 1.65; }
.footer__col h4 {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--fg);
  margin-bottom: 14px;
}
.footer__col a {
  display: block; font-size: 13px; color: var(--fg-muted);
  padding-block: 3px; transition: color .3s;
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--border-glass); padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--fg-dim);
}

/* ═══ Reveal ═══ */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.visible { opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s ease; }

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
  :root { --section-pad: clamp(56px, 8vw, 90px); }

  .hero { padding: 100px 0 48px; min-height: auto; }
  .hero__title { font-size: clamp(30px, 6vw, 48px); }
  .hero__buttons { flex-direction: column; align-items: center; }
  .hero__buttons .btn { width: 100%; max-width: 320px; min-height: 50px; }
  .hero__scroll-cue { display: none; }
  .hero__screen-container { margin-top: 32px; }

  .float-icons { display: none; }
  .hero__video-bg video { filter: blur(8px) brightness(.2) saturate(.4); }

  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .section-block__stats { gap: 14px; }
  .stat-pill { min-width: 120px; padding: 16px 20px; }
  .stat-pill__value { font-size: 24px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .hero { padding: 88px 0 32px; }
  .hero__logo { height: 36px; }
  .hero__sub { font-size: 15px; margin-bottom: 24px; }

  .features__grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 22px 18px; }

  .section-block__stats { flex-direction: column; align-items: center; }

  .check-list { flex-direction: column; align-items: center; }

  .browser-mockup__url { display: none; }
  .browser-mockup__bar { padding: 8px 12px; }
  .browser-mockup__dot { width: 8px; height: 8px; }

  .final-cta__buttons { flex-direction: column; align-items: center; }
  .final-cta__buttons .btn { width: 100%; max-width: 320px; min-height: 50px; }

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

@media (max-width: 400px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero__title { font-size: 26px; }
  .btn { padding: 14px 24px; font-size: 13px; }
  .section-block__title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal, .feature-card { opacity: 1; transform: none; }
  .hero__logo, .hero__sub, .hero__buttons,
  .hero__screen-container, .hero__scroll-cue { opacity: 1; }
  .hero__title .word { opacity: 1; transform: none; }
  .marquee__inner { animation: none; }
  .float-icon { animation: none; }
  .hero__scroll-line { animation: none; }
  .hero__video-bg video { animation: none; }
}
