/* ============================================================
   seyfpas.ru — лендинг менеджера паролей «Сейф»
   ============================================================ */

:root {
  --bg: #f6f8fc;
  --bg-soft: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f2f5fb;
  --text: #16203a;
  --muted: #5c6684;
  --line: #e4e9f3;

  --amber: #ff7a1a;
  --amber-2: #ffa53d;
  --blue: #3b82f6;
  --green: #10b981;
  --violet: #8b5cf6;
  --rose: #f43f5e;
  --cyan: #06b6d4;

  --rad: 18px;
  --rad-sm: 12px;
  --shadow: 0 24px 50px -30px rgba(16, 24, 48, .45);
  --shadow-sm: 0 12px 28px -20px rgba(16, 24, 48, .45);
  --container: 1120px;
  --header-h: 68px;

  --grad: linear-gradient(135deg, var(--amber-2), var(--amber));
}

[data-theme="dark"] {
  --bg: #080b14;
  --bg-soft: #0c1120;
  --surface: #0f1626;
  --surface-2: #141d31;
  --text: #e8edf9;
  --muted: #97a3c2;
  --line: #1d2840;
  --shadow: 0 26px 54px -30px rgba(0, 0, 0, .8);
  --shadow-sm: 0 14px 30px -22px rgba(0, 0, 0, .8);
  --grad: linear-gradient(135deg, var(--amber-2), var(--amber));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-name { font-family: "Space Grotesk", "Inter", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--surface-2); padding: 2px 7px; border-radius: 7px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--amber); color: #fff; padding: 10px 16px; border-radius: 0 0 12px 0; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 34px -30px rgba(16,24,48,.6); }
