/* ============================================================
   Zeppio — static site styles
   Dark premium app showcase for zeppio.pro
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #080B0D;
  --bg-soft: #0D1112;
  --surface: #111716;
  --surface-2: #171D1B;
  --surface-3: #202723;
  --paper: #F7F3EA;
  --paper-soft: #DED6C8;
  --ink: #F7F3EA;
  --ink-soft: #D8D0C3;
  --muted: #AFA79B;
  --muted-2: #79736A;
  --border: #2A3431;
  --border-strong: #3B4845;
  --primary: #4F98A3;
  --primary-deep: #01696F;
  --primary-soft: #A1F0F6;
  --gold: #E8AF34;
  --gold-soft: #3A2C12;
  --danger: #DD6974;
  --ok: #73B66D;
  --radius: 8px;
  --phone-radius: 34px;
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.48);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --body-bg:
    linear-gradient(135deg, rgba(1, 105, 111, 0.14), transparent 34%),
    linear-gradient(180deg, #080B0D 0%, #0A0D0E 44%, #11100D 100%);
  --grid-line: rgba(255, 255, 255, 0.035);
  --header-bg: rgba(8, 11, 13, 0.78);
  --header-bg-scrolled: rgba(8, 11, 13, 0.92);
  --hairline: rgba(255, 255, 255, 0.08);
  --nav-active-bg: var(--paper);
  --nav-active-ink: #111716;
  --control-bg: rgba(255, 255, 255, 0.04);
  --control-bg-hover: rgba(255, 255, 255, 0.08);
  --control-border-hover: rgba(247, 243, 234, 0.42);
  --card-bg: rgba(17, 23, 22, 0.82);
  --card-bg-hover: rgba(23, 29, 27, 0.92);
  --card-bg-open: rgba(23, 29, 27, 0.94);
  --section-glass: rgba(255, 255, 255, 0.035);
  --menu-bg: rgba(14, 18, 19, 0.98);
  --phone-bg: #070A0B;
  --phone-ring: #0D1112;
  --mini-bg: #0B0F10;
  --mini-ring: #14191A;
  --glass-dark: rgba(8, 11, 13, 0.72);
  --glass-dark-soft: rgba(8, 11, 13, 0.62);
  --footer-bg: rgba(6, 9, 10, 0.82);
  --doc-bg: rgba(17, 23, 22, 0.92);
  --cta-bg:
    linear-gradient(135deg, rgba(232, 175, 52, 0.16), transparent 42%),
    linear-gradient(180deg, #141615, #0E1112);
  --tag-dark-ink: #FFD56B;
  --callout-strong: #FFD56B;
  --link-hover: #fff;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F3EA;
  --bg-soft: #EFE8DA;
  --surface: #FFFDF7;
  --surface-2: #F3EBDD;
  --surface-3: #E7DDCB;
  --ink: #111716;
  --ink-soft: #34423C;
  --muted: #5C665E;
  --muted-2: #667067;
  --border: #D9D0C0;
  --border-strong: #BFB39F;
  --primary: #3C9BA5;
  --primary-deep: #01696F;
  --primary-soft: #01696F;
  --gold: #835300;
  --gold-soft: #FFF0C4;
  --shadow-sm: 0 10px 28px rgba(63, 52, 35, 0.10);
  --shadow-md: 0 20px 60px rgba(63, 52, 35, 0.14);
  --shadow-lg: 0 34px 90px rgba(63, 52, 35, 0.18);
  --body-bg:
    linear-gradient(135deg, rgba(47, 135, 145, 0.13), transparent 34%),
    linear-gradient(180deg, #FAF7EF 0%, #F1E7D7 46%, #FFFDF7 100%);
  --grid-line: rgba(17, 23, 22, 0.045);
  --header-bg: rgba(250, 247, 239, 0.82);
  --header-bg-scrolled: rgba(250, 247, 239, 0.94);
  --hairline: rgba(17, 23, 22, 0.10);
  --nav-active-bg: #FFFDF7;
  --nav-active-ink: #111716;
  --control-bg: rgba(17, 23, 22, 0.035);
  --control-bg-hover: rgba(47, 135, 145, 0.10);
  --control-border-hover: rgba(1, 105, 111, 0.36);
  --card-bg: rgba(255, 253, 247, 0.86);
  --card-bg-hover: rgba(255, 253, 247, 0.98);
  --card-bg-open: rgba(255, 253, 247, 0.98);
  --section-glass: rgba(255, 253, 247, 0.60);
  --menu-bg: rgba(255, 253, 247, 0.98);
  --glass-dark: rgba(17, 23, 22, 0.74);
  --glass-dark-soft: rgba(17, 23, 22, 0.62);
  --footer-bg: rgba(249, 244, 233, 0.90);
  --doc-bg: rgba(255, 253, 247, 0.94);
  --cta-bg:
    linear-gradient(135deg, rgba(154, 103, 6, 0.13), transparent 42%),
    linear-gradient(180deg, #FFFDF7, #F3EBDD);
  --tag-dark-ink: #7A5104;
  --callout-strong: #7A5104;
  --link-hover: #111716;
}

* { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  background: var(--body-bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}

::selection { background: var(--primary); color: #031010; }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 243, 234, 0.28);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

a:hover { color: var(--primary-soft); border-color: var(--primary-soft); }
a.nolink, a.btn, a.tag, a.logo, nav a, footer a { border-bottom: none; }

h1, h2, h3, h4 {
  margin: 0 0 .45em;
  color: var(--ink);
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 560;
  letter-spacing: 0;
  font-variation-settings: "opsz" 144, "SOFT" 45;
}

h1 { max-width: 820px; font-size: 4.35rem; line-height: 1.02; }
h2 { font-size: 2.65rem; line-height: 1.08; }
h3 { font-size: 1.22rem; line-height: 1.25; }
h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
}

p { margin: 0 0 1em; color: var(--ink-soft); }
small { color: var(--muted); font-size: .86rem; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .92em; }

.hero h1,
.section-head h2,
.cta-banner h2 {
  text-wrap: balance;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.accent-italic { color: var(--primary-soft); font-style: italic; }

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.35) blur(18px);
  -webkit-backdrop-filter: saturate(1.35) blur(18px);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.site-header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: 0;
}

.logo-mark,
.logo .dot {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(79, 152, 163, 0.14);
}

.logo-mark::after,
.logo .dot::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 8px;
  background: var(--paper);
  transform: rotate(38deg);
  clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .92rem;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.nav-links a:hover { background: var(--control-bg-hover); color: var(--ink); }
.nav-links a.active { background: var(--nav-active-bg); color: var(--nav-active-ink); }

.nav-indicator {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 50%;
  width: 0;
  height: 38px;
  border-radius: 999px;
  background: var(--nav-active-bg);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -50%, 0);
  transition:
    transform .34s var(--ease),
    width .34s var(--ease),
    opacity .2s var(--ease),
    background .2s var(--ease);
}

.nav-indicator.is-visible { opacity: 1; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 62px;
  height: 34px;
  min-height: 34px;
  padding: 4px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(232, 175, 52, 0.14), transparent 42%),
    var(--control-bg);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.20), 0 10px 24px rgba(0, 0, 0, 0.12);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .18s var(--ease), box-shadow .2s var(--ease);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(232, 175, 52, 0.18), transparent 42%),
    var(--control-bg-hover);
  border-color: var(--control-border-hover);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 3px;
}

.theme-toggle-icon {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 175, 52, 0.12), 0 4px 12px rgba(0, 0, 0, 0.24);
  transform: translateX(0);
  transition: transform .28s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.theme-toggle-icon::after {
  content: "";
  position: absolute;
  inset: 0 0 0 10px;
  border-radius: 50%;
  background: var(--control-bg);
}

[data-theme="light"] .theme-toggle {
  justify-content: flex-start;
  background:
    linear-gradient(135deg, rgba(47, 135, 145, 0.18), transparent 48%),
    var(--control-bg-hover);
}

[data-theme="light"] .theme-toggle-icon {
  background: var(--primary);
  box-shadow: inset -7px -5px 0 0 #F7F3EA, 0 0 0 4px rgba(47, 135, 145, 0.13), 0 4px 12px rgba(63, 52, 35, 0.18);
  transform: translateX(28px);
}

[data-theme="light"] .theme-toggle-icon::after { display: none; }

.theme-toggle-floating {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--control-bg);
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  position: relative;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}

.btn:focus-visible,
.burger:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 3px;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #061315;
  box-shadow: 0 16px 34px rgba(79, 152, 163, 0.28);
}

.btn-primary:hover { background: var(--primary-soft); color: #061315; }
.btn-ghost {
  background: var(--control-bg);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover { background: var(--control-bg-hover); border-color: var(--control-border-hover); color: var(--ink); }
.btn-accent {
  background: var(--gold);
  color: #1D1608;
  box-shadow: 0 16px 34px rgba(232, 175, 52, 0.22);
}

.btn-accent:hover { background: #FFD56B; color: #1D1608; }
.btn-lg { min-height: 52px; padding: 15px 24px; font-size: 1rem; }
.btn .arrow { line-height: 1; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* -------- Hero -------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 92px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, rgba(232, 175, 52, 0.08), transparent 36%),
    linear-gradient(270deg, rgba(79, 152, 163, 0.16), transparent 42%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .78fr);
  align-items: center;
  gap: 54px;
}

.hero-copy { min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 24px;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(115, 182, 109, 0.45);
  animation: pulseDot 2.2s ease-out infinite;
  flex: 0 0 auto;
}

.hero h1 em {
  color: inherit;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero h1 .accent {
  display: inline-block;
  color: var(--primary-soft);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  transform: skewX(-3deg);
  transform-origin: left bottom;
}

.hero-sub {
  max-width: 690px;
  margin: 20px 0 30px;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
  max-width: 740px;
}

.hero-meta span {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--section-glass);
  color: var(--muted);
  font-size: .9rem;
}

.hero-meta span::before {
  content: "✓";
  margin-right: 8px;
  color: var(--gold);
  font-weight: 700;
}

/* -------- App visual -------- */
.app-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.showcase-glow {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 70px;
  height: 430px;
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(79, 152, 163, 0.16), rgba(232, 175, 52, 0.06) 48%, rgba(255, 255, 255, 0.035));
  filter: blur(22px);
  transform: rotate(-7deg);
  animation: showcaseGlow 6.2s ease-in-out infinite;
}

