/* Landing page styles (site/index.html). The privacy page keeps style.css. */

:root {
  --bg: #f6f9fa;
  --surface: #ffffff;
  --surface-2: #e8f2f5;
  --text: #142024;
  --muted: #55676d;
  --accent: #0b6b8a;
  --accent-strong: #08516a;
  --accent-soft: #cde8f1;
  --on-accent: #ffffff;
  --warm: #e8875a;
  --line: #d7e2e6;
  --shadow: 0 1px 2px rgb(10 40 50 / 6%), 0 12px 32px -12px rgb(10 40 50 / 22%);
  --radius: 20px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1517;
    --surface: #142024;
    --surface-2: #18292e;
    --text: #e3eef1;
    --muted: #9bb0b6;
    --accent: #5cc3e2;
    --accent-strong: #8ad6ee;
    --accent-soft: #163a46;
    --on-accent: #062633;
    --warm: #f0a07a;
    --line: #243439;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

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

/* ---------- Header ---------- */

.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.top nav a:hover { color: var(--text); }

.lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.lang button {
  font: 600 .8rem var(--font); letter-spacing: .04em;
  border: 0; background: transparent; color: var(--muted);
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 15%); }

@media (max-width: 760px) {
  .top nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font: 600 1rem var(--font); text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .eyebrow .dot { animation: none; } }

.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); margin: 20px 0 18px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.chips li { display: flex; align-items: center; gap: 7px; }
.chips svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone:nth-child(1) { transform: rotate(-4deg) translateX(30px); z-index: 1; opacity: .9; }
.hero-visual .phone:nth-child(2) { transform: rotate(3deg) translate(-30px, 34px); z-index: 2; }

@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual .phone:nth-child(1) { display: none; }
  .hero-visual .phone:nth-child(2) { transform: none; }
}

/* ---------- Phone frame ---------- */

.phone {
  width: min(270px, 70vw); flex: none;
  aspect-ratio: 1078 / 2398;
  padding: 9px; border-radius: 38px;
  background: linear-gradient(145deg, #2a3438, #0b1012);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgb(255 255 255 / 10%);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; background: var(--surface-2); }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }

.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li {
  position: relative; padding: 28px 26px 26px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
}
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font: 700 .9rem var(--mono); color: var(--accent); margin-bottom: 18px;
}
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Volume keys spotlight ---------- */

.spotlight { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.spotlight .visual { display: flex; justify-content: center; position: relative; }
.keys { position: absolute; right: calc(50% - 160px); top: 22%; display: flex; flex-direction: column; gap: 10px; }
.keys span { width: 7px; height: 64px; border-radius: 4px; background: var(--warm); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warm) 25%, transparent); }
.keys span + span { height: 48px; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }

.keylist { display: grid; gap: 14px; margin-top: 32px; padding: 0; list-style: none; }
.keylist li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.key {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 128px;
  padding: 8px 12px; border-radius: 10px;
  font: 600 .82rem var(--font); background: var(--accent-soft); color: var(--accent-strong);
}
.key.warm { background: color-mix(in srgb, var(--warm) 22%, transparent); color: var(--text); }
.keylist strong { display: block; }
.keylist small { color: var(--muted); font-size: .92rem; }
.note { color: var(--muted); margin-top: 20px; font-size: .95rem; }

@media (max-width: 860px) {
  .spotlight { grid-template-columns: 1fr; gap: 40px; }
  .spotlight .visual { order: 2; }
  .keys { display: none; }
}
@media (max-width: 480px) {
  .keylist li { grid-template-columns: 1fr; gap: 10px; }
  .key { justify-self: start; }
}

/* ---------- Feature grid ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .97rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */

.gallery-wrap { position: relative; }
.gallery {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2 + 20px)) 28px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: center; flex: none; }
.gallery .phone { width: 230px; }
.gallery figcaption { text-align: center; margin-top: 16px; font-weight: 600; font-size: .95rem; }
.gallery figcaption small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; max-width: 230px; margin: 2px auto 0; }

.gallery-nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.gallery-nav button {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  display: grid; place-items: center;
}
.gallery-nav button:hover { border-color: var(--accent); color: var(--accent); }
.gallery-nav svg { width: 20px; height: 20px; }

/* ---------- Line analysis split ---------- */

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.split .visual { display: flex; justify-content: center; gap: 20px; }
.split .visual .phone { width: min(230px, 42vw); }
.split .visual .phone:last-child { margin-top: 48px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.ticks svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.ticks strong { color: var(--text); }
.ticks li { color: var(--muted); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Privacy band ---------- */

.privacy-band {
  border-radius: 28px; padding: 56px 48px;
  background: linear-gradient(135deg, #0b6b8a, #08435a);
  color: #e9f6fa; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.privacy-band::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 48px solid rgb(255 255 255 / 6%);
}
.privacy-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: #fff; }
.privacy-band p { margin-top: 14px; opacity: .88; font-size: 1.08rem; }
.privacy-band a { color: #fff; }
.no-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.no-list li {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px;
  background: rgb(255 255 255 / 9%); border: 1px solid rgb(255 255 255 / 14%); font-weight: 600;
}
.no-list svg { width: 20px; height: 20px; flex: none; color: #9fe1f5; }
@media (max-width: 860px) {
  .privacy-band { grid-template-columns: 1fr; padding: 40px 24px; }
}
@media (max-width: 420px) { .no-list { grid-template-columns: 1fr; } }

/* ---------- Download ---------- */

.download { text-align: center; }
.download .icon-big { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 24px; box-shadow: var(--shadow); }
.download h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.download p { color: var(--muted); font-size: 1.1rem; margin: 14px auto 0; max-width: 36em; }
.download .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.download .meta { margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
