/* Floating Sage — Claymore Glass Card system
   Dark-first · graphite #0E1013 · accent #EA580C
   Refined for floatingsage.com — no frameworks, no build step. */

/* ---------- Type ---------- */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Surfaces */
  --bg:            #0E1013;
  --bg-deep:       #08090B;
  --bg-elevated:   #15181D;
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-2:     rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text:          #F4F1EC;
  --text-muted:    rgba(244, 241, 236, 0.62);
  --text-subtle:   rgba(244, 241, 236, 0.40);
  --text-faint:    rgba(244, 241, 236, 0.22);

  /* Accent — graphite primary / amber secondary */
  --accent:        #EA580C;
  --accent-hover:  #FB923C;
  --accent-deep:   #C2410C;
  --accent-glow:   rgba(234, 88, 12, 0.18);
  --accent-soft:   rgba(234, 88, 12, 0.08);

  /* State colors (shared across the app per DS) */
  --success:       #22C55E;
  --warning:       #F59E0B;
  --error:         #EF4444;

  /* Strict radius scale: dot → chip → btn → card → sheet → pill */
  --r-dot:    4px;
  --r-chip:   8px;
  --r-btn:    12px;
  --r-card:   16px;
  --r-sheet:  24px;
  --r-pill:   999px;

  /* Shadows — capped at 0.10 opacity, no colored except FAB glow */
  --shadow-1: 0 1px 2px rgba(0,0,0,0.10), 0 1px 0 rgba(255,255,255,0.03) inset;
  --shadow-2: 0 8px 24px rgba(0,0,0,0.10), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-3: 0 24px 60px rgba(0,0,0,0.10), 0 1px 0 rgba(255,255,255,0.05) inset;
  --fab-glow: 0 12px 36px rgba(234, 88, 12, 0.32);

  --max-width: 1180px;

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient backdrop — layered radial glows + subtle grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 1400px 700px at 50% -20%, rgba(234, 88, 12, 0.10), transparent 60%),
    radial-gradient(ellipse 900px 600px at 88% 8%, rgba(251, 146, 60, 0.06), transparent 70%),
    radial-gradient(ellipse 700px 500px at 8% 60%, rgba(234, 88, 12, 0.04), transparent 70%),
    radial-gradient(ellipse 1100px 700px at 50% 110%, rgba(234, 88, 12, 0.06), transparent 70%);
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.045 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent-hover); }

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

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  background: rgba(14, 16, 19, 0.62);
  border-bottom: 1px solid var(--border);
}
header.site .nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); font-weight: 500;
}
.brand-img {
  width: 34px; height: 34px;
  border-radius: var(--r-chip);
  background:
    radial-gradient(circle at 30% 30%, rgba(234,88,12,0.20), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  padding: 2px;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .top  { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.brand-text .sub  { font-size: 10.5px; color: var(--text-subtle); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2px; }

nav.links { display: flex; gap: 4px; align-items: center; }
nav.links a {
  color: var(--text-muted); font-size: 13.5px; font-weight: 400;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: all 0.18s ease;
}
nav.links a:hover { color: var(--text); background: var(--surface); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 56px;
  text-align: center;
  position: relative;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-subtle);
  margin-bottom: 28px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.hero .eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.hero .sage-stage {
  position: relative;
  width: 280px; max-width: 56vw;
  margin: 0 auto 4px;
  isolation: isolate;
}
.hero .sage-stage::before {
  content: "";
  position: absolute; inset: -28% -18% -12%;
  background:
    radial-gradient(ellipse 65% 55% at 50% 55%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18) 45%, transparent 75%);
  filter: blur(36px);
  z-index: -1;
}
.hero .sage-img {
  width: 100%; height: auto;
  display: block;
  opacity: 0.97;
  filter: drop-shadow(0 36px 60px rgba(0, 0, 0, 0.45));
  animation: gentle-float 7s ease-in-out infinite;
}
.hero .sage-stage .ring {
  position: absolute; inset: auto 0 -2% 0;
  margin: 0 auto;
  width: 80%; height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15) 60%, transparent 80%);
  filter: blur(12px);
  animation: ring-breathe 7s ease-in-out infinite;
  z-index: -1;
}
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes ring-breathe {
  0%, 100% { opacity: 0.55; transform: scaleX(1); }
  50%      { opacity: 0.8;  transform: scaleX(0.86); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .sage-img, .hero .sage-stage .ring, .hero .eyebrow .dot { animation: none; }
}

.hero h1 {
  font-size: clamp(40px, 7.6vw, 76px);
  font-weight: 500; line-height: 1.02;
  letter-spacing: -0.034em;
  margin: 22px auto;
  max-width: 17ch;
  color: var(--text);
}
.hero h1 .accent {
  font-family: var(--font-serif);
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero .tagline {
  font-size: 18.5px;
  color: var(--text-muted);
  max-width: 600px; margin: 0 auto 36px;
  line-height: 1.55;
}

.cta-row {
  display: flex; gap: 10px;
  justify-content: center; flex-wrap: wrap;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 36px 0 0;
}
.trust-strip span.trust-item {
  display: inline-flex; align-items: center;
  padding: 0 22px;
  border-right: 1px solid var(--border);
}
.trust-strip span.trust-item:last-child { border-right: none; }
.trust-strip .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  box-shadow: 0 0 8px var(--accent-glow);
}
@media (max-width: 720px) {
  .trust-strip { padding: 24px 0 0; gap: 6px; }
  .trust-strip span.trust-item { padding: 4px 10px; border-right: none; font-size: 10.5px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all 0.18s ease;
  cursor: pointer; user-select: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: -0.005em;
}
.btn:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 0.92; }
.btn-primary {
  background: var(--accent);
  border-color: rgba(255,255,255,0.10);
  color: #fff;
  box-shadow: var(--fab-glow);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 16px 44px rgba(234, 88, 12, 0.42); }
.btn-ghost { background: transparent; }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Section header (eyebrow + title) ---------- */
.section-head {
  margin: 88px 0 28px;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start;
}
.section-head .eyebrow-row {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-subtle);
}
.section-head .eyebrow-row .num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
}
.section-head h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.024em;
  line-height: 1.06;
  max-width: 22ch;
  color: var(--text);
}
.section-head h2 em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-hover);
}
.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 60ch;
}

/* ---------- Glass card ---------- */
.card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-2);
}

.card h2 {
  font-size: 22px; font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: -0.018em;
  color: var(--text);
}
.card h2 .num { color: var(--accent); margin-right: 10px; font-family: var(--font-mono); font-size: 16px; }
.card h3 {
  font-size: 16px; font-weight: 600;
  margin-top: 18px; margin-bottom: 6px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.card p  { color: var(--text-muted); margin-bottom: 12px; font-size: 15px; line-height: 1.65; }
.card ul { padding-left: 20px; margin-bottom: 12px; }
.card li { color: var(--text-muted); margin-bottom: 6px; font-size: 15px; }
.card strong { color: var(--text); font-weight: 600; }
.card em { font-style: normal; color: var(--accent-hover); }
.card a  { font-weight: 500; }
.card hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin: 6px 0 0;
}
.feature {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px;
  transition: all 0.22s ease;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234,88,12,0.0), transparent);
  transition: background 0.3s ease;
}
.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  background: var(--surface-2);
}
.feature:hover::before {
  background: linear-gradient(90deg, transparent, rgba(234,88,12,0.5), transparent);
}
.feature .label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
  font-family: var(--font-mono);
}
.feature .label::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.feature h3 { font-size: 17px; margin-bottom: 8px; color: var(--text); font-weight: 500; letter-spacing: -0.012em; }
.feature p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Explicit 2x2 / 1x3 layouts */
.features.cols-2 { grid-template-columns: repeat(2, 1fr); }
.features.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .features.cols-2, .features.cols-3 { grid-template-columns: 1fr; }
}

/* Clickable card */
a.feature {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.feature:hover { color: inherit; }
a.feature .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: -0.005em;
}
a.feature:hover .read-more { color: var(--accent-hover); }
a.feature:hover .read-more .arrow { transform: translateX(3px); }
a.feature .read-more .arrow { transition: transform 0.18s ease; }

/* Hero feature — bigger primary tile */
.feature.primary {
  background:
    radial-gradient(circle at 0% 0%, rgba(234, 88, 12, 0.10), transparent 50%),
    var(--surface-2);
  border: 1px solid rgba(234, 88, 12, 0.20);
  padding: 36px;
  display: flex; flex-direction: column;
  min-height: 280px;
}
.feature.primary h3 { font-size: 24px; margin-top: 4px; letter-spacing: -0.022em; }
.feature.primary p { font-size: 15px; max-width: 42ch; }
.feature.primary .pre {
  margin-top: auto;
  padding-top: 24px;
  display: flex; align-items: center; gap: 14px;
  border-top: 1px dashed var(--border);
}
.feature.primary .mini-mock {
  display: flex; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.feature.primary .mini-mock span {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.feature.primary .mini-mock span.on {
  color: var(--accent);
  border-color: rgba(234,88,12,0.30);
  background: var(--accent-soft);
}

/* Asymmetric "what we make" layout */
.studio-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.studio-grid .stack { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 880px) { .studio-grid { grid-template-columns: 1fr; } }

/* Marquee values strip */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.012);
  margin: 56px 0;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 120px; z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track {
  display: flex; gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.marquee-item .sep {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Tag / pill ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(234, 88, 12, 0.32);
  color: var(--accent-hover);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.tag::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ---------- Phone mockup ---------- */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
  perspective: 1400px;
}
.phone-stage::before {
  content: "";
  position: absolute; inset: 10% 0 0 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(234,88,12,0.14), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(180deg, #1a1d22, #0c0e11);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 38px;
  padding: 8px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.40),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    inset 0 0 40px rgba(0,0,0,0.30);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.phone:hover { transform: rotateY(0) rotateX(0); }
.phone .screen {
  position: relative;
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}
.phone .notch {
  position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 4;
}
.phone .status {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between;
  padding: 12px 22px 0;
  font-size: 11px; font-weight: 600;
  color: var(--text);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}
.phone .status .icons { display: flex; gap: 4px; align-items: center; }
.phone .status .icons span {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--text);
  border-radius: 50%;
  opacity: 0.7;
}
.phone .body { padding: 36px 14px 14px; height: calc(100% - 36px); display: flex; flex-direction: column; gap: 10px; }

.app-header { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 8px; }
.app-header .greet { font-size: 9px; color: var(--text-subtle); letter-spacing: 0.06em; text-transform: uppercase; }
.app-header .name { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 2px; }
.app-header .av {
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff;
}

.kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kpi {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  padding: 10px;
}
.kpi .lbl { font-size: 8px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-subtle); margin-bottom: 4px; }
.kpi .val { font-size: 16px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi .sub { font-size: 8px; color: var(--success); margin-top: 2px; font-family: var(--font-mono); }
.kpi.alt .val { color: var(--accent); }

.mini-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: 10px;
}
.mini-card .ico {
  width: 22px; height: 22px;
  border-radius: var(--r-chip);
  background: var(--accent-soft);
  border: 1px solid rgba(234,88,12,0.20);
  flex: 0 0 auto;
  position: relative;
}
.mini-card .ico::after {
  content: "";
  position: absolute; inset: 5px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.72;
}
.mini-card.warn .ico { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.30); }
.mini-card.warn .ico::after { background: var(--warning); }
.mini-card .meta { flex: 1; min-width: 0; }
.mini-card .meta .t { font-weight: 600; color: var(--text); }
.mini-card .meta .s { color: var(--text-subtle); font-size: 9px; margin-top: 1px; }
.mini-card .v { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; font-size: 11px; }

