/* ========== AXØM — Fenøx Design System ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #08090c;
  --bg2: #0c0e14;
  --bg3: #111318;
  --surface: rgba(255,255,255,0.025);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #999;
  --text-dim: #555;
  --white: #f0f0f0;
  --orange: #e8590c;
  --orange-dim: rgba(232,89,12,0.08);
  --orange-glow: rgba(232,89,12,0.15);
  --forge: #e8590c;
  --sonar: #60c7f0;
  --vox: #4ade80;
  --noxi: #f59e0b;
  --display: 'Clash Display', 'Satoshi', -apple-system, sans-serif;
  --font: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: var(--bg); }

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  background: rgba(8,9,12,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo .o { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 450;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.btn-nav {
  background: var(--orange) !important;
  color: var(--bg) !important;
  padding: 8px 20px !important;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: opacity 0.3s var(--ease) !important;
}
.btn-nav:hover { opacity: 0.85; }

/* ========== HERO ========== */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 60px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}
.eyebrow {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  opacity: 0;
}
.hero h1 .hi { color: var(--orange); }
.subtitle {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.7;
  opacity: 0;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
}
.btn-primary {
  background: var(--orange);
  color: var(--bg);
  padding: 14px 32px;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ========== WORLD SECTION ========== */
.world-section {
  padding: 40px 0 100px;
  max-width: 100%;
}
.world-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.world-header {
  text-align: center;
  margin-bottom: 40px;
}
.world-header h2 {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.world-header p { color: var(--text); font-size: 16px; }

.world-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  margin-bottom: 48px;
  align-items: stretch;
}
#world {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg2);
  transition: border-color 0.3s;
  aspect-ratio: 960 / 540;
}
#world:hover { border-color: rgba(255,255,255,0.1); }

/* Feed */
.feed {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}
.feed-header {
  padding: 14px 16px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed-header::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--vox);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.feed-items {
  padding: 8px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feed-items::-webkit-scrollbar { width: 4px; }
.feed-items::-webkit-scrollbar-track { background: transparent; }
.feed-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.feed-item {
  background: var(--bg3);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  animation: feedIn 0.4s var(--ease);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.feed-item:hover { border-color: var(--border); }
@keyframes feedIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.agent-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.forge-tag { background: rgba(232,89,12,0.12); color: var(--forge); }
.sonar-tag { background: rgba(96,199,240,0.12); color: var(--sonar); }
.vox-tag { background: rgba(74,222,128,0.12); color: var(--vox); }
.noxi-tag { background: rgba(245,158,11,0.12); color: var(--noxi); }
.feed-time { color: var(--text-dim); font-size: 10px; font-family: var(--mono); white-space: nowrap; }

/* Agent cards */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.agent-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.4s var(--ease);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.agent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.4s;
}
.agent-card[data-agent="forge"]::before { background: var(--forge); }
.agent-card[data-agent="sonar"]::before { background: var(--sonar); }
.agent-card[data-agent="vox"]::before { background: var(--vox); }
.agent-card[data-agent="noxi"]::before { background: var(--noxi); }
.agent-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.agent-card:hover::before { opacity: 1; }
.agent-card.featured { border-color: rgba(245,158,11,0.2); }

.agent-color {
  width: 32px; height: 3px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.forge-color { background: var(--forge); }
.sonar-color { background: var(--sonar); }
.vox-color { background: var(--vox); }
.noxi-color { background: var(--noxi); }

.agent-card h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.agent-role {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.agent-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
}
.agent-status {
  font-size: 12px;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 6px;
}
.agent-status.online { color: var(--vox); }
.agent-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--vox);
  animation: pulse-dot 2s infinite;
}
.noxi-teaser {
  margin-top: 12px;
  font-size: 12px;
  color: var(--noxi);
  font-style: italic;
  opacity: 0.6;
}

/* ========== HOW IT WORKS ========== */
.how-section {
  padding: 100px 32px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.how-section h2 {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.code-demo {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
  overflow-x: auto;
  position: relative;
}
.code-demo::before {
  content: 'axom.config.ts';
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
pre {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--text);
}
.c-import { color: var(--orange); }
.c-keyword { color: #60a5fa; }
.c-string { color: var(--vox); }
.c-comment { color: var(--text-dim); }

/* ========== PRICING ========== */
.pricing-section {
  padding: 100px 32px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.pricing-section h2 {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.pricing-sub { color: var(--text); margin-bottom: 48px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}
.plan {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: all 0.4s var(--ease);
}
.plan:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.plan.featured-plan { border-color: rgba(232,89,12,0.25); }
.plan.featured-plan:hover { border-color: var(--orange); }
.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  font-family: var(--font);
}
.plan-name {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.plan-price {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}
.plan-price span { font-size: 16px; color: var(--text-dim); font-weight: 400; font-family: var(--font); }
.plan-desc { font-size: 14px; color: var(--text); margin-bottom: 8px; }
.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  margin-bottom: 24px;
}
.plan li {
  font-size: 14px;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.plan li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 12px;
}
.btn-plan, .btn-plan-ghost {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  font-family: var(--font);
}
.btn-plan { background: var(--orange); color: var(--bg); }
.btn-plan:hover { opacity: 0.85; }
.btn-plan-ghost { border: 1px solid var(--border); color: var(--white); }
.btn-plan-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ========== WAITLIST ========== */
.waitlist-section {
  padding: 120px 32px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.waitlist-section h2 {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.waitlist-section > p { color: var(--text); margin-bottom: 32px; font-size: 16px; }
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto 16px;
}
.waitlist-form input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.waitlist-form input::placeholder { color: var(--text-dim); }
.waitlist-form input:focus { border-color: var(--orange); }
.waitlist-form button {
  background: var(--orange);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.3s var(--ease);
  white-space: nowrap;
}
.waitlist-form button:hover { opacity: 0.85; }
.waitlist-note { font-size: 13px; color: var(--text-dim); }
.waitlist-note a { color: var(--text-dim); transition: color 0.2s; }
.waitlist-note a:hover { color: var(--orange); }

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.logo-small {
  font-family: var(--display);
  font-weight: 600;
  color: var(--white);
  font-size: 16px;
}
.logo-small .o { color: var(--orange); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 13px; color: var(--text-dim); }

/* ========== BACKGROUND EFFECTS ========== */
.bg-grain {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .world-container { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .feed { height: 240px; }
}
@media (max-width: 600px) {
  .agents-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: 40px; }
  .waitlist-form { flex-direction: column; }
}
