:root {
  --bg: #0b0c10;
  --bg-raised: #14151b;
  --bg-card: #191a21;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f7;
  --muted: #a2a3b1;
  --violet: #7b5cff;
  --violet-soft: #a894ff;
  --blue: #4f8bff;
  --radius: 22px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--violet-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(11, 12, 16, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-family: "Space Grotesk", sans-serif; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(123, 92, 255, 0.35), transparent 70%),
    radial-gradient(35% 45% at 75% 20%, rgba(79, 139, 255, 0.22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(123, 92, 255, 0.14); border: 1px solid rgba(123, 92, 255, 0.35);
  color: var(--violet-soft); font-size: 14px; font-weight: 600;
}
.hero h1 { font-size: clamp(42px, 6vw, 72px); margin: 20px 0 20px; }
.hero h1 span { background: linear-gradient(90deg, var(--violet-soft), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px;
  background: var(--text); color: #0b0c10; font-weight: 700;
}
.button:hover { text-decoration: none; opacity: 0.92; }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.note { color: var(--muted); font-size: 14px; }

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,16,.55), rgba(11,12,16,.75) 60%, var(--bg)), url("/assets/bg-hero.jpg") center 65% / cover no-repeat;
  opacity: .9;
}
.hero-grid { grid-template-columns: 1fr 1.05fr !important; }
.hero-device { position: relative; }
.landscape-phone {
  position: relative; border-radius: 44px; padding: 10px;
  background: linear-gradient(145deg,#3a3a42,#16161b 40%,#2a2a31);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.07), 0 0 160px rgba(123,92,255,.3);
}
.landscape-phone img { border-radius: 36px; width: 100%; }
.tap {
  position: absolute; left: 24%; top: 74%; width: 56px; height: 56px; border-radius: 50%;
  transform: translate(-50%,-50%); background: rgba(255,255,255,.55);
  box-shadow: 0 0 30px 10px rgba(160,140,255,.7);
}
.tap::before, .tap::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255,255,255,.7);
  animation: ripple 2.2s ease-out infinite;
}
.tap::after { animation-delay: 1.1s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tap::before, .tap::after { animation: none; } }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 14px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(123, 92, 255, 0.16); color: var(--violet-soft); margin-bottom: 18px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }

.gallery {
  display: flex; gap: 20px; overflow-x: auto; padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}
.gallery img {
  flex: 0 0 auto; width: 260px; border-radius: 28px; scroll-snap-align: start;
  border: 1px solid var(--line);
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--violet); color: white; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

.faq { display: grid; gap: 12px; max-width: 780px; }
details {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px;
}
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

.cta-band {
  text-align: center; border-radius: 32px; padding: 64px 24px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(123, 92, 255, 0.35), transparent 70%), var(--bg-raised);
  border: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin: 0 0 28px; }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

/* Document pages */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin: 0 0 40px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc p, .doc li { color: #d3d3db; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc code { background: var(--bg-card); padding: 2px 6px; border-radius: 6px; font-size: 0.92em; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 24px 0; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-device { order: -1; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .features, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  section { padding: 64px 0; }
}

/* Grid children default to min-width:auto, which lets the wide hero image push the page sideways. */
.hero-grid > *, .features > *, .steps > * { min-width: 0; }
@media (max-width: 600px) {
  .hero h1 { font-size: 44px; }
  .hero p.lead { font-size: 18px; }
  .landscape-phone { border-radius: 28px; padding: 6px; }
  .landscape-phone img { border-radius: 23px; }
  .tap { width: 34px; height: 34px; }
}
