*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

:root {
  --bg:         #0d1117;
  --surface:    #161b22;
  --surface-2:  #1e2a22;
  --accent:     #4ade80;
  --accent-dim: #16a34a;
  --ink:        #f0f6fc;
  --ink-2:      #c9d1d9;
  --ink-muted:  #8b949e;
  --border:     rgba(74, 222, 128, 0.12);
  --border-n:   rgba(255, 255, 255, 0.07);
  --font:       'DM Sans', system-ui, sans-serif;
  --mono:       'DM Mono', monospace;
  --radius:     14px;
}

/* ── Nav ──────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(13, 17, 23, 0);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-n);
}
#nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
#nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}
#nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color .18s;
}
.nav-link:hover { color: var(--ink); }
#nav-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0d1117;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 8px;
  transition: background .18s, transform .15s;
  flex-shrink: 0;
}
#nav-dl:hover { background: #86efac; transform: translateY(-1px); }
#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
#nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  padding: 64px clamp(20px, 5vw, 60px) 0;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

/* hero photo */
#hero {
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
}

/* dark overlay for text legibility */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.60);
  pointer-events: none;
  z-index: 0;
}

/* bottom fade into page background */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}
#hero-inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}
#hero-content { padding-top: 20px; }
#hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px 5px 8px;
  margin-bottom: 32px;
}
#hero-badge .badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  flex-shrink: 0;
}
#hero-badge span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
#hero h1 {
  font-size: clamp(44px, 5.5vw, 78px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 24px;
}
#hero h1 em {
  font-style: normal;
  color: var(--accent);
}
#hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 480px;
  margin-bottom: 40px;
}
#hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #0d1117;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 10px;
  transition: background .18s, transform .15s;
}
.btn-primary:hover { background: #86efac; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-n);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 10px;
  transition: border-color .18s, color .18s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.2); color: var(--ink); }
#hero-compat {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.compat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--border-n);
  border-radius: 6px;
  padding: 4px 10px;
}
.compat-tag svg { flex-shrink: 0; }
.compat-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--border-n);
  flex-shrink: 0;
}

/* ── Hero carousel ────────────────────────────────────────── */
#hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  position: relative;
}
#carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
}
#carousel-phone {
  position: relative;
}
#carousel-mask {
  overflow: hidden;
  border-radius: 38px;
  border: 6px solid #111;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(74,222,128,0.08);
}
#carousel-track {
  display: flex;
  transition: transform .52s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
/* dynamic island notch */
.carousel-slide .notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 30px;
  background: #000;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}
/* carousel controls */
#carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-n);
  transition: background .2s, transform .2s;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}
#carousel-prev, #carousel-next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-n);
  background: rgba(22, 27, 34, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
#carousel-prev { left: -52px; }
#carousel-next-btn { right: -52px; }
#carousel-prev:hover, #carousel-next-btn:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--ink);
  background: var(--surface-2);
}

/* ── Stats strip ──────────────────────────────────────────── */
#stats {
  border-top: 1px solid var(--border-n);
  border-bottom: 1px solid var(--border-n);
  background: var(--surface);
  padding: 0 clamp(20px, 5vw, 60px);
}
#stats-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 28px 24px;
  border-right: 1px solid var(--border-n);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ── Section base ─────────────────────────────────────────── */
.section-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.section-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head {
  margin-bottom: clamp(48px, 7vh, 80px);
}
.section-head h2 {
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 520px;
  line-height: 1.6;
}

/* ── Features ─────────────────────────────────────────────── */
#features {
  padding: clamp(80px, 12vh, 130px) clamp(20px, 5vw, 60px);
}
#features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 clamp(32px, 5vw, 64px);
}
.f-cell {
  padding: 36px 0;
  border-top: 1px solid var(--border-n);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.f-icon {
  color: var(--accent);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.f-icon svg { width: 100%; height: 100%; }
.f-cell h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 4px;
}
.f-cell p {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ── Platforms ────────────────────────────────────────────── */
#platforms {
  padding: clamp(80px, 12vh, 130px) clamp(20px, 5vw, 60px);
  border-top: 1px solid var(--border-n);
  border-bottom: 1px solid var(--border-n);
}
#platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(40px, 7vw, 100px);
}
.platform-card {
  padding: 40px 0;
  border-top: 3px solid var(--border-n);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .25s;
}
.platform-card:hover { border-top-color: var(--accent); }
.platform-icon {
  color: var(--accent);
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
}
.platform-icon svg { width: 100%; height: 100%; }
.platform-card h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.platform-card .platform-req {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin-top: -4px;
}
.platform-card > p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
}
.platform-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-n);
}
.platform-features li {
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.platform-features li::before {
  content: '';
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5 L6.5 12 L13 5' stroke='%234ade80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Privacy callout ──────────────────────────────────────── */
#privacy {
  padding: clamp(80px, 12vh, 130px) clamp(20px, 5vw, 60px);
  background: var(--surface);
  border-top: 1px solid var(--border-n);
  border-bottom: 1px solid var(--border-n);
}
#privacy-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
#privacy-text .section-label { margin-bottom: 20px; }
#privacy-text h2 {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
}
#privacy-text p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.65;
}
#privacy-claims {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.privacy-claim {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-n);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.privacy-claim:first-child { border-top: 1px solid var(--border-n); }
.privacy-claim svg { color: var(--accent); flex-shrink: 0; }

/* ── CTA ──────────────────────────────────────────────────── */
#cta {
  padding: clamp(80px, 14vh, 140px) clamp(20px, 5vw, 60px);
  text-align: center;
}
#cta-inner { max-width: 640px; margin: 0 auto; }
#cta h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 20px;
}
#cta h2 em {
  font-style: normal;
  color: var(--accent);
}
#cta p {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}
#cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
#cta-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ── Footer ───────────────────────────────────────────────── */
#footer {
  border-top: 1px solid var(--border-n);
  padding: 40px clamp(20px, 5vw, 60px);
}
#footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
#footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-muted);
}
#footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .18s;
}
#footer-brand a:hover { color: var(--ink); }
#footer-brand img { width: 20px; height: 20px; border-radius: 5px; }
#footer-links {
  display: flex;
  gap: 24px;
}
.footer-link {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
  transition: color .18s;
}
.footer-link:hover { color: var(--ink); }

/* ── AOS ──────────────────────────────────────────────────── */
.aos {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.aos.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  #features-grid { grid-template-columns: repeat(2, 1fr); }
  #platforms-grid { grid-template-columns: 1fr; gap: 14px; }
  #privacy-inner { grid-template-columns: 1fr; gap: 36px; }
  #privacy-claims { flex-direction: row; flex-wrap: wrap; }
  .privacy-claim { flex: 1 1 auto; }
}
@media (max-width: 820px) {
  #hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }
  #hero-visual {
    order: -1;
    padding-top: 80px;
    padding-bottom: 20px;
  }
  #carousel-wrap { max-width: 220px; }
  #hero-content { padding-top: 0; padding-bottom: 60px; }
  #stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border-n); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-top: none; }
}
@media (max-width: 640px) {
  #nav-links { display: none; }
  #nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(13,17,23,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-n);
    padding: 8px 0 16px;
  }
  .nav-link { display: block; padding: 12px clamp(20px,5vw,60px); font-size: 15px; }
  #nav-toggle { display: flex; }
  #features-grid { grid-template-columns: 1fr; }
  .f-cell { padding: 24px 20px; }
  #stats-inner { grid-template-columns: repeat(2, 1fr); }
  #cta-buttons { flex-direction: column; align-items: center; }
  #footer-inner { justify-content: center; text-align: center; }
}
