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

:root {
  --bg:       #0b0b0b;
  --surface:  #161616;
  --surface2: #202020;
  --border:   #2e2e2e;
  --text:     #eeeeee;
  --muted:    #787878;
  --accent:   #cecece;
  --accent2:  #999999;
  --accent3:  #606060;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-logo span { color: var(--accent2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: var(--bg);
  padding: .48rem 1.25rem;
  border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: all .22s;
  white-space: nowrap;
}
.btn-nav:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(220,220,220,.18);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  z-index: 1;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}
.orb1 {
  width: 700px; height: 700px;
  background: rgba(180,180,180,.07);
  top: -150px; left: 50%;
  transform: translateX(-55%);
  animation: orbPulse1 9s ease-in-out infinite;
}
.orb2 {
  width: 450px; height: 450px;
  background: rgba(140,140,140,.05);
  bottom: -50px; right: -120px;
  animation: orbPulse2 11s ease-in-out infinite;
}
.orb3 {
  width: 320px; height: 320px;
  background: rgba(100,100,100,.04);
  bottom: 120px; left: -80px;
  animation: orbPulse2 13s ease-in-out infinite reverse;
}

@keyframes orbPulse1 {
  0%, 100% { opacity: .5; transform: translateX(-55%) scale(1); }
  50% { opacity: .85; transform: translateX(-55%) scale(1.06); }
}
@keyframes orbPulse2 {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: .75; transform: scale(1.09); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .64rem;
  color: rgba(180,180,180,.13);
  animation: floatUp linear infinite;
  white-space: nowrap;
}
@keyframes floatUp {
  from { transform: translateY(100vh) rotate(-4deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { transform: translateY(-20vh) rotate(4deg); opacity: 0; }
}

.hero-inner { position: relative; z-index: 2; max-width: 860px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(200,200,200,.06);
  border: 1px solid rgba(200,200,200,.18);
  color: var(--accent);
  font-size: .67rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .35rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 2.2rem;
  animation: fadeUp .8s ease both;
}
.hero-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  animation: blink 1.5s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.03em;
  animation: fadeUp .8s .1s ease both;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .em2 {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--muted);
  max-width: 580px;
  margin: 1.75rem auto 0;
  animation: fadeUp .8s .2s ease both;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
  animation: fadeUp .8s .3s ease both;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent);
  color: var(--bg);
  padding: .8rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all .22s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(200,200,200,.22);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent;
  color: var(--text);
  padding: .8rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: all .22s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

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

/* ── SHARED ── */
section { position: relative; z-index: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

.section-label {
  display: inline-block;
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── STATS STRIP ── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 1rem 2rem;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: .66rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: .3rem; }

/* ── HOW IT WORKS ── */
.how-section { padding: 9rem 0; }
.how-header { text-align: center; margin-bottom: 5rem; }
.how-header p { color: var(--muted); max-width: 520px; margin: 1rem auto 0; font-size: .86rem; line-height: 1.75; }

.pipeline {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
}
.pipeline::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 44px;
  bottom: 44px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--accent3), var(--accent));
  opacity: .2;
}

.pipeline-step {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 12px;
  transition: background .25s;
  cursor: default;
}
.pipeline-step:hover { background: rgba(180,180,180,.03); }

.step-icon {
  width: 64px; height: 64px; min-width: 64px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface2);
  position: relative;
  z-index: 1;
  transition: border-color .25s, box-shadow .25s;
}
.pipeline-step:hover .step-icon {
  border-color: var(--accent2);
  box-shadow: 0 0 22px rgba(180,180,180,.12);
}

.step-content { padding-top: .5rem; }
.step-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .35rem;
}
.step-desc { color: var(--muted); font-size: .8rem; line-height: 1.75; }
.step-tag {
  display: inline-block;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .15rem .55rem;
  border-radius: 4px;
  margin-top: .55rem;
}
.tag-a { background: rgba(200,200,200,.08); color: var(--accent); }
.tag-b { background: rgba(150,150,150,.08); color: var(--accent2); }
.tag-c { background: rgba(100,100,100,.08); color: var(--accent3); }

/* ── CAPABILITIES ── */
.capabilities-section { padding: 9rem 0; }
.capabilities-header { text-align: center; margin-bottom: 4rem; }
.capabilities-header p { color: var(--muted); max-width: 520px; margin: 1rem auto 0; font-size: .86rem; line-height: 1.75; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.cap-card {
  background: var(--surface);
  padding: 2rem;
  transition: background .22s;
  position: relative;
  overflow: hidden;
}
.cap-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  opacity: 0;
  transition: opacity .25s;
}
.cap-card:hover { background: var(--surface2); }
.cap-card:hover::after { opacity: 1; }
.cap-card.c-a::after { background: linear-gradient(90deg, var(--accent), transparent); }
.cap-card.c-b::after { background: linear-gradient(90deg, var(--accent2), transparent); }
.cap-card.c-c::after { background: linear-gradient(90deg, var(--accent3), transparent); }

.cap-icon { font-size: 1.6rem; margin-bottom: 1.1rem; display: block; }
.cap-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .5rem;
}
.cap-desc { font-size: .78rem; color: var(--muted); line-height: 1.72; }