.phone {
  position: relative;
  z-index: 2;
  width: 322px;
  height: 640px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--phone-radius);
  background: var(--phone-bg);
  color: var(--paper);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(247, 243, 234, 0.05),
    inset 0 0 0 10px var(--phone-ring),
    inset 0 0 0 11px rgba(247, 243, 234, 0.08);
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  z-index: 6;
  width: 82px;
  height: 7px;
  border-radius: 999px;
  background: rgba(247, 243, 234, 0.16);
  transform: translateX(-50%);
}

.phone-main {
  animation: phoneFloat 4.8s cubic-bezier(.34, .08, .2, 1) infinite;
  transform: translate3d(-4px, 8px, 0) rotateZ(-1.2deg) scale(1);
  transform-origin: center 58%;
  backface-visibility: hidden;
  will-change: transform;
}

.phone-status {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 18px 28px 8px;
  color: rgba(247, 243, 234, 0.84);
  font-size: .78rem;
  font-weight: 700;
}

.camera-scene {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(247, 243, 234, 0.08);
  border-radius: 26px;
  overflow: hidden;
  background: #0B1618;
  color: var(--paper);
  isolation: isolate;
}

.camera-scene::before {
  content: "";
  position: absolute;
  inset: -6% -8% 34% -8%;
  z-index: 1;
  background: radial-gradient(circle at 50% 18%, rgba(161, 240, 246, 0.18), transparent 54%);
  pointer-events: none;
}

