:root {
  --bg: #fff6ec;
  --bg-deep: #ffe7cf;
  --card: #ffffff;
  --ink: #2a1a0e;
  --muted: rgba(42, 26, 14, 0.62);
  --line: rgba(42, 26, 14, 0.1);
  --brand: #f26b0f;
  --brand-2: #ffb529;
  --brand-soft: rgba(242, 107, 15, 0.12);
  --shadow: 0 24px 60px -24px rgba(194, 78, 0, 0.35);
  --radius: 24px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110c;
    --bg-deep: #22180f;
    --card: #241a13;
    --ink: #fff4ea;
    --muted: rgba(255, 244, 234, 0.66);
    --line: rgba(255, 244, 234, 0.12);
    --brand: #ff8a3d;
    --brand-soft: rgba(255, 138, 61, 0.16);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
}
.brand img {
  border-radius: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  color: #fff !important;
  background: var(--brand);
  padding: 8px 16px;
  border-radius: 999px;
}
@media (max-width: 720px) {
  .nav-links .hide-sm {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 32px;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(255, 181, 41, 0.35), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(242, 107, 15, 0.18), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 .accent {
  color: var(--brand);
}
.flipped {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 0;
}
.hero p.lead {
  font-size: 20px;
  color: var(--muted);
  margin: 24px 0 32px;
  max-width: 34ch;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 14px;
  color: var(--muted);
}
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 560px;
}
.hero-phones .phone {
  width: min(300px, 60%);
  filter: drop-shadow(0 40px 50px rgba(160, 60, 0, 0.3));
}
.hero-phones .phone.back {
  position: absolute;
  right: 4%;
  top: 48px;
  width: min(250px, 50%);
  transform: rotate(8deg);
  opacity: 0.95;
}
.hero-phones .phone.front {
  position: relative;
  transform: rotate(-4deg) translateX(-12%);
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p.lead {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-phones {
    min-height: 460px;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head .kicker {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.section-head h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
}
.section-head p {
  color: var(--muted);
  font-size: 19px;
}

/* ---------- Demo ---------- */
.demo {
  background: var(--card);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--line);
}
.demo-input {
  width: 100%;
  font: inherit;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 16px 20px;
  outline: none;
  transition: border-color 0.2s;
}
.demo-input:focus {
  border-color: var(--brand);
}
.demo-results {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.demo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 8px 12px 20px;
  border-radius: 16px;
  transition: background 0.2s;
}
.demo-row:hover {
  background: var(--brand-soft);
}
.demo-row .label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.demo-row .value {
  font-size: 20px;
  word-break: break-word;
}
.demo-row .text {
  flex: 1;
  min-width: 0;
}
.copy-btn {
  flex: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  min-width: 84px;
}
.copy-btn.done {
  color: #fff;
  background: #22a559;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.feature .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(160deg, var(--brand-2), var(--brand));
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.feature p {
  color: var(--muted);
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ---------- Screens gallery ---------- */
.screens-band {
  background: linear-gradient(180deg, var(--bg), var(--bg-deep));
}
.screens {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 32px;
  scrollbar-width: none;
}
.screens::-webkit-scrollbar {
  display: none;
}
.screens img {
  flex: none;
  width: 260px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  scroll-snap-align: center;
}

/* ---------- Devices ---------- */
.devices {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.device-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 32px 32px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.device-card h3 {
  font-size: 22px;
}
.device-card p {
  color: var(--muted);
  margin-top: 4px;
}
.device-card .art {
  margin-top: auto;
  display: flex;
  justify-content: center;
}
.device-stack {
  display: grid;
  gap: 24px;
}
.device-stack .device-card {
  height: 100%;
}
.device-pair {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: flex-end;
}
@media (max-width: 900px) {
  .devices {
    grid-template-columns: 1fr;
  }
}

/* ---------- Privacy band + CTA ---------- */
.privacy-band {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  border-radius: 40px;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.privacy-band h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.privacy-band ul {
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
}
.privacy-band li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  font-size: 15px;
}
.privacy-band .link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 800px) {
  .privacy-band {
    grid-template-columns: 1fr;
    padding: 48px 28px;
  }
}

.cta {
  text-align: center;
}
.cta img.app-icon {
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.cta h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.cta p {
  color: var(--muted);
  font-size: 19px;
  margin: 12px 0 28px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 15px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer nav {
  display: flex;
  gap: 24px;
}
.footer a:hover {
  color: var(--ink);
}

/* ---------- Legal / support pages ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 96px;
}
.doc h1 {
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.doc .updated {
  color: var(--muted);
  margin: 12px 0 40px;
}
.doc h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}
.doc p,
.doc li {
  color: var(--muted);
  font-size: 18px;
}
.doc ul {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.doc a {
  color: var(--brand);
  font-weight: 600;
}
.doc .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 16px;
}
.doc details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  margin-top: 12px;
}
.doc summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.doc details p {
  margin-top: 10px;
}
.button {
  display: inline-block;
  color: #fff !important;
  background: var(--brand);
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  margin-top: 16px;
}