/* ── OUTPUT SECTION ── */
.output-section {
  padding: 9rem 0;
  background: linear-gradient(to bottom, transparent, var(--surface) 15%, var(--surface) 85%, transparent);
}
.output-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}
.output-text h2 { margin-bottom: 1.25rem; }
.output-text p { color: var(--muted); font-size: .84rem; line-height: 1.85; margin-bottom: 1.1rem; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: .65rem; margin-top: 1.5rem; }
.check-list li {
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  line-height: 1.6;
}
.check-list li::before { content: '✦'; color: var(--accent2); margin-top: .15rem; flex-shrink: 0; }

.output-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  font-family: 'IBM Plex Mono', monospace;
}
.ov-bar {
  background: var(--surface2);
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  color: var(--muted);
}
.ov-dot { width: 9px; height: 9px; border-radius: 50%; }
.ov-title { margin-left: auto; }
.ov-body {
  padding: 1.25rem 1.5rem;
  font-size: .73rem;
  line-height: 1.9;
  overflow-x: auto;
  white-space: pre;
}
.j-key { color: var(--accent2); }
.j-str { color: var(--accent); }
.j-num { color: #b0b0b0; }
.j-bool { color: var(--accent3); }
.j-comment { color: #444; font-style: italic; }
.j-muted { color: #444; }

/* ── CLOUD ML SECTION ── */
.ml-section { padding: 9rem 0; }
.ml-header { text-align: center; margin-bottom: 4rem; }
.ml-header p { color: var(--muted); max-width: 520px; margin: 1rem auto 0; font-size: .86rem; line-height: 1.75; }

.ml-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.ml-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color .22s, transform .22s, box-shadow .22s;
  cursor: default;
}
.ml-card:hover {
  border-color: var(--accent2);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(140,140,140,.08);
}
.ml-card-icon { font-size: 1.5rem; margin-bottom: 1rem; }
.ml-card-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .3rem;
}
.ml-card-type {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent3);
  margin-bottom: .85rem;
}
.ml-card-desc { font-size: .77rem; color: var(--muted); line-height: 1.72; }

.ml-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.75rem;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* ── PROTOCOL VISUAL ── */
.protocol-section { padding: 9rem 0; }
.protocol-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.protocol-text h2 { margin-bottom: 1.25rem; }
.protocol-text p { color: var(--muted); font-size: .84rem; line-height: 1.85; margin-bottom: 1.2rem; }

.protocol-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.pv-bar {
  background: var(--surface2);
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  color: var(--muted);
}
.pv-body { padding: 1.25rem 1.5rem; font-size: .76rem; }
.pv-line { display: flex; align-items: center; gap: .75rem; padding: .52rem 0; border-bottom: 1px solid rgba(46,46,46,.6); }
.pv-line:last-child { border-bottom: none; }
.pv-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.s-done { background: var(--accent2); }
.s-active { background: var(--accent); animation: blink 1s step-end infinite; }
.s-wait { background: var(--border); }
.pv-label { flex: 1; color: var(--muted); }
.pv-label strong { color: var(--text); display: block; }
.pv-badge {
  font-size: .63rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 3px;
}
.b-done { background: rgba(150,150,150,.1); color: var(--accent2); }
.b-active { background: rgba(200,200,200,.08); color: var(--accent); }
.b-wait { background: rgba(80,80,80,.08); color: var(--muted); }

/* ── DEBUG LOG SECTION ── */
.debug-section { padding: 4rem 0 9rem; }
.debug-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  max-width: 860px;
  margin: 3rem auto 0;
}
.dv-bar {
  background: var(--surface2);
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .68rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.dv-body { padding: 1.25rem 1.5rem; }
.log-line {
  font-size: .7rem;
  line-height: 2;
  font-family: 'IBM Plex Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
}
.l-time { color: #484848; }
.l-debug { color: #555; }
.l-mod { color: var(--accent3); }
.l-event { color: var(--accent2); }
.l-kv { color: var(--muted); }
.l-val { color: var(--accent); }
.l-anom { color: #c8c8c8; }

/* ── CTA ── */
.cta-section {
  padding: 9rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160,160,160,.07), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-section h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 1.5rem; }
.cta-section p {
  color: var(--muted);
  font-size: .86rem;
  max-width: 440px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: var(--accent);
  color: var(--bg);
  padding: .95rem 2.5rem;
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .22s;
}
.cta-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(220,220,220,.18);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}
.footer-wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .5rem;
}
.footer-tagline { color: var(--muted); font-size: .75rem; margin-bottom: 2rem; }
.footer-links { display: flex; gap: 2rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: .68rem; color: #404040; }
.footer-ai-disclosure {
  font-size: .65rem;
  color: #404040;
  margin-top: .6rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-right: 1px solid var(--border); }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .output-inner { grid-template-columns: 1fr; gap: 3rem; }
  .protocol-inner { grid-template-columns: 1fr; gap: 3rem; }
  .ml-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cap-grid { grid-template-columns: 1fr; }
  .ml-grid { grid-template-columns: 1fr; }
}