.camera-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 7, 8, 0.18), rgba(4, 7, 8, 0.05) 34%, rgba(4, 7, 8, 0.54) 100%),
    radial-gradient(circle at 50% 24%, rgba(79, 152, 163, 0.14), transparent 44%),
    radial-gradient(circle at 50% 94%, rgba(4, 7, 8, 0.38), transparent 32%);
  pointer-events: none;
}

.scan-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(1.08) contrast(1.02) brightness(.9);
}

.camera-toolbar {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 52px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(247, 243, 234, 0.12);
  border-radius: 999px;
  background: rgba(10, 17, 19, 0.8);
  color: var(--paper);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.camera-tool-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .74rem;
  font-weight: 800;
}

.camera-tool-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(115, 182, 109, 0.14);
}

.camera-tool-chip {
  min-width: 32px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(161, 240, 246, 0.14);
  color: var(--primary-soft);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .68rem;
  font-weight: 800;
  text-align: center;
}

.scene-sky {
  position: absolute;
  inset: 0 0 42%;
  background:
    linear-gradient(180deg, rgba(0, 53, 68, .96), rgba(11, 22, 24, .12)),
    linear-gradient(135deg, rgba(79, 152, 163, .78), transparent 58%);
}

.scene-building {
  position: absolute;
  left: -28px;
  right: -24px;
  bottom: 88px;
  height: 380px;
  transform: skewY(-10deg) rotate(-1deg);
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(247, 243, 234, .8) 8% 11%, transparent 11% 19%, rgba(247, 243, 234, .72) 19% 22%, transparent 22% 100%),
    linear-gradient(180deg, #B49775 0%, #7E6650 42%, #3B3028 100%);
  filter: saturate(.78);
  opacity: .86;
}

