/* Skwirl public landing: static, self-contained, no external requests */

:root {
  --bg: #121212;
  --bg-soft: #181818;
  --card: #1a1a1a;
  --card-hover: #212121;
  --border: #2b2b2b;
  --border-strong: #3a3a3a;
  --text: #ececec;
  --muted: #a0a0a0;
  --faint: #70706f;
  --co: #ff7a45;
  --co-bg: #3a1d10;
  --co-border: #a8481f;
  --dex: #ffb547;
  --teal: #63d5b7;
  --sky: #89c5ec;
  --violet: #b8a6ff;
  --orange: #ffa161;
  --lime: #c5e464;
  --pink: #ff88c7;
  --teal-bg: #162d2a;
  --sky-bg: #17273e;
  --violet-bg: #271f41;
  --orange-bg: #301f0e;
  --lime-bg: #212919;
  --pink-bg: #33192e;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --max: 1120px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #faf7f4;
  --bg-soft: #f3eee9;
  --card: #ffffff;
  --card-hover: #fffdfb;
  --border: #e8dfd7;
  --border-strong: #cfc1b5;
  --text: #2a2522;
  --muted: #6b6159;
  --faint: #958a80;
  --co: #c8501c;
  --co-bg: #ffeadf;
  --co-border: #f0b392;
  --dex: #b26a00;
  --teal: #0f8a72;
  --sky: #1f6fa8;
  --violet: #5b45c9;
  --orange: #c2560f;
  --lime: #5d7a0c;
  --pink: #b8327a;
  --teal-bg: #e2f5f0;
  --sky-bg: #e5f1fa;
  --violet-bg: #eeeafd;
  --orange-bg: #fdeee3;
  --lime-bg: #eef5dc;
  --pink-bg: #fbe8f2;
  --shadow: 0 1px 2px rgba(42, 37, 34, 0.04), 0 10px 28px rgba(42, 37, 34, 0.07);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -0.02em; }
.logo img { width: 30px; height: 30px; }

.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 7px 11px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--card); }
.nav a[aria-current="page"] { color: var(--text); background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--border-strong); background: var(--card); color: var(--text);
}
.btn:hover { background: var(--card-hover); border-color: var(--faint); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--co-bg); border-color: var(--co-border); color: var(--co); }
.btn-primary:hover { background: var(--co-bg); border-color: var(--co); }

@media (max-width: 860px) {
  .site-header .wrap { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 8px; gap: 10px; }
  .site-header .btn { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: -11px; }
}

/* Hero */

.hero { padding: 88px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 520px; pointer-events: none;
  background:
    radial-gradient(420px 220px at 30% 50%, color-mix(in srgb, var(--co) 16%, transparent), transparent 70%),
    radial-gradient(420px 220px at 70% 40%, color-mix(in srgb, var(--dex) 12%, transparent), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero-mascot { width: 220px; height: 220px; opacity: 0.95; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-mascot { display: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--co); box-shadow: 0 0 0 3px color-mix(in srgb, var(--co) 22%, transparent); }

h1 { margin: 20px 0 16px; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; max-width: 880px; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--co), var(--dex)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 720px; margin: 0; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; color: var(--muted); font-size: 14px; }
.facts b { color: var(--text); font-size: 22px; font-weight: 800; margin-right: 6px; letter-spacing: -0.02em; }

/* Sections */

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border); }
.section-head { margin-bottom: 28px; max-width: 720px; }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); font-weight: 800; }
h2 { margin: 6px 0 8px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
.section-head p { margin: 0; color: var(--muted); }

/* Theme accents */

.t-teal   { --accent: var(--teal);   --accent-bg: var(--teal-bg); }
.t-sky    { --accent: var(--sky);    --accent-bg: var(--sky-bg); }
.t-violet { --accent: var(--violet); --accent-bg: var(--violet-bg); }
.t-orange { --accent: var(--orange); --accent-bg: var(--orange-bg); }
.t-lime   { --accent: var(--lime);   --accent-bg: var(--lime-bg); }
.t-pink   { --accent: var(--pink);   --accent-bg: var(--pink-bg); }

/* Journey */

.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.step {
  position: relative; padding: 18px 16px 16px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px;
}
.step::after { content: ""; position: absolute; top: 34px; right: -12px; width: 12px; height: 1px; background: var(--border-strong); }
.step:last-child::after { display: none; }
.step .num { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: 0.08em; }
.step strong { font-size: 18px; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.step .chips { margin-top: auto; padding-top: 6px; }
@media (max-width: 960px) { .journey { grid-template-columns: 1fr 1fr; } .step::after { display: none; } }
@media (max-width: 540px) { .journey { grid-template-columns: 1fr; } }

/* Chips */

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 700; color: var(--accent, var(--muted)); background: var(--accent-bg, var(--bg-soft)); line-height: 1.6; }

/* Cards */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.card-top { display: flex; align-items: center; gap: 12px; }
.icon { flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--accent); background: var(--accent-bg); }
.icon svg { width: 20px; height: 20px; }
.card .idx { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--faint); }
.card h3 { margin: 4px 0 0; font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.card .relies { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); }
.label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 6px; }

/* Honest security split */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.panel { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 14px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.panel h3 .icon { width: 32px; height: 32px; }
.panel h3 .icon svg { width: 17px; height: 17px; }
.panel.limits { background: var(--accent-bg); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.features li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.features li::before {
  content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 5px;
  background: var(--accent-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
.features.warn li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8v5M12 17h.01'/%3E%3C/svg%3E");
}
.features b { font-weight: 800; }
.features span { color: var(--muted); }
.note { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }

/* Architecture diagram */

.lc-wrap { overflow-x: auto; padding-bottom: 8px; }
.arch { display: block; width: 100%; min-width: 760px; height: auto; color: var(--faint); font-family: inherit; }
.arch .n rect { fill: var(--card); stroke: var(--accent, var(--border-strong)); stroke-width: 1.5; }
.arch .n.core rect { fill: var(--accent-bg); stroke-width: 2.5; }
.arch .t { fill: var(--text); font-size: 14px; font-weight: 800; }
.arch .s { fill: var(--muted); font-size: 12px; }
.arch .h { fill: var(--faint); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; }
.arch .a { fill: none; stroke: currentColor; stroke-width: 1.5; }
.arch .dash { stroke-dasharray: 5 4; }
.arch .lbl { fill: var(--faint); font-size: 11.5px; font-style: italic; }

/* Services */

.deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.dep { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.dep strong { display: block; font-size: 15.5px; }
.dep span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.dep .dir { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--faint); }

/* Sub-pages */

.page-hero { padding: 64px 0 24px; }
.crumbs { font-size: 13.5px; color: var(--faint); display: flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 48px); margin-top: 14px; }
.prose { max-width: 760px; }
.prose p { color: var(--muted); }
.prose h3 { margin: 28px 0 6px; font-size: 18px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; padding: 1px 6px; border-radius: 5px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--border); }

/* Footer */

.site-footer { margin-top: 40px; padding: 28px 0 40px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); }

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

/* Theme toggle */

.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
