:root {
  --ink: #0f2744;
  --ink-soft: #3d5570;
  --paper: #f4f8fc;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(15, 39, 68, 0.1);
  --sky-1: #1b7fd6;
  --sky-2: #3aa0ef;
  --sky-3: #7ec8ff;
  --sea: #0a4f8c;
  --mint: #34c759;
  --warn: #ff9f0a;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(10, 79, 140, 0.18);
  --font-display: "Sora", "Noto Sans SC", sans-serif;
  --font-body: "Manrope", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(126, 200, 255, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(27, 127, 214, 0.28), transparent 50%),
    linear-gradient(180deg, #eaf4ff 0%, var(--paper) 42%, #eef6fb 100%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-1); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--sea); }

.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(10, 79, 140, 0.25);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  font-size: 0.95rem;
}
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--sky-1); }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.7);
}
.lang-switch a {
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}
.lang-switch a.active {
  background: var(--ink);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.2rem 0 3.5rem;
  min-height: min(78vh, 760px);
}
.hero-copy { max-width: 34rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.14);
  color: #1a7a38;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  animation: rise 0.7s ease both;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 0.9rem;
  animation: rise 0.8s ease 0.05s both;
}
.hero .lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  animation: rise 0.8s ease 0.12s both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  animation: rise 0.8s ease 0.18s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--sky-1), var(--sea));
  color: #fff;
  box-shadow: 0 14px 30px rgba(27, 127, 214, 0.35);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--ink); }
.fineprint {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  animation: rise 0.8s ease 0.24s both;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  animation: floaty 6s ease-in-out infinite;
}
.phone-stack {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
}
.phone {
  width: min(260px, 68vw);
  border-radius: 28px;
  overflow: hidden;
  background: #0b1b2d;
  box-shadow: var(--shadow);
  border: 3px solid rgba(255,255,255,0.65);
  transform: rotate(-6deg);
}
.phone.secondary {
  position: absolute;
  width: min(220px, 56vw);
  right: 4%;
  top: 12%;
  transform: rotate(8deg);
  opacity: 0.95;
  z-index: 0;
}
.phone.primary { position: relative; z-index: 1; }
.phone img { width: 100%; }
.badge-float {
  position: absolute;
  z-index: 2;
  left: 6%;
  bottom: 14%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 12px 28px rgba(10, 79, 140, 0.16);
  font-size: 0.88rem;
  font-weight: 700;
  animation: rise 1s ease 0.35s both;
}
.badge-float span { color: var(--mint); }

section { padding: 1.2rem 0 3.2rem; }
.section-head {
  max-width: 40rem;
  margin-bottom: 1.6rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.section-head p { margin: 0; color: var(--ink-soft); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(10, 79, 140, 0.12);
}
.feature .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: linear-gradient(145deg, var(--sky-3), var(--sky-1));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
}
.feature h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.4rem 1.2rem 1.4rem 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(234,244,255,0.75));
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
}
.step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.privacy-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(27, 127, 214, 0.12), rgba(52, 199, 89, 0.1)),
    rgba(255,255,255,0.65);
  border: 1px solid var(--line);
}
.privacy-band h2 { margin-top: 0; }
.checks { list-style: none; padding: 0; margin: 0.8rem 0 0; }
.checks li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  color: var(--ink-soft);
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 900;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.gallery figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b1b2d;
  box-shadow: 0 14px 30px rgba(10, 79, 140, 0.12);
}
.gallery img { width: 100%; }
.gallery figcaption {
  padding: 0.55rem 0.7rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #d7e8f8;
  background: #0b1b2d;
}

.cta-final {
  text-align: center;
  padding: 2.5rem 1.4rem;
  border-radius: 28px;
  background: linear-gradient(145deg, #0a4f8c, #1b7fd6 55%, #3aa0ef);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}
.cta-final p { margin: 0 0 1.2rem; opacity: 0.92; }
.cta-final .btn-primary {
  background: #fff;
  color: var(--sea);
  box-shadow: none;
}
.cta-final .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.footer {
  padding: 2.5rem 0 2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}
.footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--sky-1); }

/* Doc pages */
.doc {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}
.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.75rem;
}
.doc h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.8rem 0 0.55rem;
  letter-spacing: -0.02em;
}
.doc .meta { color: var(--ink-soft); margin-bottom: 1.2rem; }
.doc .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  margin: 1rem 0;
}
.doc ol, .doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.35rem 0; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  margin: 0.65rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-family: var(--font-display);
}
.faq details p { margin: 0.65rem 0 0.2rem; color: var(--ink-soft); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 1.2rem; }
  .hero-visual { min-height: 360px; order: -1; }
  .feature-grid, .steps, .gallery, .privacy-band { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .phone.secondary { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