.scene-building span {
  position: absolute;
  bottom: 0;
  width: 34px;
  height: 260px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #D5C0A1, #534333);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.scene-building span:nth-child(1) { left: 42px; height: 240px; }
.scene-building span:nth-child(2) { left: 112px; height: 300px; }
.scene-building span:nth-child(3) { right: 106px; height: 270px; }
.scene-building span:nth-child(4) { right: 36px; height: 330px; }

.scan-frame {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 150px;
  z-index: 2;
  height: 284px;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.scan-frame > span {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: #fff;
}

.scan-frame > span:nth-child(1) { left: -4px; top: -4px; border-top: 5px solid; border-left: 5px solid; border-radius: 14px 0 0 0; }
.scan-frame > span:nth-child(2) { right: -4px; top: -4px; border-top: 5px solid; border-right: 5px solid; border-radius: 0 14px 0 0; }
.scan-frame > span:nth-child(3) { left: -4px; bottom: -4px; border-bottom: 5px solid; border-left: 5px solid; border-radius: 0 0 0 14px; }
.scan-frame > span:nth-child(4) { right: -4px; bottom: -4px; border-bottom: 5px solid; border-right: 5px solid; border-radius: 0 0 14px 0; }

.scan-line {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(161, 240, 246, 0.3) 16%, var(--primary-soft) 50%, rgba(161, 240, 246, 0.3) 84%, transparent 100%);
  box-shadow: 0 0 18px rgba(161, 240, 246, 0.78);
  animation: scanLine 2.8s linear infinite;
}

.scan-caption {
  position: absolute;
  left: 30px;
  right: 30px;
  top: 100px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(10, 17, 19, 0.84);
  color: var(--paper);
}

.scan-caption span { color: #D8D0C3; font-size: .84rem; }
.scan-caption strong { color: var(--primary-soft); }

.recognition-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 108px;
  z-index: 3;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(10, 17, 19, 0.9);
  color: var(--paper);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.recognition-card img {
  width: 78px;
  height: 66px;
  border-radius: 10px;
  object-fit: cover;
}

.recognition-card span {
  display: block;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.recognition-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--paper);
  font-size: .96rem;
  line-height: 1.18;
}

.recognition-card small {
  display: block;
  margin-top: 2px;
  color: #D8D0C3;
}

.phone-actions {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-actions .phone-action {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.phone-actions .phone-action::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--paper);
  border-radius: 4px;
}

.phone-actions .shutter {
  width: 74px;
  height: 74px;
  border: 5px solid var(--paper);
  background: var(--primary-deep);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.phone-actions .shutter::before {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border-color: var(--paper);
}

/* -------- Sections -------- */
section { padding: 82px 0; }
.section-head {
  max-width: 760px;
  margin: 0 0 42px;
  text-align: left;
}

.keep-phrase {
  white-space: nowrap;
}

.section-head .tag,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79, 152, 163, 0.14);
  color: var(--primary-soft);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tag-dark {
  background: rgba(232, 175, 52, 0.14);
  color: var(--tag-dark-ink);
}

/* -------- Safety -------- */
.safety-section {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, var(--section-glass), transparent),
    rgba(1, 105, 111, 0.045);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.safety-card,
.step,
.benefit,
.plan,
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.safety-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  overflow: hidden;
}

