/* Sardra landing page. Palette follows the Sardra product UI. */
:root {
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --surface-2: #EEF2F7;
  --ink: #0F1A2B;
  --muted: #576377;
  --line: #DFE4EC;
  --accent: #1E4A8A;
  --accent-ink: #FFFFFF;
  --accent-soft: #E2EAF5;
  --purple: #6A48A6;
  --purple-soft: #EEE8F7;
  --magenta: #9E3A6E;
  --magenta-soft: #F7E6EF;
  --ok: #2C7A47;
  --ok-soft: #E1F2E6;
  --shadow-sm: 0 1px 2px rgba(15, 26, 43, .05);
  --shadow-lg: 0 1px 2px rgba(15, 26, 43, .06), 0 24px 48px -16px rgba(15, 26, 43, .18);
  --radius: 14px;
  --f-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --f-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C121D;
    --surface: #121A28;
    --surface-2: #101826;
    --ink: #E4E9F2;
    --muted: #95A1B5;
    --line: #232E44;
    --accent: #86AAE8;
    --accent-ink: #0B1426;
    --accent-soft: #1A2A48;
    --purple: #B69CE8;
    --purple-soft: #2A2147;
    --magenta: #E28DBA;
    --magenta-soft: #3A1A2D;
    --ok: #62C083;
    --ok-soft: #13301E;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
svg { display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.75rem); letter-spacing: -0.035em; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; }
h3 { font-size: 1.08rem; }
p { margin: 0; }
.mono { font-family: var(--f-mono); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 780px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; }
.nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .15s; }
.nav ul a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); font-weight: 600; font-size: .95rem; text-decoration: none; transition: filter .15s, transform .15s, box-shadow .15s; box-shadow: var(--shadow-sm); }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { filter: none; border-color: var(--muted); }
.btn-light { background: #FFFFFF; color: #0F1A2B; border-color: #FFFFFF; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 88px 0 96px;
  background:
    radial-gradient(700px 360px at 80% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(520px 300px at 100% 45%, color-mix(in srgb, var(--magenta) 9%, transparent), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .85rem; font-weight: 500; color: var(--muted); box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.hero h1 { max-width: 14ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust-row { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: .92rem; color: var(--muted); }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row svg, .icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-row svg { color: var(--accent); }

/* Product preview */
.preview { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.preview-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.preview-body { padding: 24px; }
.wi-head { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); }
.state { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: .78rem; }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wi-title { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; margin: 10px 0 18px; letter-spacing: -0.01em; }
.trace { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trace li { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; color: var(--ink); }
.chip { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; padding: 2px 0; border-radius: 6px; text-align: center; }
.c-rule { background: var(--magenta-soft); color: var(--magenta); }
.c-code { background: var(--accent-soft); color: var(--accent); }
.c-test { background: var(--purple-soft); color: var(--purple); }
.c-review { background: var(--ok-soft); color: var(--ok); }
.ok { color: var(--ok); font-weight: 700; }
.wi-foot { margin-top: 16px; font-size: .82rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.wi-foot .mono { font-size: .72rem; padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; }
@media (max-width: 520px) { .trace li { grid-template-columns: 1fr auto; } .trace .chip { grid-column: 1 / -1; justify-self: start; padding: 2px 8px; } }

/* Sections */
.section { padding: 96px 0; }
.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.step-n { display: block; font-family: var(--f-mono); font-size: .85rem; color: var(--accent); margin-bottom: 18px; }
.steps p, .features p, .sec-list p, .offer p { color: var(--muted); margin-top: 8px; }

/* Features */
.features { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }

/* Security */
.security { display: grid; gap: 40px; }
@media (min-width: 900px) { .security { grid-template-columns: .8fr 1.2fr; align-items: start; } .security .section-head { margin-bottom: 0; } }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.sec-list li { padding: 22px 24px 22px 56px; position: relative; }
.sec-list li + li { border-top: 1px solid var(--line); }
.sec-list li::before { content: ""; position: absolute; left: 24px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.9' fill='none' stroke='%232C7A47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Offers */
.offers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 900px; margin: 0 auto; }
.offer { display: flex; flex-direction: column; gap: 4px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.offer h3 { font-size: 1.3rem; }
.offer p { flex: 1; margin-bottom: 24px; }
.offer .btn { align-self: flex-start; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; position: relative; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; 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 .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { color: var(--muted); padding: 0 40px 22px 0; }

/* Final CTA */
.final { padding: 0 0 96px; }
.final-inner { text-align: center; }
.final-inner { padding-top: 72px; padding-bottom: 72px; border-radius: 24px; color: #F4F6F9; background: radial-gradient(600px 300px at 85% 0%, rgba(134, 170, 232, .35), transparent 70%), linear-gradient(135deg, #1E4A8A, #142F5A); }
@media (min-width: 720px) { .final .wrap { max-width: 1096px; } }
.final h2 { color: #FFFFFF; max-width: 20ch; margin: 0 auto; }
.final p { color: #C9D5E8; margin-top: 12px; font-size: 1.1rem; }
.final .cta { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .92rem; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot .brand { font-size: 1.1rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
