:root {
  --graphite: #2F3A4C;
  --graphite-dark: #1E2633;
  --tint-1: #EEF0F4;
  --tint-2: #DCE1E9;
  --canvas: #F4F3F4;
  --text: #1E2633;
  --muted: #5A6578;
  --line: #DCE1E9;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--graphite); }
a:hover { color: var(--graphite-dark); }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 243, 244, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(220, 225, 233, 0.8);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--graphite-dark); font-size: 19px; letter-spacing: -0.01em; }
.brand b { font-weight: 700; }
.brand span { font-weight: 300; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--graphite-dark); }

/* Hero */
.hero {
  background: linear-gradient(160deg, #36435A 0%, #1E2633 100%);
  color: #fff;
  padding: 88px 0 96px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tint-2); margin: 0 0 14px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 20px; font-weight: 700; }
.hero h1 span { font-weight: 300; }
.hero p.lead { font-size: 19px; color: var(--tint-1); margin: 0 0 32px; max-width: 34em; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff; font-size: 15px; font-weight: 500;
}
.badge svg { width: 18px; height: 18px; }
.meta { margin-top: 18px; font-size: 14px; color: var(--tint-2); }

.figure-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  padding: 26px 26px 18px;
  box-shadow: 0 30px 60px rgba(10, 15, 25, 0.35);
}
.figure-card svg { width: 100%; height: auto; display: block; }
.figure-card .caption { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: center; }

/* Sections */
section { padding: 80px 0; }
.section-title { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.15; }
.section-sub { color: var(--muted); font-size: 18px; margin: 0 0 40px; max-width: 40em; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(220, 225, 233, 0.9);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 1px 2px rgba(30, 38, 51, 0.04);
}
.card h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; display: flex; align-items: flex-start; gap: 10px; }
.card .icon { display: block; flex: none; line-height: 0; }
.card .icon svg { width: 24px; height: 24px; stroke: var(--graphite); stroke-width: 1.75; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.card li { margin: 4px 0; }

.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy-band { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.privacy-band .shield { width: 64px; height: 64px; border-radius: 18px; background: var(--graphite); display: grid; place-items: center; }
.privacy-band .shield svg { width: 32px; height: 32px; stroke: #fff; }
.privacy-band h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.015em; }
.privacy-band p { margin: 0; color: var(--muted); font-size: 17px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.fact { padding: 20px; border-radius: var(--radius); background: var(--tint-1); }
.fact strong { display: block; font-size: 15px; color: var(--graphite-dark); }
.fact span { font-size: 14.5px; color: var(--muted); }

/* Document pages */
.doc-hero { background: linear-gradient(160deg, #36435A 0%, #1E2633 100%); color: #fff; padding: 56px 0 52px; }
.doc-hero h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; }
.doc-hero p { margin: 0; color: var(--tint-2); }
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.doc p { margin: 0 0 14px; font-size: 17px; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-bottom: 28px;
}
.panel p:last-child { margin-bottom: 0; }
.button {
  display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 999px;
  background: var(--graphite); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
}
.button:hover { background: var(--graphite-dark); color: #fff; }

details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--muted); font-size: 16.5px; }

/* Footer */
.site-footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--graphite-dark); }

@media (max-width: 820px) {
  .hero { padding: 56px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav a.hide-sm { display: none; }
  section { padding: 56px 0; }
  .privacy-band { grid-template-columns: 1fr; }
}

/* Screenshots */
.device {
  margin: 0;
  border-radius: 22px;
  padding: 10px;
  background: #0E131B;
  box-shadow: 0 30px 60px rgba(10, 15, 25, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.device img { display: block; width: 100%; height: auto; border-radius: 13px; }
.hero .device { transform: perspective(1600px) rotateY(-6deg); transform-origin: left center; }

.shots { padding-bottom: 40px; }
.shot { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.shot.flip { grid-template-columns: 1fr 1.45fr; }
.shot.flip .device { order: 2; }
.shot .device { box-shadow: 0 20px 44px rgba(30, 38, 51, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.shot-text h3 { margin: 0 0 10px; font-size: 26px; letter-spacing: -0.015em; }
.shot-text p { margin: 0; color: var(--muted); font-size: 17.5px; }

@media (max-width: 820px) {
  .hero .device { transform: none; }
  .shot, .shot.flip { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .shot.flip .device { order: 0; }
}

/* Language switch */
.nav a.lang {
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--tint-2); color: var(--graphite);
}
.nav a.lang:hover { background: var(--tint-1); }

/* Animated hero background */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }

/* Demo video */
.demo { padding-bottom: 24px; }
.demo-video { max-width: 960px; margin: 0 auto; }
.demo-video video { display: block; width: 100%; height: auto; border-radius: 13px; background: #0E131B; }

/* Features: one row per category, items as tags */
.features { border-top: 1px solid var(--line); }
.feature-row {
  display: grid; grid-template-columns: 300px 1fr; gap: 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.feature-head { display: flex; align-items: flex-start; gap: 12px; }
.feature-head .icon { flex: none; line-height: 0; margin-top: 1px; }
.feature-head .icon svg { width: 26px; height: 26px; stroke: var(--graphite); stroke-width: 1.75; }
.feature-head h3 { margin: 0; font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; color: var(--graphite-dark); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: 15px; line-height: 1.4; color: var(--text);
  transition: border-color .15s, background .15s;
}
.tags li:hover { border-color: #B9C1CF; background: var(--tint-1); }

@media (max-width: 820px) {
  .feature-row { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .tags li { font-size: 14.5px; }
}

/* ---------- Responsive refinements ---------- */
.brand div { white-space: nowrap; }
.lang-short { display: none; }

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .site-header .wrap { height: 56px; gap: 12px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .nav { gap: 14px; align-items: center; }
  .nav a { font-size: 14.5px; }
  .nav a.lang { padding: 3px 10px; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; }
  .lang-full { display: none; }
  .lang-short { display: inline; }

  .hero { padding: 40px 0 52px; }
  .hero .wrap { gap: 36px; }
  .eyebrow { font-size: 12.5px; }
  .hero p.lead { font-size: 17px; margin-bottom: 26px; }
  .badge { font-size: 14.5px; padding: 11px 18px; }
  .device { padding: 6px; border-radius: 16px; }
  .device img, .demo-video video { border-radius: 11px; }

  section { padding: 48px 0; }
  .section-sub { font-size: 16.5px; margin-bottom: 28px; }

  .feature-head h3 { font-size: 18px; }
  .tags { gap: 8px; }
  .tags li { border-radius: 12px; padding: 8px 12px; font-size: 14.5px; }

  .shot, .shot.flip { margin-bottom: 40px; }
  .shot-text h3 { font-size: 21px; }
  .shot-text p { font-size: 16px; }

  .privacy-band { gap: 18px; }
  .privacy-band .shield { width: 52px; height: 52px; border-radius: 14px; }
  .privacy-band h2 { font-size: 22px; }
  .privacy-band p { font-size: 16px; }

  .facts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fact { padding: 16px; }
  .fact strong { font-size: 14.5px; }
  .fact span { font-size: 13.5px; line-height: 1.45; display: block; margin-top: 2px; }

  .site-footer .wrap { flex-direction: column; gap: 14px; }
  .site-footer nav { flex-wrap: wrap; gap: 10px 18px; }

  .doc-hero { padding: 40px 0 36px; }
  .doc { padding: 36px 0 56px; }
  .panel { padding: 20px; }
  details { padding: 0 16px; }
  summary { font-size: 16px; padding: 15px 0; }
}

@media (max-width: 360px) {
  .nav a.hide-xs { display: none; }
}