.safety-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 18px 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(161, 240, 246, 0.42), transparent);
}

.safety-num {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--gold);
  font-family: "Fraunces", serif;
  font-size: 2.3rem;
  line-height: 1;
}

.safety-card p,
.step p,
.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
}

/* -------- How it works -------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step {
  position: relative;
  min-height: 238px;
  padding: 22px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}

.step:hover,
.benefit:hover,
.plan:hover {
  transform: translateY(-4px);
  border-color: rgba(161, 240, 246, 0.36);
  background: var(--card-bg-hover);
}

.step .num {
  display: block;
  margin-bottom: 34px;
  color: var(--primary-soft);
  font-family: "Fraunces", serif;
  font-size: 2.45rem;
  line-height: 1;
}

.step .num::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 14px;
  background: var(--gold);
}

.step h3 { margin-bottom: 8px; }

/* -------- App section -------- */
.app-section {
  background: linear-gradient(180deg, transparent, rgba(232, 175, 52, 0.035), transparent);
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 42px;
}

.screen-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 640px;
  margin-left: auto;
}

.mini-screen {
  min-height: 342px;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--mini-bg);
  color: var(--paper);
  box-shadow: var(--shadow-md), inset 0 0 0 6px var(--mini-ring);
  overflow: hidden;
}

.mini-screen:nth-child(1) { transform: translateY(12px); }
.mini-screen:nth-child(2) { transform: translateY(-12px); }

.mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper);
  font-size: .83rem;
  margin-bottom: 18px;
}

.mini-top span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.mini-frame {
  position: relative;
  height: 214px;
  border: 2px solid var(--primary);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(6, 9, 10, .12), rgba(6, 9, 10, .55)),
    linear-gradient(150deg, rgba(79, 152, 163, 0.22), transparent 50%),
    url("/assets/st-isaac-cathedral.jpg");
  background-size: cover;
  background-position: center 44%;
  overflow: hidden;
}

.mini-frame::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 34px;
  height: 2px;
  background: var(--primary-soft);
  animation: scanLineMini 2.6s ease-in-out infinite;
}

