/* AgentSDK — Developer SDK for AI Agent Payments */
/* Typography: IBM Plex Mono + IBM Plex Sans */
/* Palette: Dark charcoal + warm amber */

:root {
  --bg: #111110;
  --bg-card: #1C1C1A;
  --bg-card-hover: #222220;
  --border: #2A2A28;
  --border-light: #3D3D3A;
  --fg: #F2EFE8;
  --fg-muted: #6B6B66;
  --fg-subtle: #3D3D3A;
  --accent: #E8903A;
  --accent-dim: rgba(232, 144, 58, 0.15);
  --accent-border: rgba(232, 144, 58, 0.3);
  --tag-bg: rgba(232, 144, 58, 0.1);
  --tag-fg: #E8903A;
  --code-bg: #0F0F0E;
  --code-string: #A8C4A8;
  --code-number: #C4A8C4;
  --code-keyword: #C4B8A8;
  --code-comment: #5A5A55;
  --code-fn: #A8B8C4;
  --code-class: #E8903A;
  --code-type: #C4A8A8;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 17, 16, 0.92);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.logo-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

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

.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--fg);
}

/* SECTION UTILITIES */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-header {
  margin-bottom: 56px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 640px;
}

/* HERO */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 20px;
}

.eyebrow-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 5px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 20px;
}

.hero-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-terminal {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #141413;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #FF5F57; }
.dot-amber { background: #FEBC2E; }
.dot-green { background: #28C840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin-left: 8px;
}

.terminal-code {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg);
  overflow-x: auto;
  white-space: pre;
}

.t-keyword { color: #C4B8A8; }
.t-string { color: #A8C4A8; }
.t-number { color: #C4A8C4; }
.t-comment { color: #5A5A55; font-style: italic; }
.t-fn { color: #A8B8C4; }
.t-class { color: #E8903A; }

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  width: 100%;
}

.hero-svg {
  width: 100%;
  height: auto;
}

.hero-stats {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px;
}

.stat:first-child { padding-left: 0; }

.stat-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* QUICKSTART */
.quickstart {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.quickstart-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.qs-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.qs-step:last-child { border-bottom: none; }

.qs-number {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}

.qs-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.qs-desc {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.qs-code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.qs-code code, .qs-code-result code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  white-space: pre;
  line-height: 1.7;
}

/* MODULES */
.modules {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.module-card {
  background: var(--bg-card);
  padding: 32px;
  transition: background 0.2s;
}

.module-card:hover {
  background: var(--bg-card-hover);
}

.module-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}

.module-icon svg {
  width: 100%;
  height: 100%;
}

.module-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.module-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.module-code {
  background: var(--code-bg);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.module-code code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

/* FRAMEWORKS */
.frameworks {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.frameworks-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.framework-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  transition: background 0.15s;
}

.framework-item:last-child { border-bottom: none; }

.framework-item:hover { background: var(--bg-card-hover); }

.framework-icon {
  width: 32px;
  height: 32px;
}

.framework-icon svg {
  width: 100%;
  height: 100%;
}

.framework-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.framework-desc {
  font-size: 13px;
  color: var(--fg-muted);
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-ready {
  background: rgba(168, 196, 168, 0.1);
  color: #A8C4A8;
  border: 1px solid rgba(168, 196, 168, 0.2);
}

.status-soon {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.frameworks-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.frameworks-cta-text {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.frameworks-cta-code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.frameworks-cta-code code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  white-space: pre;
  line-height: 1.7;
}

/* PRINCIPLES */
.principles {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.principle {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 32px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg-card);
  align-items: start;
}

.principle:nth-child(2n) {
  border-right: none;
}

.principle:nth-child(3),
.principle:nth-child(4) {
  border-bottom: none;
}

.principle-number {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  color: var(--fg-subtle);
  line-height: 1;
  padding-top: 2px;
}

.principle-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.principle-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
}

/* CLOSING */
.closing {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.closing .section-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: center;
}

.closing-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 5px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.closing-headline {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--fg);
  margin-bottom: 16px;
}

.closing-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

.closing-terminal {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.closing-terminal .terminal-code {
  padding: 20px 24px;
}

.closing-svg {
  width: 100%;
  height: auto;
}

/* FOOTER */
.footer {
  padding: 48px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--fg); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-right { display: none; }
  .hero-stats {
    gap: 0;
    flex-wrap: wrap;
  }
  .stat { padding: 0 20px; }
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle { border-right: none; }
  .principle:nth-child(3) { border-bottom: 1px solid var(--border); }
  .principle:nth-child(4) { border-bottom: none; }
  .frameworks-cta { grid-template-columns: 1fr; }
  .closing .section-inner { grid-template-columns: 1fr; }
  .closing-visual { display: none; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .section-inner, .hero-grid { padding: 0 20px; }
  .hero-stats { padding: 0 20px; }
  .modules-grid { grid-template-columns: 1fr; }
  .framework-item { grid-template-columns: 40px 1fr; }
  .framework-status { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .stat { padding: 0 16px; }
}