/* OnlyAI — Brutalist Terminal Cyber */
:root {
  --bg: #0A0B0F;
  --bg-2: #11131A;
  --bg-3: #181B24;
  --bg-card: #14171F;
  --line: #2B2F3C;
  --line-strong: #3A3F50;
  --text: #EDEEF2;
  --text-2: #A8ADBA;
  --text-3: #6E7385;
  --cyan: #00FFD1;
  --cyan-2: #00CCA8;
  --cyan-bg: rgba(0,255,209,0.08);
  --cyan-glow: rgba(0,255,209,0.35);
  --magenta: #FF006E;
  --magenta-bg: rgba(255,0,110,0.08);
  --display: 'Archivo Black', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Bricolage Grotesque', sans-serif;
  --max-w: 1320px;
  --gutter: 28px;
}
*,*::before,*::after { box-sizing: border-box; margin:0; padding:0; }
html { background: var(--bg); }
body {
  font-family: var(--sans);
  background: transparent;
  color: var(--text);
  line-height: 1.55;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
img,svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
::selection { background: var(--cyan); color: var(--bg); }

#grid-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5; }
body > *:not(#grid-bg) { position: relative; z-index: 1; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,11,15,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 16px;
  padding: 8px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar::-webkit-scrollbar { display: none; }
.topbar-pill { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; flex-shrink: 0; }
.topbar-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.topbar-key { color: var(--text-3); }
.topbar-val { color: var(--cyan); font-weight: 600; }
.topbar-spacer { flex: 1; min-width: 16px; }
.topbar-cta { color: var(--magenta) !important; border: 1px solid var(--magenta); padding: 4px 12px; transition: all 0.2s; }
.topbar-cta:hover { background: var(--magenta); color: var(--bg) !important; }
@media (max-width: 720px) { .hide-mobile { display: none; } }

/* Nav */
.nav {
  position: sticky; top: 33px; z-index: 40;
  background: rgba(17,19,26,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.03em;
  display: inline-flex; align-items: baseline;
  text-transform: uppercase;
}
.brand-glyph { color: var(--cyan); margin-right: 8px; font-size: 16px; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.brand-only { color: var(--text); }
.brand-ai { color: var(--magenta); }
.brand-tag { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--text-3); margin-left: 10px; text-transform: lowercase; }

.nav-links { display: flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 13px; }
.nav-links a { padding: 8px 12px; color: var(--text-2); transition: all 0.15s; }
.nav-links a:hover { color: var(--cyan); }
.nav-cta a { color: var(--cyan) !important; border: 1px solid var(--cyan); letter-spacing: 0.06em; }
.nav-cta a:hover { background: var(--cyan); color: var(--bg) !important; }
@media (max-width: 820px) { .nav-links li:not(.nav-cta) { display: none; } }

/* Hero */
.hero { padding: 80px var(--gutter) 0; max-width: var(--max-w); margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-bottom: 80px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } .hero { padding: 56px var(--gutter) 0; } }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.16em;
  margin-bottom: 32px;
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase;
}
.eyebrow-dot { width: 8px; height: 8px; background: var(--magenta); }

.hero-title {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 144px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-line-1, .hero-line-2, .hero-line-3 { display: block; }
.hero-line-2 em { font-style: normal; color: var(--cyan); position: relative; }
.hero-line-2 em::after { content: ''; position: absolute; inset: -2px; right: -8px; background: var(--cyan); opacity: 0.18; filter: blur(20px); z-index: -1; }
.hero-line-3 { color: var(--text-3); font-size: 0.7em; }

.hero-lead {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 36px;
}
.lead-mark { background: var(--cyan-bg); color: var(--cyan); padding: 1px 8px; font-weight: 600; }

.hero-cta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary, .btn-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.18s;
}
.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  padding: 16px 28px;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: var(--magenta);
  color: var(--bg);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--cyan);
}
.btn-primary.big { padding: 22px 40px; font-size: 16px; }
.btn-link { color: var(--text); border-bottom: 1px solid var(--text); padding-bottom: 4px; }
.btn-link:hover { color: var(--cyan); border-color: var(--cyan); }
.btn-link.big { font-size: 16px; }

.hero-feats { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; }
.feat { display: inline-flex; gap: 8px; align-items: center; color: var(--text-3); }
.feat-key { color: var(--magenta); font-weight: 600; }
.feat-val { color: var(--text-2); }