.mini-screen > p { margin: 14px 0 0; color: #D8D0C3; }

.landmark-thumb {
  display: block;
  width: calc(100% + 32px);
  height: 132px;
  margin: -16px -16px 16px;
  object-fit: cover;
  object-position: center 46%;
}

.story-mini h3 {
  color: var(--paper);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.02rem;
}

.story-mini p { color: #D8D0C3; }

.rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 800;
  line-height: 1.2;
}

.rating strong { display: block; color: var(--gold); }
.rating span { display: block; color: #D8D0C3; font-weight: 600; }

/* -------- Benefits -------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.benefit {
  min-height: 204px;
  padding: 23px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}

.benefit .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  background: rgba(79, 152, 163, 0.13);
  color: var(--primary-soft);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.benefit h3 {
  margin-bottom: 10px;
  font-size: clamp(1.36rem, 1.15rem + .38vw, 1.56rem);
  line-height: 1.14;
}

/* -------- Pricing -------- */
.pricing {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 30px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}

.plan.featured {
  border-color: rgba(232, 175, 52, 0.48);
  background:
    linear-gradient(180deg, rgba(232, 175, 52, 0.11), var(--card-bg-hover) 36%),
    var(--card-bg-hover);
}

.plan .badge {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #1D1608;
  font-size: .78rem;
  font-weight: 800;
}

.plan h3 {
  max-width: 70%;
  margin-bottom: 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .9rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.plan .price {
  margin: 4px 0 10px;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: 3.1rem;
  line-height: 1;
}

.plan .price small {
  color: var(--muted);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .96rem;
  font-weight: 600;
}

.plan .desc {
  color: var(--muted);
  font-size: .96rem;
  margin-bottom: 24px;
}

.plan ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .95rem;
}

.plan li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(79, 152, 163, 0.16);
  color: var(--primary-soft);
  font-size: .78rem;
  font-weight: 900;
}

.plan.featured li::before {
  background: rgba(232, 175, 52, 0.18);
  color: var(--tag-dark-ink);
}

.plan .cta { margin-top: auto; }

.pricing-footnote {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px dashed rgba(232, 175, 52, 0.35);
  border-radius: var(--radius);
  background: rgba(232, 175, 52, 0.065);
  color: var(--muted);
  font-size: .9rem;
}

.pricing-footnote strong { color: var(--gold); }

/* -------- FAQ -------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq details {
  padding: 0 20px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.faq details[open] {
  border-color: rgba(161, 240, 246, 0.32);
  background: var(--card-bg-open);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 18px 0;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--gold);
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
}

.faq details[open] summary::after { content: "–"; }
.faq .a {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: .95rem;
}

.faq .a a { color: var(--primary-soft); border-color: rgba(161, 240, 246, .3); }

/* -------- CTA banner -------- */
.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: 42px;
  border: 1px solid rgba(232, 175, 52, 0.26);
  border-radius: var(--radius);
  background: var(--cta-bg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.cta-banner h2 {
  max-width: 720px;
  color: var(--ink);
}

.cta-banner p {
  max-width: 620px;
  color: var(--muted);
  margin-bottom: 0;
}

.cta-banner .ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* -------- Footer -------- */
.site-footer {
  margin-top: 24px;
  padding: 36px 0 22px;
  border-top: 1px solid var(--hairline);
  background: var(--footer-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(150px, .8fr));
  gap: 22px;
  margin-bottom: 24px;
}

.footer-col h4 { margin-bottom: 10px; }
.footer-col a {
  display: block;
  padding: 3px 0;
  color: var(--muted);
  font-size: .88rem;
}

.footer-col a:hover { color: var(--primary-soft); }
.footer-brand p {
  max-width: 300px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: .8rem;
}

.footer-bottom .mono { color: var(--muted); }

/* -------- Legal document pages -------- */
.doc-section { padding-top: 48px; }

.doc {
  max-width: 900px;
  margin: 0 auto;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--doc-bg);
  box-shadow: var(--shadow-md);
}

.doc h1 { font-size: 2.65rem; line-height: 1.08; margin-bottom: .3em; }
.doc .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .88rem;
}

.doc h2 { margin-top: 2em; margin-bottom: .45em; font-size: 1.55rem; }
.doc h3 {
  margin-top: 1.5em;
  margin-bottom: .45em;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
}

.doc p,
.doc li {
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.72;
}

.doc ul,
.doc ol {
  margin: 0 0 1em;
  padding-left: 22px;
}

.doc li { margin-bottom: .45em; }
.doc a { color: var(--primary-soft); border-color: rgba(161, 240, 246, .3); }
.doc a:hover { color: var(--link-hover); border-color: var(--link-hover); }

.doc .requisites {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--section-glass);
  color: var(--ink-soft);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .88rem;
  line-height: 1.8;
}

.doc .requisites strong { color: var(--ink); font-family: inherit; }

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.doc-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--section-glass);
  color: var(--muted);
  font-size: .84rem;
}

