/* ============================================================
   AI Payware — Agent & ISO Partner Program
   Shared stylesheet. Dark / electric-lime developer identity.
   ============================================================ */

:root {
  --ink: #0a0e0d;
  --ink-soft: #14191a;
  --ink-card: #1a2021;
  --paper: #f4ede0;
  --paper-soft: #ebe1ce;
  --accent: #d4ff3d;
  --accent-deep: #a8d420;
  --copper: #c87333;
  --rose: #e8836b;
  --green: #28c840;
  --line: rgba(244, 237, 224, 0.12);
  --line-strong: rgba(244, 237, 224, 0.25);
  --muted: rgba(244, 237, 224, 0.62);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'ss02';
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 3rem; }

/* ============ NAV ============ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.25rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  background: rgba(10, 14, 13, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.25rem;
  letter-spacing: -0.02em; text-decoration: none; color: var(--paper);
}
.logo-mark { width: 34px; height: 34px; }
.logo em { font-style: italic; color: var(--accent-deep); }
.nav-links { display: flex; gap: 2.25rem; list-style: none; font-size: 0.9rem; font-weight: 500; }
.nav-links a { color: var(--paper); text-decoration: none; opacity: 0.75; transition: opacity 0.2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-cta { display: flex; gap: 0.75rem; align-items: center; }
.nav-toggle { display: none; background: none; border: none; color: var(--paper); cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--paper); border-radius: 2px; transition: 0.3s; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  transition: all 0.2s; border: none; cursor: pointer; font-family: inherit;
}
.btn-ghost { color: var(--paper); background: transparent; border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--line); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-large { padding: 1rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============ SECTION SCAFFOLD ============ */
section { position: relative; }
.section { padding: 6rem 0; border-bottom: 1px solid var(--line); }
.section-light { background: var(--paper); color: var(--ink); }
.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; color: var(--accent-deep);
}
.section-light .eyebrow { border-color: rgba(10,14,13,0.2); color: var(--copper); }
.eyebrow .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; letter-spacing: -0.02em; }
em { font-style: italic; color: var(--accent-deep); }
.section-light em { color: var(--copper); }
.lead { font-size: 1.15rem; color: var(--muted); line-height: 1.6; }
.section-light .lead { color: rgba(10,14,13,0.7); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; padding: 9rem 3rem 5rem; position: relative;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: center;
  border-bottom: 1px solid var(--line); overflow: hidden; max-width: var(--maxw); margin: 0 auto;
}
.hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(212,255,61,0.08) 0%, transparent 60%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -150px; left: -250px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(200,115,51,0.06) 0%, transparent 60%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 0.96; margin-bottom: 1.5rem; }
.hero-sub { font-size: 1.25rem; line-height: 1.5; color: var(--muted); max-width: 560px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; align-items: center; margin-bottom: 3rem; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 2rem; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 0.5rem; }
.hero-meta-item b { color: var(--accent); font-weight: 700; }

/* ===== Hero visual: terminal ===== */
.hero-visual { position: relative; z-index: 2; }
.terminal {
  background: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,255,61,0.05);
  transform: rotate(-1.5deg); transition: transform 0.4s ease;
}
.terminal:hover { transform: rotate(0deg); }
.terminal-bar { display: flex; align-items: center; padding: 0.8rem 1rem; background: var(--ink); border-bottom: 1px solid var(--line); }
.terminal-dots { display: flex; gap: 0.4rem; }
.terminal-dots span { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-title { flex: 1; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--muted); }
.terminal-body { padding: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; line-height: 1.8; }
.code-line { display: block; white-space: pre-wrap; }
.c-keyword { color: #ff7eb6; }
.c-string { color: var(--accent); }
.c-fn { color: #82c8f5; }
.c-prop { color: var(--rose); }
.c-comment { color: var(--muted); font-style: italic; }
.c-number { color: var(--copper); }

/* ============ SPLITS ============ */
.splits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.split-card { background: var(--ink-card); border: 1px solid var(--line); border-radius: 18px; padding: 2.25rem; display: flex; flex-direction: column; transition: 0.25s; }
.split-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.split-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px rgba(212,255,61,0.08); position: relative; }
.split-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--ink); font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; }
.split-tier { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.75rem; }
.split-pct { font-family: 'Fraunces', serif; font-size: 3.5rem; line-height: 1; color: var(--accent); margin-bottom: 0.25rem; }
.split-pct small { font-size: 1rem; color: var(--muted); }
.split-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.split-list { list-style: none; margin-bottom: 1.75rem; flex: 1; }
.split-list li { padding: 0.5rem 0 0.5rem 1.6rem; position: relative; font-size: 0.92rem; border-top: 1px solid var(--line); }
.split-list li:first-child { border-top: none; }
.split-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent-deep); }

