/* ============================================================================
   creator.litherarp.com · theme tokens + primitives
   Same blue-chrome design language as litherarp.com.
   ============================================================================ */

:root {
  --bg-deep:    #05070b;
  --bg-base:    #0a0e15;
  --bg-panel:   rgba(14, 18, 26, 0.96);
  --bg-panel-2: rgba(8, 11, 17, 0.92);

  --surface-02: rgba(255, 255, 255, 0.02);
  --surface-03: rgba(255, 255, 255, 0.03);
  --surface-04: rgba(255, 255, 255, 0.04);
  --surface-06: rgba(255, 255, 255, 0.06);
  --surface-08: rgba(255, 255, 255, 0.08);
  --surface-12: rgba(255, 255, 255, 0.12);

  --border-06:  rgba(255, 255, 255, 0.06);
  --border-08:  rgba(255, 255, 255, 0.08);
  --border-10:  rgba(255, 255, 255, 0.10);
  --border-14:  rgba(255, 255, 255, 0.14);
  --border-20:  rgba(255, 255, 255, 0.20);

  --text-primary:   #ffffff;
  --text-secondary: #d3d4d5;
  --text-meta:      #acadaf;
  --text-hint:      #898b8f;
  --text-faint:     #5a5d62;

  --blue:           #8bc8ff;
  --accent:         #8bc8ff;
  --accent-glow:    rgba(139, 200, 255, 0.30);
  --accent-tint-04: rgba(139, 200, 255, 0.04);
  --accent-tint-06: rgba(139, 200, 255, 0.06);
  --accent-tint-08: rgba(139, 200, 255, 0.10);
  --accent-tint-12: rgba(139, 200, 255, 0.12);
  --accent-tint-20: rgba(139, 200, 255, 0.25);
  --accent-tint-35: rgba(139, 200, 255, 0.35);

  --money:        #79e08f;
  --money-bright: #b7ffa5;
  --gold:         #ffd264;
  --gold-bright:  #ffd15c;
  --danger:       #ff6b6b;
  --warn:         #ff8c69;
  --info:         #8bc8ff;
  --tip:          #79e08f;

  --radius-panel: 2px;
  --radius-card:  2px;
  --radius-slot:  2px;
  --radius-btn:   2px;
  --radius-pill:  2px;

  --shadow-panel: 0 12px 40px rgba(0, 0, 0, 0.55);
  --shadow-soft:  0 4px 24px rgba(0, 0, 0, 0.40);

  --section-py: 140px;
  --container-max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 1300px 900px at 50% -240px, rgba(139, 200, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 800px 600px at 85% 480px, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    var(--bg-deep);
  color: var(--text-secondary);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  /* Sticky-footer layout: nav is fixed-positioned and ignored by flex,
     so the main content grows to fill the viewport and pushes the
     footer down even on short pages like the dashboard login screen. */
  display: flex;
  flex-direction: column;
}

body > main,
body > .docs-shell,
body > .dash-shell,
body > .legal-shell {
  flex: 1 0 auto;
}
body > .footer { flex-shrink: 0; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}

::selection { background: var(--accent-tint-35); color: var(--text-primary); }

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
.icon-12 { font-size: 12px !important; }
.icon-13 { font-size: 13px !important; }
.icon-14 { font-size: 14px !important; }
.icon-16 { font-size: 16px !important; }

/* Inline SVG icons sized to match material-icons. Used in the nav/footer to
   avoid pulling the Material Icons webfont on first paint. */
.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  flex-shrink: 0;
  fill: currentColor;
}
.icon.icon-12 { width: 12px; height: 12px; vertical-align: -2px; }
.icon.icon-13 { width: 13px; height: 13px; vertical-align: -2px; }
.icon.icon-14 { width: 14px; height: 14px; vertical-align: -2px; }
.icon.icon-16 { width: 16px; height: 16px; vertical-align: -3px; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }

section { padding: var(--section-py) 0; position: relative; }

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
}
h1 { font-size: clamp(48px, 6vw, 80px); }
h2 { font-size: clamp(36px, 4vw, 56px); }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
h4 { font-size: 15px; font-weight: 700; letter-spacing: 0.2px; line-height: 1.3; }

p { margin: 0; text-wrap: pretty; }

.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

.section-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-header p {
  color: var(--text-meta);
  font-size: 17px;
}

.panel {
  background: linear-gradient(to bottom, rgba(14, 18, 26, 0.96), rgba(8, 11, 17, 0.92));
  border: 1px solid var(--border-14);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  position: relative;
  overflow: hidden;
}
.panel-strong { border-top-width: 3px; }
.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-06);
}
.panel-header .material-icons { font-size: 18px; color: var(--accent); }
.panel-header h2,
.panel-header h3,
.panel-header h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  flex: 1;
  font-family: 'Poppins', sans-serif;
}
.panel-header .kbd { margin-left: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-tint-12);
  border-color: var(--accent-tint-35);
  color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-tint-20);
  box-shadow: 0 6px 22px var(--accent-glow);
}
.btn-ghost {
  background: var(--surface-06);
  border-color: var(--border-10);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--surface-12);
  border-color: var(--border-20);
  color: var(--text-primary);
}
.btn-big { padding: 16px 28px; font-size: 14.5px; }
.btn .material-icons { font-size: 18px; }

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-10);
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-10);
  background: var(--surface-06);
  color: var(--text-secondary);
  white-space: nowrap;
}
.pill-accent {
  border-color: var(--accent-tint-35);
  background: var(--accent-tint-12);
  color: var(--accent);
}
.pill-warn {
  border-color: rgba(255, 140, 105, 0.35);
  background: rgba(255, 140, 105, 0.10);
  color: var(--warn);
}
.pill-money {
  border-color: rgba(121, 224, 143, 0.35);
  background: rgba(121, 224, 143, 0.10);
  color: var(--money);
}

.c-accent { color: var(--accent); }
.c-meta   { color: var(--text-meta); }
.c-hint   { color: var(--text-hint); }
.c-money  { color: var(--money); }
.c-gold   { color: var(--gold); }
.c-danger { color: var(--danger); }
.c-warn   { color: var(--warn); }

.divider {
  border: none;
  border-top: 1px solid var(--border-06);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Touch feedback for tappable elements, keeps the accent flash subtle. */
a, button, summary, [role="button"], label {
  -webkit-tap-highlight-color: rgba(139, 200, 255, 0.18);
}

/* iOS zooms in on inputs whose font-size is < 16px. Hold the desktop sizes
   above 680px and bump everything to 16px below it so the OS leaves it alone. */
@media (max-width: 680px) {
  input, textarea, select { font-size: 16px; }
}

/* Tighten section rhythm on phones so we don't waste a whole screen on whitespace. */
@media (max-width: 680px) {
  :root { --section-py: 72px; }
  h1 { font-size: clamp(38px, 9vw, 64px); }
  h2 { font-size: clamp(28px, 6vw, 44px); }
}
@media (max-width: 420px) {
  :root { --section-py: 56px; }
  .container, .container-narrow { padding: 0 16px; }
}

/* Visually-hidden helper for accessible-only text */
.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;
}
