:root {
  --ink: #e8f5f2;
  --muted: #91aca6;
  --canvas: #07110f;
  --panel: rgba(14, 31, 28, 0.78);
  --panel-solid: #10231f;
  --line: rgba(160, 220, 204, 0.18);
  --acid: #b7ff5a;
  --aqua: #5af6d1;
  --danger: #ff786d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --font: "Manrope", sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 89% -8%, rgba(90, 246, 209, 0.16), transparent 27rem),
    radial-gradient(circle at -5% 58%, rgba(183, 255, 90, 0.1), transparent 30rem),
    #07110f;
  font-family: var(--font);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 4px;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 77%);
  background-image:
    linear-gradient(rgba(150, 241, 211, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 241, 211, 0.052) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: grid-drift 16s linear infinite;
}

.ambient-scan {
  position: fixed;
  width: 42rem;
  height: 16rem;
  left: -14rem;
  top: 16%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.25;
  filter: blur(18px);
  transform: rotate(-25deg);
  background: linear-gradient(90deg, transparent, var(--aqua), transparent);
  animation: scan 13s ease-in-out infinite;
}

@keyframes grid-drift { to { background-position: 64px 64px; } }
@keyframes scan { 50% { transform: translate(110vw, 25vh) rotate(-25deg); } }

a { color: var(--aqua); }
code { color: var(--acid); background: rgba(183, 255, 90, 0.09); border: 1px solid rgba(183, 255, 90, 0.16); }

.site-header {
  max-width: 1320px;
  padding: 22px 44px;
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--ink); gap: 11px; }
.brand-logo { border-radius: 7px; box-shadow: 0 0 24px rgba(90, 246, 209, 0.27); }
.brand-name { font-size: 1rem; letter-spacing: 0.03em; }
.brand-name span { color: var(--acid); }
.site-nav { gap: 8px; }
.site-nav a { padding: 7px 10px; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.site-nav a:hover { color: var(--acid); }

.view-hero { max-width: 1320px; padding: 46px 44px 92px; }
.hero-grid { min-height: 590px; grid-template-columns: 1.1fr 0.9fr; gap: 70px; padding: 44px 0 78px; }
.hero-copy { animation: reveal 0.8s both; }
.pill {
  padding: 7px 12px; border-radius: 4px; color: var(--aqua); background: rgba(90, 246, 209, 0.07);
  border: 1px solid rgba(90, 246, 209, 0.22); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.pill i, .chip-online i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.hero-copy h1 { max-width: 720px; margin: 25px 0 22px; font-size: clamp(2.7rem, 5.5vw, 5.5rem); line-height: 0.98; letter-spacing: -0.05em; }
.accent { color: var(--acid); background: none; -webkit-text-fill-color: initial; }
.lead { max-width: 580px; color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.btn-primary, .btn-ghost {
  min-height: 48px; border-radius: 5px; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.btn-primary { color: #08110d; background: var(--acid); box-shadow: 5px 5px 0 rgba(90, 246, 209, 0.44); }
.btn-primary:hover { filter: none; transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(90, 246, 209, 0.35); }
.btn-ghost { color: var(--aqua); border-color: rgba(90, 246, 209, 0.4); background: rgba(90, 246, 209, 0.035); }
.btn-ghost:hover { color: var(--ink); border-color: var(--aqua); background: rgba(90, 246, 209, 0.12); }
.trust-row { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; }
.dot { border-radius: 1px; background: var(--acid); box-shadow: 0 0 0 3px rgba(183, 255, 90, 0.12); }

.hero-card {
  position: relative; padding: 20px; border: 1px solid rgba(90, 246, 209, 0.38); border-radius: 4px;
  background: linear-gradient(145deg, rgba(20, 47, 41, 0.88), rgba(6, 17, 14, 0.84));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.08); transform: none; animation: float-card 7s ease-in-out infinite, reveal 0.9s 0.13s both;
}
.hero-card::before { content: "ARCHIVE PREVIEW"; position: absolute; top: -11px; left: 18px; padding: 2px 7px; background: var(--canvas); color: var(--aqua); font: 0.62rem var(--mono); letter-spacing: 0.1em; }
.hero-card-header, .hero-card-footer { color: var(--muted); font-family: var(--mono); font-size: 0.7rem; }
.chip { border-radius: 3px; padding: 5px 8px; border: 1px solid var(--line); background: rgba(255,255,255,0.035); color: var(--muted); }
.chip-online { display: inline-flex; align-items: center; gap: 6px; color: var(--acid); border-color: rgba(183, 255, 90, 0.25); background: rgba(183, 255, 90, 0.08); }
.chip-done { color: var(--aqua); border-color: rgba(90, 246, 209, 0.25); background: rgba(90, 246, 209, 0.08); }
.hero-gallery { gap: 9px; }
.gallery-item { border-radius: 3px; border: 1px solid rgba(255,255,255,0.09); }
.hero-card-footer { border-color: var(--line); }
@keyframes float-card { 50% { transform: translateY(-12px); } }
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.section { padding: 68px 0 28px; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.04em; }
.section h2::before { content: "//"; margin-right: 10px; color: var(--acid); font-family: var(--mono); font-size: 0.8em; }
.step, .feature-card, details { color: var(--ink); border-color: var(--line); border-radius: 4px; background: rgba(14, 31, 28, 0.67); box-shadow: none; }
.step, .feature-card { transition: border-color 0.2s, transform 0.2s, background 0.2s; }
.step:hover, .feature-card:hover { border-color: rgba(90, 246, 209, 0.55); transform: translateY(-4px); background: rgba(18, 43, 37, 0.88); }
.step-num, .feature-icon { border-radius: 3px; color: var(--acid); background: rgba(183, 255, 90, 0.1); }
.step h3, .feature-card h3, details summary { color: var(--ink); }
.step p, .feature-card p, details p { color: var(--muted); }
details { padding: 17px 20px; }

.view-flow { min-height: calc(100vh - 88px); padding: 40px 20px 100px; }
.flow-container { max-width: 980px; }
.stepper { gap: 0; margin-bottom: 34px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: rgba(7,17,15,0.7); }
.stepper-item { flex: 1; justify-content: center; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; font-family: var(--mono); font-size: 0.67rem; letter-spacing: 0.04em; text-transform: uppercase; }
.stepper-item:last-child { border-right: 0; }
.stepper-num { border-radius: 2px; background: rgba(255,255,255,0.06); }
.stepper-item.done { color: var(--aqua); background: rgba(90,246,209,0.055); }
.stepper-item.done .stepper-num, .stepper-item.current .stepper-num { color: #07110f; background: var(--acid); }
.stepper-item.current { color: var(--acid); border-color: var(--line); box-shadow: inset 0 -2px var(--acid); }
.step-panel { border: 1px solid rgba(90,246,209,0.22); border-radius: 4px; background: rgba(12,29,25,0.78); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.target-card h2, .sync-card h2, .done-card h2, .qr-instructions h2 { color: var(--ink); }
.muted, .hint, .qr-instructions ol { color: var(--muted); }
.phone-input { border-color: var(--line); border-radius: 4px; background: rgba(0,0,0,0.18); }
.phone-input:focus-within { border-color: var(--acid); box-shadow: 0 0 0 3px rgba(183,255,90,0.1); }
.phone-input .prefix { border-color: var(--line); color: var(--acid); background: rgba(183,255,90,0.08); }
.phone-input input { color: var(--ink); }
.qr-canvas-wrap { border-radius: 4px; border-color: var(--line); box-shadow: 0 0 0 8px rgba(90,246,209,0.035); }
.qr-overlay { color: var(--muted); border-radius: 4px; }
.counter-num { color: var(--acid); font-family: var(--mono); }
.counter-label { color: var(--muted); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }

.gallery, .done-gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery .media-thumb, .done-gallery .media-thumb { border-color: var(--line); border-radius: 4px; background: rgba(7,17,15,0.7); transition: border-color .2s, transform .2s; }
.gallery .media-thumb:hover, .done-gallery .media-thumb:hover { transform: translateY(-3px); border-color: rgba(90,246,209,0.55); }
.gallery .media-thumb .media-preview { background: #0a1613; }
.gallery .media-thumb .badge, .done-gallery .media-thumb .badge { border-radius: 3px; color: #07110f; background: var(--acid); font-family: var(--mono); }
.media-time, .media-file, .audio-chip span { color: var(--muted); font-family: var(--mono); font-size: .66rem; }
.audio-chip { color: var(--aqua); }
.media-actions { gap: 6px; }
.media-actions .btn-mini { min-height: 37px; padding: 7px; font-size: .65rem; }

.done-icon { border-radius: 4px; color: var(--acid); background: rgba(183,255,90,0.1); }
.done-footer { border-color: var(--line); }
.link-btn { color: var(--aqua); }
.link-btn.danger { color: var(--danger); }

.media-viewer-backdrop { background: rgba(2, 9, 7, 0.86); backdrop-filter: blur(8px); }
.media-viewer-dialog { border-radius: 4px; border-color: rgba(90,246,209,0.37); background: var(--panel-solid); }
.viewer-close { color: var(--ink); border-radius: 3px; border-color: var(--line); background: rgba(8,17,15,0.9); }
.media-viewer-stage { background: #020806; }
.media-viewer-footer { background: var(--panel-solid); }
.media-viewer-caption { color: var(--muted); }
.audio-player { border-radius: 4px; border-color: rgba(90,246,209,0.35); background: rgba(12,29,25,0.94); backdrop-filter: blur(16px); }
.audio-player-head strong { color: var(--aqua); font-family: var(--mono); font-size: 0.72rem; letter-spacing: .03em; }

.site-footer { color: var(--muted); border-top: 1px solid var(--line); font-family: var(--mono); font-size: .68rem; letter-spacing: .03em; }
.toast { border-radius: 4px; border: 1px solid rgba(90,246,209,0.35); background: #11251f; color: var(--ink); font-family: var(--mono); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 40px; }
  .hero-card { width: min(100%, 570px); margin: 0 auto; }
}
@media (max-width: 720px) {
  .site-header, .view-hero { padding-left: 20px; padding-right: 20px; }
  .hero-copy h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .stepper-item { flex: auto; min-width: 50%; border-bottom: 1px solid var(--line); }
  .stepper-item:nth-child(2) { border-right: 0; }
  .stepper-item:nth-child(3), .stepper-item:nth-child(4) { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}