.tab-bar {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 8px 4px;
  gap: 2px;
}
.tab-bar .t {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 0;
  font-size: 8px;
  color: var(--text-subtle);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.tab-bar .t .ico {
  width: 14px; height: 14px;
  border-radius: var(--r-dot);
  background: var(--text-faint);
}
.tab-bar .t.on { color: var(--accent); }
.tab-bar .t.on .ico { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

/* ---------- Page head (sub-pages) ---------- */
.page-head { text-align: left; padding: 80px 0 36px; }
.page-head h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 500; letter-spacing: -0.028em;
  margin-bottom: 12px;
  line-height: 1.05;
}
.page-head h1 em { font-family: var(--font-serif); color: var(--accent); font-style: italic; font-weight: 400; }
.page-head .meta { color: var(--text-subtle); font-size: 13px; font-family: var(--font-mono); }
.page-head .crumbs {
  font-size: 12px; color: var(--text-subtle);
  margin-bottom: 18px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.page-head .crumbs a { color: var(--text-muted); }
.page-head .crumbs a:hover { color: var(--accent); }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  padding: 18px 22px;
  margin-bottom: 8px;
  transition: all 0.18s ease;
}
details.faq:hover { border-color: var(--border-strong); }
details.faq[open] { border-color: var(--border-strong); background: var(--surface-2); }
details.faq summary {
  cursor: pointer;
  font-weight: 500; color: var(--text);
  font-size: 15px;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 22px; color: var(--text-subtle);
  font-weight: 300; transition: transform 0.2s ease;
  flex: 0 0 auto;
}
details.faq[open] summary::after { content: "−"; color: var(--accent); }
details.faq p { margin-top: 12px; color: var(--text-muted); font-size: 14.5px; }

/* ---------- Definition list ---------- */
.card dl { margin-bottom: 4px; }
.card dt {
  font-weight: 600; color: var(--text);
  margin-top: 16px; font-size: 14.5px;
  letter-spacing: -0.005em;
}
.card dt:first-of-type { margin-top: 0; }
.card dd {
  color: var(--text-muted);
  margin-left: 0; margin-bottom: 4px;
  font-size: 14.5px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  margin-top: 6px;
  line-height: 1.65;
}

/* ---------- Founder card ---------- */
.founder-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(234, 88, 12, 0.06), transparent 65%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 40px 44px;
  margin-bottom: 14px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
}
.founder-card::before {
  content: "\201C";
  position: absolute;
  top: -18px; left: 28px;
  font-size: 120px;
  font-family: var(--font-serif);
  color: var(--accent);
  opacity: 0.22;
  line-height: 1;
}
.founder-quote {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.founder-attr {
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.founder-attr::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}
@media (max-width: 600px) {
  .founder-card { padding: 32px 24px; }
  .founder-quote { font-size: 20px; }
}

/* ---------- CTA card ---------- */
.cta-card {
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(234, 88, 12, 0.10), transparent 70%),
    var(--surface);
  border: 1px solid rgba(234, 88, 12, 0.22);
  padding: 56px 36px;
  position: relative;
  overflow: hidden;
}
.cta-card::after {
  content: "";
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.10), transparent 60%);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin-bottom: 14px;
  letter-spacing: -0.022em;
  font-weight: 500;
}
.cta-card h2 em {
  font-family: var(--font-serif); font-style: italic; color: var(--accent-hover); font-weight: 400;
}
.cta-card p {
  max-width: 540px;
  margin: 0 auto 28px !important;
  color: var(--text-muted);
  font-size: 16px;
}
.cta-card .btn-primary { font-size: 15px; padding: 14px 28px; }

/* ---------- Hairline divider ---------- */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 56px 0;
}

/* ---------- Code ---------- */
code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px; border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.86em; color: var(--text);
  border: 1px solid var(--border);
}

:target { scroll-margin-top: 90px; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 800px 300px at 50% 100%, rgba(234, 88, 12, 0.06), transparent 70%),
    rgba(255, 255, 255, 0.015);
  padding: 64px 0 32px;
  margin-top: 96px;
}
footer.site .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}
footer h4 {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-subtle);
  margin-bottom: 16px;
  font-weight: 500;
  font-family: var(--font-mono);
}
footer .footer-brand p {
  color: var(--text-muted); font-size: 13.5px;
  max-width: 280px; margin-top: 12px; line-height: 1.6;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer li a { color: var(--text-muted); font-size: 14px; }
footer li a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  color: var(--text-subtle); font-size: 12.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.footer-bottom .legal a { color: var(--text-muted); margin-left: 22px; }
.footer-bottom .legal a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  footer.site .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer.site .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .legal a:first-child { margin-left: 0; }
}
@media (max-width: 600px) {
  nav.links { display: none; }
  .hero { padding: 56px 0 32px; }
  .hero .sage-stage { width: 220px; }
  .card { padding: 24px 22px; }
  .container { padding: 0 18px; }
  .page-head { padding: 56px 0 24px; }
  header.site .nav { padding: 12px 0; }
  .brand-img { width: 30px; height: 30px; }
  .brand-text .top { font-size: 14px; }
  .section-head { margin: 64px 0 22px; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
  header.site, footer.site, .cta-row { display: none; }
  .card { background: #fff; border: 1px solid #ccc; box-shadow: none; }
  .card p, .card li, .card dd { color: #333; }
  a { color: #000; text-decoration: underline; }
}