.nav { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-logo { height: 34px; width: auto; flex: none; }
.brand-name { font-size: 1.22rem; font-weight: 700; letter-spacing: -.3px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 13px; border-radius: 10px; font-size: .93rem; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .burger {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px; color: var(--text);
  transition: background .2s, border-color .2s;
}
.theme-toggle:hover, .burger:hover { background: var(--surface-2); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .93rem; padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn .icon { width: 18px; height: 18px; }
.btn-solid { background: var(--grad); color: #fff; box-shadow: 0 14px 28px -14px rgba(255,122,26,.75); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* privacy / doc */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 0 80px; }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 6px; letter-spacing: -.5px; }
.doc .updated { color: var(--muted); font-size: .9rem; margin: 0 0 26px; }
.doc h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.doc p { color: var(--text); line-height: 1.7; margin: 0 0 12px; }
.doc a { color: var(--accent); }
.doc-back { margin-top: 40px; }

/* trust (локальность + облако) */
.trust { background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(255,122,26,.10)); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.trust-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); padding: 26px; box-shadow: var(--shadow-sm); }
.trust-card h2 { margin: 14px 0 10px; font-size: clamp(1.15rem, 2.4vw, 1.35rem); }
.trust-card p { margin: 0; color: var(--text); line-height: 1.7; font-size: .96rem; }
.band-icon { flex: none; width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #60a5fa, #2563eb); }
.band-icon .icon { width: 28px; height: 28px; }
.icon-green { background: linear-gradient(135deg, #34d399, #059669); }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }

/* download legal note */
.dl-legal { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.dl-legal a { color: var(--accent); }

/* cookie notice */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250; max-width: 780px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 50px -24px rgba(0,0,0,.55); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: .9rem; color: var(--muted); }
.cookie a { color: var(--accent); }
.cookie .btn { flex: none; }
@media (max-width: 640px) { .cookie { flex-direction: column; align-items: stretch; text-align: center; } }
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -14px rgba(255,122,26,.85); }
.btn-lg { font-size: 1rem; padding: 14px 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 66px 0 54px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; }
.g1 { width: 460px; height: 460px; background: var(--amber); top: -200px; right: -100px; }
.g2 { width: 420px; height: 420px; background: var(--blue); bottom: -220px; left: -120px; opacity: .3; }
[data-theme="dark"] .glow { opacity: .3; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.06; letter-spacing: -1px; margin: 20px 0 14px; font-weight: 700; }
.hero .lead { font-size: 1.06rem; color: var(--muted); margin: 0; }
.hero .lead b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.hero-note { font-size: .86rem; color: var(--muted); }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 26px; margin: 32px 0 0; padding: 0; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts b { font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; font-weight: 700; line-height: 1; }
.hero-facts span { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* vault mockup */
.hero-visual { perspective: 1200px; }
.vault { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; transform: rotateY(-4deg) rotateX(2deg); }
.vault-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.vault-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.vault-bar span:first-child { background: #ff5f57; } .vault-bar span:nth-child(2) { background: #febc2e; } .vault-bar span:nth-child(3) { background: #28c840; }
.vault-bar em { font-style: normal; font-size: .78rem; color: var(--muted); margin-left: 8px; }
.vault-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: .72rem; }
.vault-grid > div { padding: 7px 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh { background: var(--surface-2); font-weight: 600; color: var(--muted); }
.vc { color: var(--text); }
.vc.mask { color: var(--amber); letter-spacing: 1px; }
.island { background: color-mix(in srgb, var(--blue) 14%, transparent); }
.head-cell { background: color-mix(in srgb, var(--amber) 18%, transparent); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.sec-head { max-width: 680px; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.6px; margin: 0 0 10px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.tight { grid-template-columns: repeat(3, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card { transition: transform .18s, box-shadow .18s; }

.feat { padding: 24px; }
.feat-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.feat-icon .icon { width: 24px; height: 24px; }
.i-amber { background: linear-gradient(135deg, #ffb64d, #ff7a1a); }
.i-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.i-green { background: linear-gradient(135deg, #34d399, #059669); }
.i-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.i-rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.i-cyan { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.i-slate { background: linear-gradient(135deg, #94a3b8, #475569); }
.feat h3 { font-size: 1.06rem; margin: 0 0 8px; letter-spacing: -.2px; }
.feat p { margin: 0; color: var(--muted); font-size: .93rem; }

/* why */
.why { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.why-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.6px; margin: 0 0 12px; }
.why-copy p { color: var(--muted); margin: 0 0 16px; }
.why-copy p b { color: var(--text); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 6px; background: var(--grad); }
.why-mock { position: relative; height: 300px; }
.chip { position: absolute; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .88rem; font-weight: 500; white-space: nowrap; }
.chip-1 { top: 14px; left: 10px; }
.chip-2 { top: 86px; right: 0; border-color: color-mix(in srgb, var(--amber) 50%, var(--line)); }
.chip-3 { top: 158px; left: 30px; }
.chip-4 { top: 232px; right: 22px; }

/* security */
.sec.card { padding: 26px; text-align: center; }
.sec-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.sec-icon .icon { width: 26px; height: 26px; }
.sec h3 { margin: 0 0 8px; font-size: 1.06rem; }
.sec p { margin: 0; color: var(--muted); font-size: .93rem; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.shot figcaption { padding: 12px 16px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(6, 9, 17, .9); display: none; place-items: center; z-index: 300; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }

/* download */
.download { text-align: center; }
.download-inner { display: flex; flex-direction: column; align-items: center; }
.dl-logo { width: 72px; height: 72px; margin-bottom: 16px; }
.download h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.7px; margin: 0 0 10px; }
.download p { color: var(--muted); margin: 0 0 22px; max-width: 520px; }
.dl-note { font-size: .84rem; color: var(--muted); margin-top: 14px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-right: auto; }
.footer-links a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.copyright { color: var(--muted); font-size: .88rem; }

/* to-top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; z-index: 80; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top .icon { width: 20px; height: 20px; transform: rotate(-90deg); }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .vault { transform: none; }
  .why { grid-template-columns: 1fr; }
  .why-mock { height: 240px; }
  .grid, .grid.tight, .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 20px; gap: 2px;
    transform: translateY(-140%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px; }
  .nav-actions .btn { display: none; }
  .burger { display: flex; }
  .grid, .grid.tight, .shots { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .hero { padding-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