/* ============ FEATURE / WHY GRID ============ */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.feature-card { background: var(--ink-card); border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem; transition: 0.25s; }
.feature-card:hover { border-color: var(--line-strong); }
.feature-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(212,255,61,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.3rem; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ============ MARKETS ============ */
.markets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.market-card { background: var(--ink-card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: 0.25s; }
.market-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.market-banner { height: 6px; }
.market-body { padding: 2rem; }
.market-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-deep); margin-bottom: 0.75rem; display: block; }
.market-card h3 { margin-bottom: 0.6rem; }
.market-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.market-stats { display: flex; gap: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.market-stats b { display: block; color: var(--accent); font-size: 1rem; }

/* ============ STATS BAND ============ */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-band .num { font-family: 'Fraunces', serif; font-size: clamp(2.5rem,5vw,3.5rem); color: var(--accent); line-height: 1; }
.stat-band .lbl { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 0.5rem; }

/* ============ PROCESS ============ */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; }
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--ink); background: var(--accent); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 1rem; }
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.88rem; }

/* ============ TOOLS ============ */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tool { background: var(--ink-card); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; transition: 0.25s; }
.tool:hover { border-color: var(--line-strong); }
.tool .ico { font-size: 1.4rem; margin-bottom: 0.75rem; }
.tool h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.tool p { color: var(--muted); font-size: 0.85rem; }

/* ============ CTA / FORM ============ */
.cta-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.form-card { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 2.5rem; }
.form-card h3 { color: var(--ink); margin-bottom: 0.5rem; }
.form-card .lead { color: rgba(10,14,13,0.65); margin-bottom: 1.75rem; font-size: 1rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink); }
input, select, textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid rgba(10,14,13,0.18); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; background: #fff; color: var(--ink); transition: 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(168,212,32,0.2); }
textarea { min-height: 100px; resize: vertical; }
.form-note { font-size: 0.8rem; color: rgba(10,14,13,0.55); margin-top: 0.5rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-msg { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 10px; font-size: 0.9rem; display: none; }
.form-msg.ok { display: block; background: rgba(40,200,64,0.12); color: #1c7a2e; border: 1px solid rgba(40,200,64,0.3); }
.form-msg.err { display: block; background: rgba(232,131,107,0.12); color: #b3402a; border: 1px solid rgba(232,131,107,0.3); }
.cta-side h2 { margin-bottom: 1rem; }
.next-list { list-style: none; margin-top: 1.5rem; }
.next-list li { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.next-list li:first-child { border-top: none; }
.next-list .n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(212,255,61,0.12); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }
.next-list b { display: block; margin-bottom: 0.15rem; }
.next-list span { color: var(--muted); font-size: 0.88rem; }

/* ============ PAGE HERO (interior) ============ */
.page-hero { padding: 11rem 0 4rem; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -150px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(212,255,61,0.07) 0%, transparent 60%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1rem; }
.page-hero p { font-size: 1.2rem; color: var(--muted); max-width: 620px; }

/* ============ FOOTER ============ */
footer { background: var(--ink); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; max-width: 300px; }
.footer-col h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-deep); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.footer-col a:hover { color: var(--paper); }
.footer-net { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--muted); }
.footer-net a { color: var(--accent-deep); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; color: var(--muted); }

/* ============ ANIM ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 8rem; }
  .hero-visual { display: none; }
  .splits-grid, .markets-grid, .feature-grid, .tools-grid, .process, .stat-band, .cta-wrap, .footer-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .container, nav, .hero { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--ink-soft); padding: 1.5rem; gap: 1.25rem; border-bottom: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