.doc-nav a:hover { color: var(--ink); border-color: var(--border-strong); }
.doc-nav a.active { background: var(--primary); color: #061315; border-color: var(--primary); }

.doc .callout {
  margin: 18px 0;
  padding: 15px 17px;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(232, 175, 52, 0.09);
  color: var(--ink-soft);
  font-size: .94rem;
}

.doc .callout strong { color: var(--callout-strong); }
.doc-subtitle { margin-top: -8px; }
.contact-email-line { font-size: 1.12rem; }

/* -------- 404 -------- */
.error-section { min-height: 72vh; padding: 14vh 0; display: grid; place-items: center; }
.error-title { margin-top: 18px; }
.error-text { max-width: 540px; margin: 14px auto 28px; }

/* -------- Reveal on scroll -------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.in:nth-child(2) { transition-delay: .05s; }
.reveal.in:nth-child(3) { transition-delay: .1s; }
.reveal.in:nth-child(4) { transition-delay: .15s; }

/* -------- Animation -------- */
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(115, 182, 109, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(115, 182, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(115, 182, 109, 0); }
}

@keyframes phoneFloat {
  0% {
    transform: translate3d(-10px, 10px, 0) rotateZ(-1.6deg) scale(1);
  }
  25% {
    transform: translate3d(10px, -6px, 0) rotateZ(-0.3deg) scale(1.01);
  }
  50% {
    transform: translate3d(6px, -20px, 0) rotateZ(1.1deg) scale(1.015);
  }
  75% {
    transform: translate3d(-12px, -2px, 0) rotateZ(0.2deg) scale(1.008);
  }
  100% {
    transform: translate3d(-10px, 10px, 0) rotateZ(-1.6deg) scale(1);
  }
}

@keyframes scanLine {
  0% { transform: translateY(0); opacity: .22; }
  20% { opacity: .95; }
  50% { transform: translateY(136px); opacity: 1; }
  80% { opacity: .95; }
  100% { transform: translateY(272px); opacity: .22; }
}

@keyframes scanLineMini {
  0%, 100% { transform: translateY(0); opacity: .35; }
  50% { transform: translateY(132px); opacity: 1; }
}

@keyframes showcaseGlow {
  0%, 100% {
    filter: blur(22px);
    opacity: .82;
    transform: rotate(-7deg) scale(1);
  }
  50% {
    filter: blur(28px);
    opacity: 1;
    transform: rotate(-3deg) scale(1.04);
  }
}

@keyframes wave {
  0%, 100% { transform: scaleY(.45); opacity: .65; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

/* -------- Responsive -------- */
@media (max-width: 1060px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .nav {
    position: relative;
  }
  .nav-open .nav-links {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--menu-bg);
    box-shadow: var(--shadow-md);
  }
  .nav-open .nav-links a {
    justify-content: center;
    min-height: 44px;
  }
  .nav-links .nav-indicator { display: none; }
  .nav-links a.active {
    background: var(--nav-active-bg);
    color: var(--nav-active-ink);
  }
}

@media (max-width: 980px) {
  h1 { font-size: 3.45rem; }
  h2 { font-size: 2.25rem; }
  .hero-grid,
  .app-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid { gap: 42px; }
  .app-showcase { min-height: 600px; }
  .safety-grid,
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .screen-stack {
    max-width: 760px;
  }
  .cta-banner {
    grid-template-columns: 1fr;
  }
  .cta-banner .ctas { justify-content: flex-start; }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .hero { padding: 54px 0 70px; }
  .keep-phrase { white-space: normal; }
  .hero-meta,
  .safety-grid,
  .benefits,
  .pricing,
  .screen-stack {
    grid-template-columns: 1fr;
  }
  .screen-stack {
    max-width: 360px;
    margin: 0 auto;
  }
  .mini-screen:nth-child(1),
  .mini-screen:nth-child(2) {
    transform: none;
  }
  .plan { min-height: auto; }
  .app-showcase {
    min-height: 560px;
    transform: scale(.9);
    transform-origin: top center;
    margin-bottom: -56px;
  }
  .nav-cta { display: none; }
  .doc { padding: 28px 20px; }
  .doc h1 { font-size: 2.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: 2.55rem; }
  h2 { font-size: 1.92rem; }
  .hero-sub { font-size: 1rem; }
  .hero-ctas,
  .cta-banner .ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .step,
  .safety-card,
  .benefit,
  .plan {
    min-height: auto;
    padding: 20px;
  }
  .app-showcase {
    transform: scale(.78);
    min-height: 500px;
    margin-bottom: -102px;
  }
  .phone { width: 310px; height: 620px; }
  .cta-banner { padding: 26px 20px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* -------- Print -------- */
@media print {
  .site-header,
  .site-footer,
  .doc-nav,
  .nav-cta,
  .burger,
  .app-showcase,
  .screen-stack {
    display: none !important;
  }
  body { background: #fff; color: #111; }
  .doc {
    border: none;
    padding: 0;
    box-shadow: none;
    color: #111;
    background: #fff;
  }
  .doc p,
  .doc li { color: #111; }
}