/* REPL */
.repl {
  background: #000;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  box-shadow: 4px 4px 0 var(--cyan-bg), 0 30px 60px rgba(0,0,0,0.5);
  position: relative;
}
.repl::before { content: ''; position: absolute; inset: -1px; border: 1px solid var(--cyan); pointer-events: none; opacity: 0.3; }
.repl-bar { background: var(--bg-2); padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 11px; }
.repl-dot { width: 11px; height: 11px; display: inline-block; }
.repl-dot.r { background: #FF5F56; }
.repl-dot.y { background: #FFBD2E; }
.repl-dot.g { background: #27C93F; }
.repl-title { color: var(--text-3); margin-left: 12px; flex: 1; }
.repl-status { display: inline-flex; gap: 6px; align-items: center; color: var(--cyan); font-weight: 600; }
.repl-led { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 6px var(--cyan); animation: pulse 1.4s ease-in-out infinite; }
.repl-body { padding: 18px; font-size: 13px; color: var(--text-2); line-height: 1.6; min-height: 280px; max-height: 360px; overflow: hidden; }
.repl-body .p-user { color: var(--cyan); }
.repl-body .p-asst { color: var(--text); }
.repl-body .p-meta { color: var(--text-3); font-size: 11px; }
.repl-body .p-key { color: var(--magenta); }
.repl-input { border-top: 1px solid var(--line); padding: 14px 18px; display: flex; align-items: center; gap: 10px; font-size: 13px; background: var(--bg-2); }
.repl-prompt { color: var(--cyan); font-weight: 700; }
.repl-typed { color: var(--text); }
.repl-cursor { color: var(--cyan); animation: blink 1s steps(2) infinite; }

/* Scroll marquee */
.scroll-marquee {
  background: var(--cyan);
  color: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding: 14px 0;
  margin: 0 calc(-1 * var(--gutter));
  white-space: nowrap;
}
.scroll-track { display: inline-block; animation: scroll-x 40s linear infinite; padding-left: 100%; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Sections */
.section { max-width: var(--max-w); margin: 0 auto; padding: 120px var(--gutter); }
@media (max-width: 720px) { .section { padding: 80px var(--gutter); } }
.section-mark { font-family: var(--mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.06em; margin-bottom: 16px; text-transform: uppercase; }
.section-title {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 28px;
}
.section-title em { display: block; font-style: normal; color: var(--magenta); font-size: 0.68em; margin-top: 8px; }
.section-lead { font-size: 18px; color: var(--text-2); max-width: 640px; margin-bottom: 56px; line-height: 1.6; }

/* Stack */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
@media (max-width: 980px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stack-grid { grid-template-columns: 1fr; } }
.stack-card { padding: 36px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.25s; }
.stack-card:nth-child(3n) { border-right: none; }
.stack-card:nth-last-child(-n+3) { border-bottom: none; }
@media (max-width: 980px) { .stack-card { border-right: none !important; border-bottom: 1px solid var(--line) !important; } }
.stack-card:hover { background: var(--cyan-bg); }
.stack-card:hover .stack-name { color: var(--cyan); }
.stack-tag { font-family: var(--mono); font-size: 11px; color: var(--magenta); letter-spacing: 0.08em; margin-bottom: 16px; font-weight: 600; }
.stack-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
  transition: color 0.2s;
}
.stack-desc { font-size: 14.5px; color: var(--text-2); line-height: 1.6; }

/* Agents */
.agents-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.agent { display: grid; grid-template-columns: 160px 1fr; gap: 36px; padding: 36px 0; border-bottom: 1px solid var(--line); transition: padding-left 0.3s, background 0.2s; }
.agent:hover { padding-left: 24px; background: var(--bg-2); }
.agent-id { font-family: var(--mono); font-size: 13px; color: var(--magenta); font-weight: 600; }
.agent-title {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.agent-desc { font-size: 16px; color: var(--text-2); line-height: 1.6; max-width: 720px; margin-bottom: 16px; }
.agent-meta { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.agent-meta span::before { content: '› '; color: var(--cyan); margin-right: 6px; font-weight: 700; }
@media (max-width: 720px) { .agent { grid-template-columns: 1fr; gap: 12px; } }

/* Cases */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .cases-grid { grid-template-columns: 1fr; } }
.case { background: var(--bg-card); border: 1px solid var(--line); padding: 36px; transition: all 0.25s; display: flex; flex-direction: column; gap: 16px; }
.case:hover { border-color: var(--cyan); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--cyan); }
.case-num { font-family: var(--mono); font-size: 11px; color: var(--magenta); letter-spacing: 0.1em; font-weight: 600; }
.case-title { font-family: var(--display); font-size: 24px; font-weight: 900; line-height: 1.1; text-transform: uppercase; color: var(--text); }
.case-text { font-size: 14.5px; color: var(--text-2); line-height: 1.6; flex-grow: 1; }
.case-stat { border-top: 1px solid var(--line); padding-top: 18px; display: flex; align-items: baseline; gap: 12px; }
.case-stat-num { font-family: var(--display); font-size: 36px; font-weight: 900; color: var(--cyan); letter-spacing: -0.03em; line-height: 1; }
.case-stat-lbl { font-family: var(--mono); font-size: 11px; color: var(--text-3); line-height: 1.4; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan { padding: 40px 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; transition: background 0.25s; position: relative; }
.plan:last-child { border-right: none; }
.plan:hover { background: var(--bg-2); }
.plan-featured { background: var(--magenta-bg); border-left: 4px solid var(--magenta); }
.plan-badge { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--magenta); letter-spacing: 0.1em; }
.plan-tier { font-family: var(--mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.08em; font-weight: 600; }
.plan-title { font-family: var(--display); font-size: 22px; font-weight: 900; text-transform: uppercase; color: var(--text); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.plan-amount { font-family: var(--display); font-size: 56px; font-weight: 900; color: var(--text); letter-spacing: -0.04em; line-height: 1; }
.plan-currency { font-family: var(--mono); font-size: 14px; color: var(--text-3); }
.plan-billing { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.plan-features { margin: 18px 0 24px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-2); flex-grow: 1; }
.plan-features li { position: relative; padding-left: 22px; }
.plan-features li::before { content: '+'; position: absolute; left: 4px; top: -2px; color: var(--cyan); font-family: var(--mono); font-weight: 700; font-size: 16px; }
.plan-cta { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--cyan); letter-spacing: 0.04em; border: 1px solid var(--cyan); padding: 12px 18px; text-align: center; transition: all 0.2s; }
.plan-cta:hover { background: var(--cyan); color: var(--bg); }
.plan-featured .plan-cta { background: var(--magenta); border-color: var(--magenta); color: var(--bg); }
.plan-featured .plan-cta:hover { background: var(--cyan); border-color: var(--cyan); }

/* CTA */
.section-cta { text-align: center; }
.cta-frame { max-width: 880px; margin: 0 auto; border: 1px solid var(--cyan); padding: 80px 48px; background: var(--bg-2); position: relative; }
.cta-frame::before, .cta-frame::after { content: ''; position: absolute; width: 24px; height: 24px; border: 2px solid var(--cyan); }
.cta-frame::before { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.cta-frame::after { bottom: -3px; right: -3px; border-left: none; border-top: none; }
@media (max-width: 720px) { .cta-frame { padding: 56px 28px; } }
.cta-mark { font-family: var(--mono); font-size: 12px; color: var(--magenta); letter-spacing: 0.12em; margin-bottom: 24px; }
.cta-title { font-family: var(--display); font-size: clamp(40px, 6vw, 84px); font-weight: 900; line-height: 0.95; text-transform: uppercase; color: var(--text); margin-bottom: 28px; letter-spacing: -0.04em; }
.cta-line { display: block; }
.cta-line em { font-style: normal; color: var(--cyan); }
.cta-desc { font-size: 17px; color: var(--text-2); max-width: 540px; margin: 0 auto 36px; line-height: 1.6; }
.cta-actions { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.cta-meta { font-family: var(--mono); font-size: 12px; color: var(--text-3); }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px var(--gutter) 24px; margin-top: 80px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-brand { font-family: var(--display); font-size: clamp(48px, 8vw, 96px); font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 56px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-bottom: 56px; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr; gap: 28px; } }
.footer-cols > div { display: flex; flex-direction: column; gap: 6px; }
.footer-label { font-family: var(--mono); font-size: 11px; color: var(--magenta); letter-spacing: 0.1em; font-weight: 600; margin-bottom: 8px; }
.footer-cols a { font-family: var(--mono); font-size: 13px; color: var(--text-2); padding: 4px 0; transition: color 0.2s; }
.footer-cols a:hover { color: var(--cyan); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--text-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-system .status-on { color: var(--cyan); font-weight: 600; }

@keyframes reveal-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.section, .stack-card, .agent, .case, .plan { animation: reveal-up 0.7s cubic-bezier(0.2,0.8,0.2,1) both; }
.stack-card:nth-child(2), .case:nth-child(2), .plan:nth-child(2) { animation-delay: 0.06s; }
.stack-card:nth-child(3), .case:nth-child(3), .plan:nth-child(3) { animation-delay: 0.12s; }
.stack-card:nth-child(4) { animation-delay: 0.18s; }
.stack-card:nth-child(5) { animation-delay: 0.24s; }
.stack-card:nth-child(6) { animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { .section, .stack-card, .agent, .case, .plan, .scroll-track { animation: none !important; } }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }
