/* Asset Desk product page: layout and sections. Product mock-ups live in mockups.css. */

:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --text: #121a2b;
  --muted: #56617a;
  --border: #dde2ee;
  --accent: #3157d5;
  --accent-strong: #2443b0;
  --accent-soft: rgba(49, 87, 213, 0.1);
  --green: #0e9f6e;
  --amber: #c27803;
  --red: #d63b3b;
  --shadow: 0 20px 50px -20px rgba(16, 24, 48, 0.25), 0 2px 6px rgba(16, 24, 48, 0.06);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1020;
    --bg-alt: #0f1630;
    --surface: #131b33;
    --surface-2: #18213d;
    --text: #e8ecf7;
    --muted: #9aa5c2;
    --border: #253052;
    --accent: #6d8cff;
    --accent-strong: #8aa3ff;
    --accent-soft: rgba(109, 140, 255, 0.14);
    --shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-alt: #0f1630;
  --surface: #131b33;
  --surface-2: #18213d;
  --text: #e8ecf7;
  --muted: #9aa5c2;
  --border: #253052;
  --accent: #6d8cff;
  --accent-strong: #8aa3ff;
  --accent-soft: rgba(109, 140, 255, 0.14);
  --shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.3);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 820px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #fff; }
.skip-link:focus { top: 12px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(135deg, #4a6cf0, #3157d5 55%, #2a46b8);
  color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(49, 87, 213, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(49, 87, 213, 0.9); }
.button-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.button-large { min-height: 56px; padding: 0 30px; font-size: 18px; }
.button-ghost { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
.button-ghost:hover { border-color: var(--accent); box-shadow: none; }

/* Navigation */
.site-nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-height);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--border); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.nav-links { display: none; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* The icon shows the theme in use. */
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}
.lang-switch { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
@media (min-width: 960px) { .nav-links { display: flex; } }
@media (max-width: 480px) { .nav-actions .button-small { display: none; } }

/* Shared text */
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.6; }
.fine { color: var(--muted); font-size: 14px; }
h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 19px; font-weight: 700; }
.gradient-text { background: linear-gradient(100deg, #7f9cff 0%, #b18cff 45%, #4fd1a5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Reveal on scroll */
/* Only hidden while scripts run, so the page still reads without them. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero: always dark, in both themes */
.hero, .final-cta {
  --text: #eef2ff; --muted: #a9b4d6; --border: rgba(255, 255, 255, 0.14);
  position: relative; overflow: hidden; color: var(--text);
  background: #070b18;
}
.hero { padding: 64px 0 88px; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 140%; pointer-events: none;
  background:
    radial-gradient(40% 40% at 20% 20%, rgba(74, 108, 240, 0.55), transparent 70%),
    radial-gradient(35% 35% at 85% 15%, rgba(177, 140, 255, 0.38), transparent 70%),
    radial-gradient(40% 40% at 70% 85%, rgba(79, 209, 165, 0.25), transparent 70%);
  filter: blur(10px); animation: glow 18s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
@keyframes glow { to { transform: translate3d(4%, 6%, 0) scale(1.08); } }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
.hero .eyebrow { color: #9fb4ff; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero .button-ghost { color: #fff; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: rgba(79, 209, 165, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fd1a5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (min-width: 1024px) {
  .hero { padding: 88px 0 120px; }
  .hero-grid { grid-template-columns: 0.95fr 1.05fr; }
}

/* Numbers */
.stats { border-bottom: 1px solid var(--border); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border-inline: 1px solid var(--border); }
.stat { background: var(--surface); padding: 26px 20px; display: grid; gap: 4px; align-content: start; }
.stat strong { font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.stat span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.stat:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(5, 1fr); } .stat:last-child { grid-column: auto; } }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
@media (min-width: 1024px) { .section { padding: 120px 0; } }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 16px; }
.split { display: grid; gap: 48px; align-items: center; }
.split-copy h2 { margin-bottom: 16px; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1.05fr; gap: 72px; }
  .split.reverse .split-copy { order: 2; }
}
.check-list { display: grid; gap: 12px; margin-top: 26px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233157d5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Story */
.story-grid { display: grid; gap: 32px; }
.story-steps { display: grid; gap: 0; counter-reset: none; }
.story-step { padding: 28px 24px; border-radius: var(--radius); border: 1px solid transparent; opacity: 0.45; transition: opacity 0.4s ease, background 0.4s ease, border-color 0.4s ease; }
.story-step.is-active { opacity: 1; background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.story-step h3 { margin: 8px 0 8px; font-size: 22px; }
.story-step p { color: var(--muted); }
.step-no { font-family: var(--mono); color: var(--accent); font-weight: 700; font-size: 14px; }
.story-stage {
  position: sticky; top: calc(var(--nav-height) + 12px); z-index: 2; order: -1;
  height: 330px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, #1b2a66 0%, #0b1020 60%);
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: var(--shadow);
}
.story-steps .story-step { min-height: 0; margin-bottom: 40vh; }
.story-steps .story-step:last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .story-stage { order: 0; height: 560px; top: calc(var(--nav-height) + 40px); }
  .story-steps { padding-block: 16vh 22vh; }
  .story-steps .story-step { margin-bottom: 36vh; }
}

/* Security cards */
.card-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

/* Hosted steps */
.how-steps { display: grid; gap: 18px; }
.how-steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.how-steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 18px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #4a6cf0, #8b6cf0); }
.how-steps h3 { margin-bottom: 8px; }
.how-steps p { color: var(--muted); font-size: 15.5px; }
@media (min-width: 768px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .how-steps { grid-template-columns: repeat(4, 1fr); } }

/* Plans */
.plan-grid { display: grid; gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.plan h3 { font-size: 24px; }
.plan-size { color: var(--muted); margin-top: 4px; }
.price { font-size: 28px; font-weight: 800; margin: 22px 0 4px; letter-spacing: -0.02em; }
.plan .check-list { margin: 18px 0 28px; flex: 1; font-size: 15.5px; }
.plan .button { width: 100%; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.badge { position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
@media (min-width: 900px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* Final call to action */
.final-cta { padding: 110px 0; text-align: center; }
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { margin-bottom: 16px; }
.final-cta .lead { margin-bottom: 32px; }
.final-cta .fine { margin-top: 22px; }
.final-cta a:not(.button) { color: #a9bcff; }

/* Footer */
/* Text pages: privacy and support */
.doc { padding: 40px 0 72px; }
.doc-back { margin: 0 0 28px; font-size: 15px; }
.doc-back a { color: var(--muted); text-decoration: none; }
.doc-back a:hover { color: var(--text); }
.doc-body { max-width: 68ch; font-size: 17px; line-height: 1.65; }
.doc-body h1 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 10px; }
.doc-body h2 { font-size: clamp(21px, 2.4vw, 25px); font-weight: 700; letter-spacing: -0.015em; margin: 40px 0 12px; }
.doc-body p, .doc-body ul { margin: 0 0 14px; }
.doc-body ul { padding-left: 1.25em; list-style: disc; }
.doc-body li::marker { color: var(--muted); }
.doc-body li + li { margin-top: 8px; }
.doc-body .fine { margin-bottom: 24px; }

.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--border); background: var(--surface); font-size: 15px; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid p + p { margin-top: 6px; }
.footer-title { font-weight: 700; margin-bottom: 6px; }
.site-footer .brand { margin-bottom: 10px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Reduced motion: everything is shown in its final state. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
