/* Colors are tokens. Dark mode follows the system unless the visitor picked a
   theme with the toggle (theme.js sets data-theme on <html>). The dark block is
   repeated for both cases. */
:root {
  color-scheme: light;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-ink: #1D4ED8;
  --accent-soft: #E8F0FE;
  --ink: #0E1726;
  --ink-2: #3D4756;
  --muted: #475263;
  --faint: #556070;
  --line: #E3E8EF;
  --line-strong: #D5DCE6;
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --surface-2: #FBFCFE;
  --deep: #0E1726;
  --deep-card: #131E31;
  --deep-line: #26334A;
  --deep-muted: #B8C2D1;
  --deep-accent: #8DB8FF;
  --cta-sub: #E6EEFF;
  --shadow: 0 24px 60px rgba(14, 23, 38, 0.14);

  /* The Mac app recreation, in macOS's own colors. */
  --mac-bg: #FFFFFF;
  --mac-sidebar: #F2F2F4;
  --mac-edge: #D4D4D8;
  --mac-card: #FFFFFF;
  --mac-card-line: #E2E2E6;
  --mac-row-line: #ECECEF;
  --mac-text: #1D1D1F;
  --mac-sub: #6E6E73;
  --mac-blue: #0A84FF;
  --mac-select: #0A7AFF;
  --mac-green: #1F9D45;
  --mac-orange: #E8780C;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --accent: #3B82F6;
    --accent-hover: #2563EB;
    --accent-ink: #8DB8FF;
    --accent-soft: #172554;
    --ink: #E8EDF4;
    --ink-2: #C4CCD8;
    --muted: #A3AEBE;
    --faint: #94A0B2;
    --line: #1F2A3C;
    --line-strong: #33415A;
    --bg: #0B1220;
    --surface: #111A2B;
    --surface-2: #142035;
    --deep: #070C16;
    --deep-card: #0F1829;
    --deep-line: #22304A;
    --deep-muted: #A3AEBE;
    --deep-accent: #8DB8FF;
    --cta-sub: #DCE7FF;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    --mac-bg: #1E1E1E;
    --mac-sidebar: #232323;
    --mac-edge: #3A3A3C;
    --mac-card: #1E1E1E;
    --mac-card-line: #3A3A3C;
    --mac-row-line: #333336;
    --mac-text: #F2F2F2;
    --mac-sub: #A1A1A6;
    --mac-green: #32C35B;
    --mac-orange: #FF9F0A;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-ink: #8DB8FF;
  --accent-soft: #172554;
  --ink: #E8EDF4;
  --ink-2: #C4CCD8;
  --muted: #A3AEBE;
  --faint: #94A0B2;
  --line: #1F2A3C;
  --line-strong: #33415A;
  --bg: #0B1220;
  --surface: #111A2B;
  --surface-2: #142035;
  --deep: #070C16;
  --deep-card: #0F1829;
  --deep-line: #22304A;
  --deep-muted: #A3AEBE;
  --deep-accent: #8DB8FF;
  --cta-sub: #DCE7FF;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --mac-bg: #1E1E1E;
  --mac-sidebar: #232323;
  --mac-edge: #3A3A3C;
  --mac-card: #1E1E1E;
  --mac-card-line: #3A3A3C;
  --mac-row-line: #333336;
  --mac-text: #F2F2F2;
  --mac-sub: #A1A1A6;
  --mac-green: #32C35B;
  --mac-orange: #FF9F0A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 10px; }
.btn-lg { font-size: 16px; padding: 15px 22px; border-radius: 12px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); padding: 14px 22px; }
.btn-outline:hover { color: var(--ink); border-color: var(--faint); }
.btn-white { background: #fff; color: #1D4ED8; }
.btn-white:hover { color: #1E3A8A; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.brand img { margin: -4px; }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1 1 auto; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink-2); text-decoration: none; padding: 10px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

.theme-toggle {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--faint); }
.theme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Hero */
.hero { padding-top: 80px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 56px; }
.hero-copy { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .actions { padding-top: 8px; }
.pill { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 600px; }
.fine { font-size: 14px; color: var(--faint); }
.hero-visual { display: flex; flex-direction: column; gap: 12px; }
.caption { font-size: 12px; color: var(--faint); }
.dot { width: 12px; height: 12px; border-radius: 6px; }
.dot-red { background: #FF5F57; }
.dot-amber { background: #FEBC2E; }
.dot-green { background: #28C840; }

/* The Mac app recreation */
.mac {
  margin: 0; display: flex; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--mac-edge); background: var(--mac-bg); color: var(--mac-text);
  box-shadow: var(--shadow); font-family: -apple-system, BlinkMacSystemFont, Inter, sans-serif;
}
.mac-sidebar { flex: 0 0 210px; background: var(--mac-sidebar); border-right: 1px solid var(--mac-edge); padding: 14px 10px 20px; display: flex; flex-direction: column; gap: 22px; }
.mac-lights { display: flex; gap: 8px; padding: 0 6px; }
.mac-navlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mac-nav { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; font-size: 14px; }
.mac-nav svg { width: 18px; height: 18px; color: var(--mac-blue); flex: none; }
.mac-nav.is-sub { padding-left: 24px; }
.mac-nav.is-active { background: var(--mac-select); color: #fff; }
.mac-nav.is-active svg { color: #fff; }
.mac-org { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--mac-sub); }
.mac-main { flex: 1 1 auto; min-width: 0; padding: 36px 32px 28px; display: flex; flex-direction: column; gap: 16px; }
.mac-title { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.mac-sub { font-size: 14px; color: var(--mac-sub); margin-top: -6px; }
.mac-card { background: var(--mac-card); border: 1px solid var(--mac-card-line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mac-card h3 { font-size: 14px; font-weight: 700; letter-spacing: 0; }
.mac-stats { flex-direction: row; flex-wrap: wrap; gap: 12px 36px; padding: 16px; }
.mac-stats div { display: flex; flex-direction: column; gap: 2px; }
.mac-stats strong { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.mac-stats span { font-size: 12px; color: var(--mac-sub); }
.mac-rows { list-style: none; margin: 0; padding: 0; }
.mac-rows li { display: flex; align-items: center; gap: 8px 14px; padding: 7px 0; border-bottom: 1px solid var(--mac-row-line); font-size: 13px; }
.mac-rows li:last-child { border-bottom: 0; }
.mac-name { flex: 1 1 auto; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mac-kind { font-weight: 400; color: var(--mac-sub); }
.mac-src { color: var(--mac-sub); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.mac-src.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.mac-verdict { flex: 0 0 116px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.mac-verdict svg, .mac-icon svg { width: 15px; height: 15px; flex: none; }
.mac-verdict.ok { color: var(--mac-green); }
.mac-verdict.warn, .mac-icon.warn { color: var(--mac-orange); }
.mac-icon { display: inline-flex; }
.mac-more { font-size: 12px; color: var(--mac-sub); padding-top: 2px; }
.mac-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* Sections */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
h2 { font-size: 36px; letter-spacing: -0.025em; line-height: 1.15; }
.section-head p, .split-copy > p:last-child { font-size: 17px; line-height: 1.6; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
h3 { font-size: 18px; letter-spacing: -0.01em; }
.card p, .trust-grid p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.split { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.ai-list { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ai-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.ai-dot { width: 10px; height: 10px; border-radius: 5px; flex: none; }
.ai-blue { background: #3B82F6; }
.ai-purple { background: #8B5CF6; }
.ai-teal { background: #14B8A6; }
.ai-orange { background: #F59E0B; }
.ai-name { flex: 1 1 auto; font-size: 15px; font-weight: 600; }
.ai-meta { font-size: 13px; color: var(--faint); }

.dark { background: var(--deep); color: #fff; }
.dark .section-head p, .steps p { color: var(--deep-muted); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { border: 1px solid var(--deep-line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--deep-card); }
.steps p { font-size: 15px; line-height: 1.6; }
.step-n { font-size: 14px; font-weight: 700; color: var(--deep-accent); }

.trust { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.trust h2 { flex: 1 1 320px; font-size: 32px; line-height: 1.2; }
.trust-grid { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.trust-grid > div { display: flex; flex-direction: column; gap: 8px; }
.trust-grid h3 { font-size: 16px; }

.cta-wrap { padding-bottom: 96px; }
.cta { background: #2563EB; color: #fff; border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-copy { display: flex; flex-direction: column; gap: 8px; flex: 1 1 360px; }
.cta h2 { font-size: 32px; letter-spacing: -0.02em; }
.cta p { font-size: 17px; color: var(--cta-sub); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; font-size: 14px; color: var(--faint); }
.footer a { color: var(--faint); }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.grow { flex: 1 1 auto; }

.not-found { min-height: 70vh; justify-content: center; }

@media (max-width: 760px) {
  .mac-sidebar { display: none; }
  .mac-main { padding: 20px 16px; }
  .mac-src { display: none; }
  .mac-verdict { flex-basis: auto; }
}
@media (max-width: 640px) {
  .hero { padding-top: 48px; gap: 40px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .section, .split, .trust { padding-top: 56px; padding-bottom: 56px; }
  .cta { padding: 32px 24px; }
  .nav-links { order: 3; flex-basis: 100%; }
}
