/* ── Base ─────────────────────────────────────────────────── */

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

:root {
  --bg: #f3f2ef;
  --fg: #1a1a1a;
  --card: #ffffff;
  --accent: #9177CF;
  --accent-dark: #7b5fbf;
  --accent-light: rgba(145, 119, 207, 0.10);
  --accent-glow: rgba(145, 119, 207, 0.35);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --muted: #74675a;
  --radius: 10px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'Roboto Mono', 'SF Mono', monospace;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ──────────────────────────────────────────────── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ── Nav ─────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--fg);
  position: relative;
}

.nav-logo::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
}

.nav-links { display: flex; gap: 28px; align-items: center; }

.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  padding: 80px 0 64px;
  max-width: 720px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 12px; margin-bottom: 44px; }

.stats-row { display: flex; gap: 12px; flex-wrap: wrap; }

.stat-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  background: var(--card);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.stat-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Section labels ──────────────────────────────────────── */

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--fg);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Glow effect for primary CTA on landing page */
.btn-glow {
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: btn-pulse 2.5s ease-in-out infinite;
}

.btn-glow:hover {
  box-shadow: 0 4px 20px var(--accent-glow);
  animation: none;
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-sm { padding: 8px 16px; font-size: 12px; }

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover { opacity: 0.85; }

/* ── Cards ───────────────────────────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  border-color: rgba(145, 119, 207, 0.25);
  box-shadow: 0 4px 24px rgba(145, 119, 207, 0.08);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.card-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Feature grid ────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Steps row ───────────────────────────────────────────── */

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-item {
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.step-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.step-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── API intro ───────────────────────────────────────────── */

.api-intro {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ── Divider ─────────────────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}

/* ── Section ─────────────────────────────────────────────── */

.section { padding: 0; }

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
}

/* ── Code block ──────────────────────────────────────────── */

.code-block {
  background: var(--fg);
  color: #e0e0e0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  padding: 28px;
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: pre;
  border: 1px solid rgba(255,255,255,0.06);
}

.code-block .c-comment { color: #6a6a6a; }
.code-block .c-string { color: #a8db8f; }
.code-block .c-key { color: #c4a7e7; }

/* ── Tabs ────────────────────────────────────────────────── */

.tab-group {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--card);
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-btn.active {
  background: var(--fg);
  color: #fff;
}

.tab-btn:hover:not(.active) {
  background: rgba(0,0,0,0.04);
}

/* ── Upload zone ─────────────────────────────────────────── */

.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.upload-zone:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 4px rgba(145, 119, 207, 0.06);
}

.upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 4px rgba(145, 119, 207, 0.12);
  border-style: solid;
}

.upload-zone-prompt {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.upload-zone-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.upload-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 6px;
  margin-top: 12px;
  display: none;
}

/* ── Toggle ──────────────────────────────────────────────── */

.toggle-group {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
}

.toggle-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 7px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.toggle-btn.active {
  background: var(--fg);
  color: #fff;
}

.toggle-btn:hover:not(.active) {
  background: rgba(0,0,0,0.04);
}

/* ── Result box ──────────────────────────────────────────── */

.result-box {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  background: #fafaf8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-height: 560px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--fg);
}

/* ── Status badges ───────────────────────────────────────── */

.status-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 100px;
  transition: background 0.2s ease;
}

.status-badge.queued    { background: #e8e8e6; color: #666; }
.status-badge.processing { background: var(--accent-light); color: var(--accent); }
.status-badge.done      { background: rgba(74,167,111,0.12); color: #2d8a4e; }
.status-badge.error     { background: rgba(220,60,60,0.10); color: #c53030; }

/* ── Spinner ─────────────────────────────────────────────── */

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Job list ────────────────────────────────────────────── */

.job-list { display: flex; flex-direction: column; gap: 2px; }

.job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 13px;
}

.job-item:hover { background: rgba(0,0,0,0.03); }

.job-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.job-item-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
  margin-left: 12px;
}

/* ── App layout ──────────────────────────────────────────── */

.app-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  padding: 40px 0 64px;
  align-items: start;
}

.panel-stack { display: flex; flex-direction: column; gap: 24px; }

.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.result-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.result-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.status-text {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  min-height: 22px;
  display: flex;
  align-items: center;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.file-info {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* ── Specs grid ──────────────────────────────────────────── */

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

.spec-cell {
  background: var(--card);
  padding: 22px 26px;
  transition: background 0.2s ease;
}

.spec-cell:hover {
  background: #fafaf8;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
}

.spec-value {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
}

.footer-text {
  font-size: 13px;
  color: var(--muted);
}

.footer-logo {
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: -0.3px;
  position: relative;
}

.footer-logo::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 1px;
  vertical-align: super;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.hidden { display: none !important; }

/* ── Structured JSON blocks ─────────────────────────────── */

.structured-blocks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.struct-block {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
}

.struct-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.struct-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.struct-bbox {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.struct-content {
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.struct-empty {
  color: var(--muted);
  font-style: italic;
}

.struct-table {
  overflow-x: auto;
}

.struct-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.struct-table table td,
.struct-table table th {
  border: 1px solid #e5d9a0;
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}

.struct-table table tr:first-child td,
.struct-table table th {
  font-weight: 600;
  background: rgba(252, 211, 77, 0.15);
}

.struct-formula {
  font-family: var(--font-mono);
  font-style: italic;
}

.struct-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ── Data table (table view) ─────────────────────────────── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
}

.data-table thead th {
  background: var(--fg);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
  padding: 10px 14px;
  text-align: left;
  border: none;
}

.data-table tbody td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.data-table tbody tr:hover {
  background: rgba(0,0,0,0.02);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Fade-in animations ──────────────────────────────────── */

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

.fade-in {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in-visible {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1.fade-in-visible {
  animation-delay: 0.08s;
}

.fade-in-delay-2.fade-in-visible {
  animation-delay: 0.16s;
}

.fade-in-delay-3.fade-in-visible {
  animation-delay: 0.24s;
}

.fade-in-delay-4.fade-in-visible {
  animation-delay: 0.32s;
}

/* ── Pricing cards ───────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-top: 3px solid var(--accent);
  box-shadow: 0 4px 24px rgba(145, 119, 207, 0.10);
}

.pricing-name {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.pricing-period {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.pricing-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}

.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #2d8a4e;
  font-weight: 700;
  font-size: 14px;
}

.pricing-cta {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* ── Comparison section ─────────────────────────────────── */

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.comparison-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.comparison-card.legacy {
  border-color: rgba(220, 60, 60, 0.20);
  background: linear-gradient(to bottom, rgba(220, 60, 60, 0.03), var(--card));
}

.comparison-card.modern {
  border-color: rgba(45, 138, 78, 0.20);
  background: linear-gradient(to bottom, rgba(45, 138, 78, 0.03), var(--card));
}

.comparison-header {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.comparison-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.comparison-price-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.comparison-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
}

.comparison-total-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.legacy-total {
  color: #c53030;
}

.modern-total {
  color: #2d8a4e;
}

.comparison-callout {
  background: var(--accent-light);
  border: 1px solid rgba(145, 119, 207, 0.18);
  border-radius: var(--radius);
  padding: 20px 28px;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  color: var(--fg);
}

/* ── Consulting cards ───────────────────────────────────── */

.consulting-subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
}

.consulting-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.consulting-card {
  display: flex;
  flex-direction: column;
}

.consulting-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.consulting-price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

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

/* ── Signup form ────────────────────────────────────────── */

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.signup-input {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.signup-input:focus {
  border-color: var(--accent);
}

.signup-input::placeholder {
  color: var(--muted);
}

/* ── CTA section ────────────────────────────────────────── */

.cta-section {
  background: var(--fg);
  border-radius: var(--radius);
  padding: 64px 48px;
  text-align: center;
  margin-bottom: 0;
}

.cta-section .cta-title {
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.cta-section .cta-text {
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cta-signup {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.cta-input {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  outline: none;
  flex: 1;
  min-width: 0;
  transition: border-color 0.2s, background 0.2s;
}

.cta-input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}

.cta-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.cta-section .btn-primary {
  background: #ffffff;
  color: var(--fg);
}

.cta-section .btn-primary:hover {
  opacity: 0.92;
}

.cta-section .btn-secondary {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.cta-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Try-it section ─────────────────────────────────────── */

.try-it-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.try-it-dropzone {
  padding: 56px 40px;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease;
  border-bottom: 1px solid var(--border);
}

.try-it-dropzone:hover {
  background: var(--accent-light);
}

.try-it-dropzone.drag-over {
  background: var(--accent-light);
}

.try-it-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.try-it-prompt {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.try-it-hint {
  font-size: 14px;
  color: var(--muted);
}

.try-it-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.try-it-feature {
  background: var(--card);
  padding: 20px 24px;
  transition: background 0.2s ease;
}

.try-it-feature:hover {
  background: #fafaf8;
}

.try-it-feature-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 4px;
}

.try-it-feature-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.try-it-open {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px;
  color: var(--accent);
  font-weight: 600;
  background: var(--card);
  border-top: 1px solid var(--border);
  transition: background 0.2s ease, color 0.2s ease;
}

.try-it-open:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
}

/* ── API examples wrapper ───────────────────────────────── */

.api-examples {
  margin-top: 40px;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .feature-grid, .steps-row { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .specs-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .hero { padding: 48px 0 40px; }
  .hero-actions { flex-direction: column; }
  .stats-row { gap: 8px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .consulting-grid { grid-template-columns: 1fr; }
  .try-it-features { grid-template-columns: 1fr; }
  .try-it-dropzone { padding: 40px 24px; }
  .cta-section { padding: 48px 24px; }
  .cta-section .cta-title { font-size: 24px; }
  .cta-actions { flex-direction: column; }
}
