/* StatusOK landing page */
:root {
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --card: #FFFFFF;
  --ink: #0B1220;
  --muted: #4B5565;
  --border: #E4E7EC;
  --accent: #4A3AD6;
  --accent-hover: #3B2CC0;
  --accent-soft: #EEECFD;
  --accent-ink: #FFFFFF;
  --ok: #15803D;
  --ok-bar: #16A34A;
  --degraded: #CA8A04;
  --partial: #EA580C;
  --major: #DC2626;
  --maint: #2563EB;
  --ok-soft: #ECFDF3;
  --maint-soft: #EFF4FF;
  --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 12px 32px -12px rgba(11, 18, 32, .18);
  --radius: 14px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1020;
    --surface: #111729;
    --card: #141B2F;
    --ink: #E8EAF2;
    --muted: #A3ABBD;
    --border: #252D42;
    --accent: #9488FF;
    --accent-hover: #ADA4FF;
    --accent-soft: #1E1A46;
    --accent-ink: #FFFFFF;
    --ok: #4ADE80;
    --ok-bar: #22C55E;
    --degraded: #EAB308;
    --partial: #F97316;
    --major: #EF4444;
    --maint: #60A5FA;
    --ok-soft: #0F2A1C;
    --maint-soft: #12203F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--bg); }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px; border-radius: 10px;
  font: 600 15px/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 16px; }
.btn-primary { background: #4A3AD6; color: #FFFFFF; }
.btn-primary:hover { background: #3B2CC0; color: #FFFFFF; }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--ink); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-light { background: #FFFFFF; color: #2A1FA0; }
.btn-light:hover { background: #EEECFD; color: #2A1FA0; }
.final-cta .btn-light:focus-visible { outline-color: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: #5B4BEA; }
  .btn-primary:hover { background: #6E60F0; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; flex-shrink: 0; border-radius: 8px; }
.brand img { height: 28px; width: auto; }
.nav { display: none; gap: 4px; margin-left: 16px; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.lang {
  position: relative; display: flex; align-items: center;
  color: var(--muted);
}
.lang-icon { position: absolute; left: 10px; pointer-events: none; }
.lang select {
  appearance: none; -webkit-appearance: none;
  height: 40px; padding: 0 30px 0 32px; max-width: 168px;
  font: 500 14px var(--font-body); color: var(--ink);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238A93A6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.lang select:hover { border-color: var(--accent); }
.lang select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }
@media (min-width: 900px) { .nav { display: flex; } }

/* Hero */
.hero {
  padding: 48px 0 64px;
  background:
    radial-gradient(60% 50% at 85% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(40% 40% at 0% 20%, color-mix(in srgb, var(--maint) 8%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 1040px) {
  .hero { padding: 88px 0 104px; }
  .hero-grid { grid-template-columns: 1fr 1.02fr; gap: 56px; }
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }

.hero h1 { margin-top: 20px; font-size: clamp(2.1rem, 6.4vw, 3.6rem); }
.accent { color: var(--accent); }
.lead { margin-top: 20px; font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 479px) {
  .cta-row .btn { width: 100%; white-space: normal; text-align: center; }
}

/* Status page mock */
.mock {
  position: relative; margin: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow);
}
.mock-tag {
  position: absolute; top: -12px; right: 16px; z-index: 1;
  padding: 3px 10px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 12px; font-weight: 600;
}
.mock-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface); border-radius: 16px 16px 0 0;
}
.mock-dots { display: flex; gap: 6px; flex-shrink: 0; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-url {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 12px var(--font-mono); color: var(--muted);
  background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px;
}
.mock-body { padding: 18px; }
@media (min-width: 560px) { .mock-body { padding: 24px; } }
.mock-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mock-company { display: flex; align-items: center; gap: 10px; font: 700 16px var(--font-head); min-width: 0; }
.mock-logo { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--ink), var(--muted)); flex-shrink: 0; }
.mock-sub {
  font-size: 13px; font-weight: 600; color: var(--accent-ink); background: #4A3AD6;
  padding: 5px 12px; border-radius: 8px; flex-shrink: 0;
}
@media (prefers-color-scheme: dark) { .mock-sub { background: #5B4BEA; } }
.mock-banner {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 14px 16px; border-radius: 10px;
  background: var(--ok-soft); color: var(--ok);
  font-weight: 600; font-size: 15px;
  border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent);
}
.mock-banner svg { flex-shrink: 0; }
.mock-banner span { color: var(--ink); }
.mock-maint {
  display: flex; gap: 10px; align-items: baseline; margin-top: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--maint-soft); font-size: 13.5px; line-height: 1.45;
  border: 1px solid color-mix(in srgb, var(--maint) 22%, transparent);
}
.mock-maint strong { color: var(--ink); }
.mock-maint span:not(.dot) { color: var(--muted); }
.mock-list { list-style: none; margin: 18px 0 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; }
.comp { padding: 12px 14px; }
.comp + .comp { border-top: 1px solid var(--border); }
.comp-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.comp-status { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 500; font-size: 13px; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-bar); flex-shrink: 0; }
.dot-maint { background: var(--maint); transform: translateY(-1px); }

.bars { display: flex; gap: 2px; height: 26px; margin-top: 8px; }
.bars span { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--ok-bar); opacity: .9; }
.bars span.d { background: var(--degraded); }
.bars span.p { background: var(--partial); }
.bars span.x { background: var(--major); }
.bars span.m { background: var(--maint); }
.bars-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
.l30 { display: none; }
@media (max-width: 639px) {
  .bars span:nth-child(-n+60) { display: none; }
  .bars { gap: 3px; }
  .l90 { display: none; }
  .l30 { display: inline; }
}

/* Sections */
section[id] { scroll-margin-top: 72px; }
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
h2 { font-size: clamp(1.75rem, 4.4vw, 2.5rem); }
.section-lead { margin-top: 16px; font-size: 1.075rem; color: var(--muted); }
.chip {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--maint); background: var(--maint-soft);
  border: 1px solid color-mix(in srgb, var(--maint) 25%, transparent);
}

/* Cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow); }
.card-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
}
.card h3 { margin-top: 18px; font-size: 1.25rem; }
.card p { margin-top: 8px; color: var(--muted); }

/* Automation split */
.split { display: grid; gap: 40px; align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 980px) { .split { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%234A3AD6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
@media (prefers-color-scheme: dark) {
  .checks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%239488FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

.code-card {
  background: #0E1024; color: #D7DAEA; border-radius: var(--radius);
  border: 1px solid #23284A; box-shadow: var(--shadow); overflow: hidden;
}
.code-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid #23284A;
  font-size: 13px; font-weight: 500; color: #A9AECB;
}
.code-lang { font-family: var(--font-mono); font-size: 12px; color: #8F82FF; }
.code-card pre {
  margin: 0; padding: 18px; overflow-x: auto;
  font: 13px/1.7 var(--font-mono); tab-size: 2;
}
.code-card pre:focus-visible { outline: 2px solid #8F82FF; outline-offset: -2px; border-radius: 0; }
.code-card code { font-family: inherit; }
.t-cmd { color: #8F82FF; font-weight: 500; }
.t-url { color: #7DD3FC; }
.t-str { color: #86EFAC; }
.code-note {
  padding: 12px 18px; border-top: 1px solid #23284A;
  font-size: 13px; color: #A9AECB;
}

/* Maintenance timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 720px) { .timeline { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1040px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.step {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font: 700 14px var(--font-head); color: #FFFFFF; background: #4A3AD6;
}
.step-maint { background: #2563EB; }
.step-ok { background: #15803D; }
.timeline h3 { margin-top: 14px; font-size: 1.125rem; }
.timeline p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.extra { margin-top: 28px; color: var(--muted); }

/* Suite */
.suite {
  display: grid; gap: 24px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px;
}
.suite > * { min-width: 0; }
@media (min-width: 900px) { .suite { grid-template-columns: auto 1fr auto; gap: 36px; padding: 40px; } }
.suite-marks { display: flex; align-items: center; gap: 10px; }
.suite-marks img { width: 48px; height: 48px; }
.suite-plus { color: var(--muted); font-weight: 600; }
.suite-mailok {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
}
.suite h2 { font-size: clamp(1.4rem, 3.2vw, 1.85rem); }
.suite-copy p:not(.eyebrow) { margin-top: 10px; color: var(--muted); }
.suite .eyebrow { margin-bottom: 8px; }
.suite .btn { justify-self: start; }

/* Final CTA */
.final-cta {
  padding: 80px 0; text-align: center; color: #FFFFFF;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(91, 75, 234, .55), transparent 70%),
    #0E1024;
}
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-cta h2 { margin-top: 20px; max-width: 18em; }
.final-cta p:not(.badge) { margin-top: 14px; max-width: 34em; color: #C9CBE3; font-size: 1.075rem; }
.final-cta .btn { margin-top: 32px; }
.badge-dark { background: rgba(143, 130, 255, .14); color: #BDB5FF; border-color: rgba(143, 130, 255, .35); }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.footer-logo { width: 28px; height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
