/* ── Cinnacode — shared site styles (dark theme, v2) ──────────────────── */
/* Dark, VS Code-inspired base with a warm gradient accent. Every page links
   this one file — edit here, it updates everywhere. */

:root {
  --bg: #0B0D10;
  --panel: #14171B;
  --panel-2: #191D22;
  --line: #24282E;
  --text: #EDEEF0;
  --text-dim: #9BA1A8;
  --text-faint: #6B7178;

  --accent-1: #FF7A45;
  --accent-2: #FFC145;
  --accent-solid: #FF8A50;
  --blue: #5FA8FF;
  --error: #F0654A;
  --error-bg: #2A1714;
  --success: #5FCB8E;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: 'Inter', sans-serif; font-weight: 700; margin: 0; letter-spacing: -0.02em; color: var(--text); }
.mono { font-family: 'IBM Plex Mono', monospace; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; width: 100%; }

.gradient-text {
  background: linear-gradient(100deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
nav.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #1A1006;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-dim); }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  padding: 9px 18px; background: var(--text); color: var(--bg);
  border-radius: 6px; font-weight: 600; font-size: 14px;
}
.nav-cta:hover { background: #fff; text-decoration: none; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 96px 0 76px; border-bottom: 1px solid var(--line); }
.eyebrow, .section-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--accent-solid);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px;
}
.hero h1 { font-size: 58px; line-height: 1.06; max-width: 780px; }
.hero p { margin-top: 22px; font-size: 18px; color: var(--text-dim); max-width: 540px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  padding: 14px 26px;
  background: linear-gradient(100deg, var(--accent-1), var(--accent-2));
  color: #1A1006; border: none; border-radius: 7px;
  font-weight: 700; font-size: 15px; cursor: pointer; display: inline-block;
}
.btn-primary:hover { text-decoration: none; opacity: 0.92; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  padding: 13px 22px; border: 1px solid var(--line); color: var(--text-dim);
  border-radius: 7px; font-size: 15px; background: transparent;
}
.btn-secondary:hover { border-color: var(--text-faint); color: var(--text); text-decoration: none; }

.btn-outline {
  padding: 12px 22px; background: transparent; border: 1px solid var(--blue); color: var(--blue);
  border-radius: 7px; font-weight: 600; white-space: nowrap;
}
.btn-outline:hover { background: rgba(95,168,255,0.1); text-decoration: none; }

/* ── Ticker ───────────────────────────────────────────────────────────── */
.ticker {
  display: flex; gap: 40px; padding: 18px 0; border-bottom: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--text-dim); flex-wrap: wrap;
}
.ticker span { color: var(--accent-solid); font-weight: 600; }

/* ── Features ─────────────────────────────────────────────────────────── */
.features { padding: 84px 0; border-bottom: 1px solid var(--line); }
.features h2 { font-size: 34px; max-width: 560px; margin-bottom: 52px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.feature-card { background: var(--panel); padding: 30px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 14px; margin: 0; }
.feature-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,138,80,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 16px;
}

/* ── Pricing ──────────────────────────────────────────────────────────── */
.pricing { padding: 84px 0; border-bottom: 1px solid var(--line); }
.pricing h2 { font-size: 34px; max-width: 560px; }
.pricing > .wrap > p.lead { color: var(--text-dim); max-width: 520px; margin-top: 14px; margin-bottom: 50px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 32px;
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--accent-solid); background: var(--panel-2); position: relative; }
.price-card.featured::before {
  content: "MOST POPULAR";
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(100deg, var(--accent-1), var(--accent-2));
  color: #1A1006; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; padding: 4px 10px; border-radius: 4px;
}
.price-card h3 { font-size: 18px; color: var(--text-dim); font-weight: 600; margin-bottom: 14px; }
.price-amount { font-size: 40px; font-weight: 800; margin-bottom: 4px; }
.price-credits { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--accent-solid); margin-bottom: 20px; }
.price-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; flex-grow: 1; }
.price-buy {
  width: 100%; padding: 12px; border: none; border-radius: 7px; font-size: 14px; font-weight: 700;
  cursor: pointer; background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
}
.price-card.featured .price-buy {
  background: linear-gradient(100deg, var(--accent-1), var(--accent-2)); color: #1A1006; border: none;
}
.price-buy:hover { opacity: 0.9; }
.price-buy:disabled { opacity: 0.4; cursor: not-allowed; }
.pricing-note { margin-top: 22px; font-size: 13px; color: var(--text-faint); font-family: 'IBM Plex Mono', monospace; }

