:root {
  --font: -apple-system, "SF Pro Text", "Segoe UI Variable", "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  --bg: #f4f5f7; --surface: #ffffff; --surface-2: #f1f2f5;
  --text: #1c1d21; --muted: #5f6368; --faint: #80868b;
  --border: #e2e4e8;
  --accent: #5b5bf0; --accent-2: #5b5bf0;
  --accent-grad: var(--accent);
  --accent-soft: #eceeff; --accent-text: #4a4ae0;
  --free: #1a8a5e; --free-soft: #e6f4ee;
  --warn: #b5680a; --danger: #c5221f;
  --radius: 14px; --radius-lg: 20px; --radius-pill: 999px;
  --shadow: 0 2px 10px rgba(20, 20, 30, .08);
  --shadow-lg: 0 12px 32px rgba(20, 20, 30, .14);
  --shadow-accent: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316; --surface: #1e1f23; --surface-2: #26272c;
    --text: #ecedf0; --muted: #9b9ea3; --faint: #717479;
    --border: #303136;
    --accent: #8f8fff; --accent-2: #8f8fff;
    --accent-grad: var(--accent);
    --accent-soft: #28283f; --accent-text: #b2b2ff;
    --free: #4cbd8c; --free-soft: #16281f;
    --shadow: 0 2px 10px rgba(0, 0, 0, .4);
    --shadow-lg: 0 14px 36px rgba(0, 0, 0, .5);
    --shadow-accent: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* ---------- nav ---------- */
#nav {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg); border-bottom: 1px solid transparent;
}
#nav.scrolled { border-color: var(--border); }
#nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-grad); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .btn { white-space: nowrap; flex: none; }
@media (max-width: 680px) {
  .brand { font-size: 15px; }
  .nav-links { gap: 10px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn { padding: 10px 16px; font-size: 13px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 24px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14.5px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: .18s ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--border); }
.btn-primary { background: var(--accent-grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-lg { padding: 16px 30px; font-size: 15.5px; }

/* ---------- hero ---------- */
#hero { padding: 76px 0 40px; overflow: hidden; }
#hero .wrap { position: relative; }
.hero-glow {
  position: absolute; inset: -160px -100px auto; height: 480px; z-index: -1;
  background: radial-gradient(560px 320px at 20% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 13px; margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 {
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; margin: 0 0 22px; max-width: 820px;
}
h1 .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 580px; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.hero-note { color: var(--faint); font-size: 13.5px; }

/* ---------- product mockup ---------- */
.mockup-shell {
  margin-top: 56px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mockup-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mockup-bar .pill { margin-left: 12px; height: 20px; flex: 1; max-width: 300px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); }
.mockup-body { padding: 26px 28px 30px; display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 22px; }
@media (max-width: 760px) { .mockup-body { grid-template-columns: 1fr; } }
.mockup-col h5 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 700; }
.mockup-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.mockup-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.mockup-stat .n { font-weight: 800; font-size: 18px; }
.mockup-stat .l { font-size: 11px; color: var(--muted); font-weight: 600; }
.mockup-row { display: flex; align-items: center; gap: 9px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.mockup-row .c { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--border); flex: none; }
.mockup-row .c.on { background: var(--free); border-color: var(--free); }
.mockup-timeline { position: relative; height: 230px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.mockup-block { position: absolute; left: 10px; right: 10px; border-radius: 8px; color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 9px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.3); }

/* ---------- logos / platforms strip ---------- */
#platforms { padding: 30px 0 10px; }
.platform-row { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; color: var(--faint); font-weight: 700; font-size: 13.5px; }
.platform-row .item { display: flex; align-items: center; gap: 8px; }

/* ---------- sections ---------- */
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }

#features { padding: 100px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: .2s ease;
}
.feature-card:hover { border-color: var(--border-strong, var(--border)); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-text); margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

#meaning { padding: 60px 0 110px; }
.meaning-card {
  max-width: 820px; margin: 0 auto; text-align: center; padding: 60px 40px; border-radius: var(--radius-lg);
  background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-accent);
}
.meaning-card .quote-mark { font-size: 46px; font-weight: 800; opacity: .5; line-height: 1; margin-bottom: 6px; }
.meaning-card p { font-size: clamp(19px, 2.6vw, 25px); line-height: 1.5; font-weight: 600; letter-spacing: -.01em; margin: 0 0 18px; }
.meaning-card .by { font-size: 14px; opacity: .85; font-weight: 600; }

#how { padding: 20px 0 110px; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; gap: 28px; } }
.how-step { padding: 0 18px; position: relative; }
.how-step .num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent-text); margin-bottom: 16px; font-size: 14px;
}
.how-step h4 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.how-step p { margin: 0; color: var(--muted); font-size: 13.5px; }
.how-grid .how-step:not(:last-child)::after {
  content: ""; position: absolute; top: 18px; left: calc(100% - 0px); width: 36px; height: 1px; background: var(--border);
}
@media (max-width: 860px) { .how-grid .how-step::after { display: none; } }

#cta { padding: 40px 0 120px; }
.cta-card {
  max-width: 900px; margin: 0 auto; text-align: center; padding: 64px 40px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.cta-card h2 { font-size: clamp(26px, 3.6vw, 34px); margin: 0 0 14px; letter-spacing: -.02em; }
.cta-card p { color: var(--muted); margin: 0 0 30px; font-size: 16px; }

footer { border-top: 1px solid var(--border); padding: 34px 0; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
footer .muted { color: var(--faint); font-size: 13px; }
footer .flinks { display: flex; gap: 20px; }
footer .flinks a { color: var(--muted); font-size: 13.5px; font-weight: 600; }
footer .flinks a:hover { color: var(--text); }
