/* ========================================
   ZIERTA — Pure Minimalist Architecture
   Frontier Reasoning AI
   ======================================== */

:root {
  --bg:          #ffffff;
  --surface:     #ffffff;
  --surface-hover: #f5f5f7;
  --text:        #1d1d1f;
  --dim:         #515154;
  --muted:       #86868b;
  --border:      rgba(0, 0, 0, 0.08);
  --accent:      #0066cc;
  --accent-glow: rgba(0, 102, 204, 0.1);
  --green:       #008000;
  --red:         #e30000;
  --display:     -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", sans-serif;
  --body:        -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", sans-serif;
  --mono:        "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; outline: none; transition: color 0.2s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(0,102,204,0.4);
  outline-offset: 2px;
  border-radius: 4px;
}

button { font-family: var(--body); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════
   NAV
══════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.nav-logo {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--dim);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { 
  color: var(--text) !important; 
  font-weight: 400; 
  background: var(--surface-hover); 
  padding: 6px 14px; 
  border-radius: 20px; 
  border: 1px solid transparent; 
}
.nav-cta:hover { background: #e8e8ed; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 20px;
  height: 14px;
  position: relative;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  position: absolute;
  left: 0;
}

.nav-hamburger span:first-child { top: 0; }
.nav-hamburger span:last-child  { bottom: 0; }

/* ══════════════════════════
   HERO
══════════════════════════ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0 clamp(24px, 8vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  width: 60vw; height: 60vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0,102,204,0.03) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  text-align: center;
}

#holoCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-statement {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--dim);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex; gap: 16px; justify-content: center; align-items: center;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-btn-primary {
  font-size: 15px; font-weight: 500;
  padding: 14px 32px; background: var(--accent); color: #fff;
  border-radius: 30px; transition: background 0.2s, transform 0.2s;
  border: none;
}
.hero-btn-primary:hover { background: #0055b3; transform: scale(1.02); }

.hero-btn-secondary {
  font-size: 15px; font-weight: 500; color: var(--text);
  padding: 14px 32px; border-radius: 30px; border: none;
  background: var(--surface-hover);
  transition: background 0.2s, transform 0.2s;
}
.hero-btn-secondary:hover { background: #e8e8ed; transform: scale(1.02); }

/* ══════════════════════════
   SHARED SECTIONS
══════════════════════════ */
.section-wrap { max-width: 980px; margin: 0 auto; padding: 160px 24px; }

.label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}

.section-title {
  font-family: var(--display); font-size: clamp(40px, 5vw, 56px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.05; color: var(--text); margin-bottom: 24px;
}

.body, .body-wide {
  font-size: 19px; font-weight: 400; line-height: 1.5; color: var(--dim); margin-bottom: 24px; letter-spacing: -0.01em;
}
.body { max-width: 500px; }
.body-wide { max-width: 700px; }

/* NEUTRINO & SOKRATE */
.neutrino, .sokrate { border-top: 1px solid rgba(0,0,0,0.05); position: relative; overflow: hidden; background: var(--bg); }
.sokrate-header, .neutrino-header { margin-bottom: 64px; }
.sokrate-subtitle, .neutrino-subtitle { font-size: 18px; font-weight: 300; color: var(--dim); }

.neutrino-content, .sokrate-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 64px;
}

.neutrino-visual { display: flex; align-items: center; justify-content: center; background: #fbfbfd; border-radius: 32px; padding: 40px; }
#energySurface { width: 100%; max-width: 380px; height: auto; aspect-ratio: 1; }

.s-feature { margin-bottom: 40px; }
.s-feature-title { font-size: 19px; font-weight: 600; color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em; }
.s-feature-desc { font-size: 17px; line-height: 1.5; color: var(--dim); }

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--body); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 6px; background: #f5f5f7; color: var(--dim);
}
.badge-accent { color: var(--accent); background: rgba(0, 102, 204, 0.1); }
.badge-green { color: var(--green); background: rgba(0, 128, 0, 0.1); }

.sokrate-cta-wrap { margin-top: 16px; }