/* ── Enterprise ───────────────────────────────────────────────────────── */
.enterprise { padding: 84px 0; border-bottom: 1px solid var(--line); }
.enterprise-box {
  border: 1px solid var(--line); border-radius: 12px; padding: 44px; background: var(--panel);
  display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap;
}
.enterprise-box h3 { font-size: 23px; margin-bottom: 8px; }
.enterprise-box p { color: var(--text-dim); max-width: 440px; margin: 0; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer.site-footer { margin-top: auto; padding: 36px 0; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { font-size: 12px; color: var(--text-faint); font-family: 'IBM Plex Mono', monospace; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ── Legal / article pages ────────────────────────────────────────────── */
.legal-page { padding: 60px 0 80px; }
.legal-page .updated { font-size: 13px; color: var(--text-faint); font-family: 'IBM Plex Mono', monospace; margin-bottom: 40px; }
.legal-page h1 { font-size: 38px; margin-bottom: 8px; }
.legal-page h2 { font-size: 21px; margin-top: 40px; margin-bottom: 14px; }
.legal-page p, .legal-page li { color: var(--text-dim); font-size: 15px; margin-bottom: 14px; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page strong { color: var(--text); }
.legal-callout { background: var(--error-bg); border: 1px solid var(--error); border-radius: 8px; padding: 22px 24px; margin: 24px 0; }
.legal-callout p { color: var(--text); margin: 0; }
.legal-callout .label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--error); margin-bottom: 10px; display: block; }
.legal-page a { text-decoration: underline; }

/* ── Forms ────────────────────────────────────────────────────────────── */
main.form-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.panel { width: 100%; max-width: 440px; }
.panel h1 { font-size: 30px; margin-bottom: 10px; }
.panel > p.sub { color: var(--text-dim); margin-bottom: 32px; font-size: 15px; }

label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
input[type="text"], input[type="email"], select {
  width: 100%; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 7px; color: var(--text); font-size: 15px; font-family: 'Inter', sans-serif; margin-bottom: 20px;
}
input:focus, select:focus { outline: none; border-color: var(--accent-solid); }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; font-size: 13px; color: var(--text-dim); }
.checkbox-row input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent-solid); }
.checkbox-row a { color: var(--blue); }

.error-box { display: none; background: var(--error-bg); border: 1px solid var(--error); color: #FF9C87; padding: 13px 15px; border-radius: 7px; font-size: 14px; margin-bottom: 20px; }
.terms-note { margin-top: 16px; font-size: 12px; color: var(--text-faint); text-align: center; }

/* ── Success state ────────────────────────────────────────────────────── */
.success-panel { display: none; }
.success-panel .success-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 24px; color: #1A1006;
}
.key-box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 22px 0; }
.key-label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 9px; }
.key-value { font-family: 'IBM Plex Mono', monospace; font-size: 13px; word-break: break-all; color: var(--accent-solid); line-height: 1.5; margin-bottom: 13px; }
.copy-btn { padding: 8px 15px; background: transparent; border: 1px solid var(--blue); color: var(--blue); border-radius: 6px; font-size: 13px; cursor: pointer; }
.copy-btn:hover { background: rgba(95,168,255,0.1); }
.copy-btn.copied { border-color: var(--success); color: var(--success); background: transparent; }

.steps { margin: 26px 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 34px; position: relative; margin-bottom: 16px; font-size: 14px; color: var(--text-dim); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; width: 23px; height: 23px;
  background: var(--panel); border: 1px solid var(--line); color: var(--accent-solid);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
}
.steps code {
  background: var(--panel);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--accent-solid);
  color: var(--accent-solid);
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}
.credits-badge { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--accent-solid); margin-bottom: 6px; }

/* ── Contact page ─────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.contact-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.contact-card .label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-solid); margin-bottom: 10px; }
.contact-card p { color: var(--text-dim); margin: 0 0 6px; }
.contact-card .value { color: var(--text); font-size: 16px; font-weight: 600; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 38px; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .enterprise-box { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