/* CTA LINK */
.cta-link {
  display: inline-flex; align-items: center; gap: 20px; padding: 32px 40px;
  border-radius: 24px; background: #fbfbfd;
  box-shadow: 0 4px 24px rgba(0,0,0,0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-link:hover { transform: scale(1.01); box-shadow: 0 12px 40px rgba(0,0,0,0.04); }
.cta-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--text); background: #e8e8ed; padding: 4px 10px; border-radius: 20px; }
.cta-text { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.cta-desc { font-size: 15px; color: var(--dim); max-width: 300px; line-height: 1.4; }
.cta-arrow { color: var(--accent); font-size: 24px; transition: transform 0.2s; font-weight: 400; }
.cta-link:hover .cta-arrow { transform: translateX(4px); }

/* REASONING VISUALIZER (Replaces Terminal) */
.sokrate-visual { display: flex; justify-content: center; width: 100%; }
.reasoning-visualizer {
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  padding: 64px; background: #fbfbfd;
  border-radius: 32px; width: 100%;
}
.rv-node {
  padding: 16px 24px; background: #ffffff; border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px; font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.03); position: relative; z-index: 2;
}
.rv-node.root { border-color: var(--accent); color: var(--accent); }
.rv-node.cert { border-color: var(--green); color: var(--green); }
.rv-node.fail { border-color: var(--red); color: var(--red); }
.rv-node.dim { opacity: 0.5; }

.rv-branches { display: flex; gap: 48px; position: relative; }
.rv-branches::before {
  content: ''; position: absolute; top: -32px; left: 50%; width: 1px; height: 32px; background: var(--border); z-index: 1;
}
.rv-branch { display: flex; flex-direction: column; align-items: center; gap: 24px; position: relative; }
.rv-branch::before {
  content: ''; position: absolute; top: -32px; left: 50%; width: 100%; height: 1px; background: var(--border); z-index: 1;
}
.rv-branch:first-child::before { left: 50%; width: 50%; }
.rv-branch:last-child::before { right: 50%; left: auto; width: 50%; }
.rv-branch::after {
  content: ''; position: absolute; top: -32px; left: 50%; width: 1px; height: 32px; background: var(--border); z-index: 1;
}

/* BENCHMARKS */
.benchmarks { border-bottom: 1px solid rgba(0,0,0,0.05); background: var(--bg); }
.bench-header { margin-bottom: 64px; text-align: center; }
.bench-subtitle { font-size: 21px; font-weight: 400; color: var(--dim); max-width: 700px; margin: 0 auto; line-height: 1.4; letter-spacing: -0.01em; }
.bench-deck { font-size: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.bench-how-sub { font-size: 17px; font-weight: 400; color: var(--dim); margin-bottom: 32px; max-width: 600px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 80px; }
.stat-card { 
  padding: 40px 24px; border-radius: 24px; background: #fbfbfd;
  text-align: center; 
}
.stat-card-val { font-family: var(--display); font-size: 48px; font-weight: 600; margin-bottom: 8px; color: var(--text); letter-spacing: -0.03em; }
.stat-card-label { font-size: 13px; font-weight: 500; color: var(--dim); letter-spacing: 0.02em; }

.bench-loading, .bench-error { font-size: 17px; font-weight: 400; color: var(--dim); text-align: center; padding: 48px 24px; }
.bench-error { color: var(--muted); }

.bench-chart { margin-bottom: 80px; }
.bench-chart-title { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--text); margin-bottom: 32px; letter-spacing: -0.01em; }
.bar-chart { display: flex; flex-direction: column; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; }
.bar-model { font-size: 15px; font-weight: 500; color: var(--text); text-align: right; }
.bar-track { height: 24px; background: #f5f5f7; border-radius: 12px; overflow: hidden; position: relative; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; min-width: 48px; transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar-fill.bar-dim { background: #d2d2d7; }
.bar-fill.bar-zero { background: transparent; min-width: 48px; justify-content: flex-start; padding-left: 12px; }
.bar-val { font-size: 12px; font-weight: 600; color: #fff; }
.bar-fill.bar-dim .bar-val { color: #fff; }
.bar-fill.bar-zero .bar-val { color: var(--muted); }
.bar-highlight .bar-model { font-weight: 600; color: var(--accent); }

.bench-table-wrap { margin-bottom: 80px; }
.bench-table-title { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--text); margin-bottom: 24px; letter-spacing: -0.01em; }
.bench-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 16px; border-radius: 16px; background: #fbfbfd; padding: 1px; }
.bench-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; }
.bench-table th { padding: 20px 24px; border-bottom: 1px solid rgba(0,0,0,0.05); color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.bench-table td { padding: 20px 24px; border-bottom: 1px solid rgba(0,0,0,0.03); color: var(--text); white-space: nowrap; font-weight: 400; }
.bench-table-sm { font-size: 13px; }
.bench-table-sm td, .bench-table-sm th { padding: 10px 14px; }
.bench-row-highlight { background: rgba(94, 106, 210, 0.05); }
.bench-row-highlight td { color: var(--accent); font-weight: 500; }
.bench-best { color: var(--green) !important; font-weight: 500 !important; }
.bench-na { color: var(--muted) !important; }
.bench-source { font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.6; }
.bench-source a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.bench-insights { margin-bottom: 80px; }
.bench-insights-title { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--text); margin-bottom: 32px; letter-spacing: -0.01em; }
.insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.insight-card { 
  padding: 32px; border-radius: 24px; background: #fbfbfd;
}
.insight-text { font-size: 17px; font-weight: 400; line-height: 1.5; color: var(--dim); }
.insight-text strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 8px; font-size: 19px; letter-spacing: -0.01em; }

.bench-how { margin-bottom: 80px; }
.bench-how-title { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--text); margin-bottom: 40px; letter-spacing: -0.01em; }
.how-steps { display: flex; flex-direction: column; gap: 40px; }
.how-step { display: grid; grid-template-columns: 48px 1fr; gap: 24px; align-items: start; }
.how-num { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--muted); line-height: 1; }
.how-step-title { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em; }
.how-step-body { font-size: 17px; font-weight: 400; line-height: 1.5; color: var(--dim); max-width: 600px; }

.bench-full { margin-bottom: 64px; }
.bench-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 24px 32px; border: none; border-radius: 20px; background: #f5f5f7; cursor: pointer; font-family: var(--display); font-size: 17px; font-weight: 500; color: var(--text); transition: background 0.2s; letter-spacing: -0.01em; }
.bench-toggle:hover { background: #e8e8ed; }
.bench-toggle:hover { border-color: var(--accent); }
.bench-toggle-arrow { font-size: 12px; color: var(--dim); transition: transform 0.3s; }
.bench-toggle.open .bench-toggle-arrow { transform: rotate(180deg); }
.bench-full-content { display: none; padding: 24px 0; }
.bench-full-content.open { display: block; }
.bench-full-subtitle { font-family: var(--display); font-size: 14px; font-weight: 500; color: var(--dim); margin-bottom: 16px; margin-top: 24px; }
.bench-full-subtitle:first-child { margin-top: 0; }
.bench-footnotes { font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.7; margin-top: 16px; }
.bench-footnotes a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.bench-limits-title { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.bench-limits-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bench-limits-list li { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.65; padding-left: 16px; position: relative; }
.bench-limits-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

/* ABOUT */
.about { background: var(--bg); }
.about .section-wrap { padding-top: 140px; padding-bottom: 140px; }
.contact { font-size: 13px; font-weight: 300; color: var(--dim); margin-top: 48px; }

/* FOOTER */
.footer { padding: 64px 48px; border-top: 1px solid rgba(0,0,0,0.05); background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1024px; margin: 0 auto; color: var(--muted); font-size: 14px; font-weight: 400; }
.footer-logo { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--text); }
.footer-mission { font-weight: 400; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .neutrino-content, .sokrate-content { grid-template-columns: 1fr; gap: 48px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .insights-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 110px 1fr; }
  .reasoning-visualizer { transform: scale(0.85); transform-origin: top; }
}

@media (max-width: 600px) {
  .hero { min-height: 90vh; padding: 0 24px; }
  .hero-statement { font-size: clamp(32px, 10vw, 44px); }
  .hero-actions { flex-direction: column; gap: 16px; }
  .section-wrap { padding: 80px 24px; }
  .stat-cards { grid-template-columns: 1fr; }
  .cta-link { flex-direction: column; text-align: center; grid-template-columns: 1fr; gap: 8px; }
  .cta-label { justify-self: center; }
  .cta-arrow { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; }
  .footer-mission { display: none; }
  .bar-row { grid-template-columns: 90px 1fr; gap: 10px; }
  .bar-model { font-size: 11px; }
  .bench-table { font-size: 12px; }
  .how-step { grid-template-columns: 36px 1fr; }
  .how-num { font-size: 28px; }
  .reasoning-visualizer { transform: scale(0.7); padding: 24px; }
}
