/* ==================================================================
   AgniCycle shared design system
   Linked from every page via <link rel="stylesheet" href="/assets/site.css">.
   Single source of truth for tokens + components that were previously
   hand-copied (and drifting) inside each page's own <style> block.
   Page-specific CSS (hero canvases, per-product layouts, accordions,
   etc.) stays local to each page.
   ================================================================== */

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

:root {
  --bg:        #07090f;
  --bg2:       #0d1320;
  --surface:   #111827;
  --surface2:  #1a2235;
  --surface3:  rgba(255,255,255,0.08);
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --text:      #e2e8f0;
  --text2:     #94a3b8;
  --text3:     rgba(255,255,255,0.35);
  --muted:     #64748b;

  --fire:      #f97316;
  --fire-dim:  #ea580c;
  --fire-glow: rgba(249,115,22,0.18);
  --teal:      #0ea5b7;
  --teal-dim:  rgba(14,165,183,0.15);
  --ev:        #10b981;
  --ev-dim:    rgba(16,185,129,0.15);
  --gold:      #fbbf24;
  --green:     #22c55e;

  /* one radius scale, consumed by every shared component below */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;

  /* one shadow system: base + per-accent glow, same formula each time */
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --shadow-fire: 0 0 40px rgba(249,115,22,0.3);
  --shadow-teal: 0 0 40px rgba(14,165,183,0.3);
  --shadow-ev:   0 0 40px rgba(16,185,129,0.3);

  /* one container-width scale instead of accidental one-off values:
     wide = grids / multi-column sections, prose = reading-width copy */
  --container-wide:  1100px;
  --container-prose: 720px;
}

[data-theme="light"] {
  --bg:        #f5f7fa;
  --bg2:       #edf1f7;
  --surface:   #ffffff;
  --surface2:  #edf2f8;
  --surface3:  rgba(0,0,0,0.06);
  --border:    rgba(0,0,0,0.08);
  --border2:   rgba(0,0,0,0.13);
  --text:      #1e293b;
  --text2:     #475569;
  --text3:     #94a3b8;
  --muted:     #64748b;
  --shadow:      0 4px 24px rgba(0,0,0,0.07);
  --shadow-fire: 0 0 40px rgba(249,115,22,0.18);
  --shadow-teal: 0 0 40px rgba(14,165,183,0.18);
  --shadow-ev:   0 0 40px rgba(16,185,129,0.18);
}
[data-theme="light"] .nav { background: rgba(245,247,250,0.88); border-bottom-color: rgba(0,0,0,0.07); }
[data-theme="light"] .nav.scrolled { background: rgba(245,247,250,0.97); box-shadow: 0 1px 24px rgba(0,0,0,0.07); }
[data-theme="light"] .nav-mobile { background: var(--bg); border-top-color: var(--border); }
#theme-sun { display: none; }
[data-theme="light"] #theme-moon { display: none; }
[data-theme="light"] #theme-sun { display: block; }

html { scroll-behavior: smooth; background: var(--bg); }
body { font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.2; }
a { color: var(--fire); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code, .mono { font-family: 'JetBrains Mono', monospace; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.4); } }

/* ──────────────────────────────────────────────
   ANNOUNCEMENT BAR — calm beta notice, not a flash sale.
   Token-driven so it's correct in both themes automatically.
────────────────────────────────────────────── */
.announce-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  background: var(--bg2);
  border-bottom: 1px solid var(--border2);
  padding: 9px 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 13px; font-weight: 500; color: var(--text2);
  text-align: center;
}
.announce-bar strong { color: var(--text); font-weight: 700; }
.announce-bar a { color: var(--fire); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.announce-bar a:hover { color: var(--fire-dim); }
.announce-dot { width: 6px; height: 6px; background: var(--fire); border-radius: 50%; animation: pulse 2s ease-in-out infinite; flex-shrink: 0; }
@media (max-width: 600px) { .announce-desc { display: none; } }

/* ──────────────────────────────────────────────
   NAV — one neutral link color, one active-state
   convention (underline), no per-product inline colors.
────────────────────────────────────────────── */
.nav {
  position: fixed; top: 38px; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center;
  padding: 0 40px;
  height: 60px;
  background: rgba(7,9,15,0.9);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, background 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 40px rgba(0,0,0,0.5); background: rgba(7,9,15,0.97); }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px;
  flex-shrink: 0; margin-right: 32px;
}
.nav-brand:hover { text-decoration: none; }
.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: #0B2536; border: 1.5px solid #0ea5b7;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(14,165,183,0.3);
}
.nav-logo-mark svg { width: 20px; height: 20px; }
.nav-brand span { letter-spacing: -0.3px; }
.nav-brand em { color: var(--fire); font-style: normal; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; flex: 1; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button.nav-dd-trigger {
  color: var(--text2); font-size: 13.5px; font-weight: 500;
  padding: 6px 11px; border-radius: 8px;
  transition: color 0.18s, background 0.18s;
  text-decoration: none; cursor: pointer;
  background: none; border: none; font-family: inherit; line-height: 1;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links button.nav-dd-trigger:hover { color: var(--text); background: var(--surface2); }
.nav-links a.nav-active { color: var(--text); font-weight: 600; }
.nav-links a.nav-active::after {
  content: ''; position: absolute; bottom: -2px; left: 11px; right: 11px;
  height: 2px; border-radius: 2px;
  background: var(--fire);
}

.nav-dd-trigger svg { transition: transform 0.2s; }
.nav-links > li.open .nav-dd-trigger svg { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transform-origin: top center;
}
.nav-links > li.open .nav-dropdown { opacity: 1; pointer-events: all; }
.nav-dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 9px;
  color: var(--text2); font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: background 0.15s, color 0.15s;
  background: none;
}
.nav-dropdown a:hover { background: var(--surface2); color: var(--text); }
.nav-dd-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-dd-icon.fire { background: rgba(249,115,22,0.12); color: var(--fire); }
.nav-dd-icon.teal { background: rgba(14,165,183,0.12); color: var(--teal); }
.nav-dd-icon.gold { background: rgba(251,191,36,0.12); color: var(--gold); }
.nav-dd-meta { display: flex; flex-direction: column; gap: 1px; }
.nav-dd-meta strong { color: var(--text); font-size: 13px; font-weight: 600; }
.nav-dd-meta span { color: var(--text3); font-size: 11.5px; }
.nav-dd-divider { height: 1px; background: var(--border); margin: 6px 4px; }

.nav-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-cta {
  background: var(--fire); color: #fff;
  padding: 7px 16px; border-radius: 9px;
  font-weight: 600; font-size: 13.5px;
  border: none; cursor: pointer; font-family: inherit;
  transition: opacity 0.2s, box-shadow 0.2s;
  text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; box-shadow: var(--shadow-fire); }
.nav-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.nav-icon-btn:hover { color: var(--text); background: var(--surface3); border-color: rgba(255,255,255,0.12); }
.nav-icon-btn.install-btn { display: none; }
.nav-icon-btn.install-btn.visible { display: flex; }

.launch-tools-wrap { position: relative; }
.launch-tools-btn { display:flex; align-items:center; gap:6px; height:34px; padding:0 12px; border-radius:8px; background:var(--surface2); border:1px solid var(--border); color:var(--text); font-size:13px; font-weight:600; cursor:pointer; white-space:nowrap; transition:color 0.2s, background 0.2s, border-color 0.2s; }
.launch-tools-btn:hover { background:var(--surface); border-color:var(--border2); }
.launch-tools-btn svg.chevron { transition:transform 0.2s; }
.launch-tools-wrap.open .launch-tools-btn svg.chevron { transform:rotate(180deg); }
.launch-tools-menu { position:absolute; top:calc(100% + 8px); right:0; min-width:210px; background:var(--surface); border:1px solid var(--border2); border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,0.25); padding:6px; display:none; flex-direction:column; gap:2px; z-index:200; }
.launch-tools-wrap.open .launch-tools-menu { display:flex; }
.launch-tools-menu a { display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:8px; text-decoration:none; color:var(--text); font-size:13.5px; font-weight:600; transition:background 0.15s; }
.launch-tools-menu a:hover { background:var(--surface2); text-decoration:none; }
.launch-tools-menu .dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }

.nav-hamburger {
  display: none; background: none; border: none;
  color: var(--text); cursor: pointer; padding: 8px;
  margin-left: auto; border-radius: 8px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--surface2); }

.nav-mobile {
  display: none; position: fixed; top: 98px; left: 0; right: 0; bottom: 0; z-index: 99;
  background: var(--bg); padding: 20px 20px 40px;
  flex-direction: column; gap: 4px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile-section {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text3); text-transform: uppercase;
  padding: 12px 14px 6px; margin-top: 8px;
}
.nav-mobile a {
  color: var(--text); font-size: 15px; font-weight: 500;
  padding: 11px 14px; border-radius: 10px;
  text-decoration: none; display: flex; align-items: center; gap: 10px;
  transition: background 0.15s;
}
.nav-mobile a:hover { background: var(--surface2); }
.nav-mobile-cta {
  margin-top: 16px; padding: 13px 14px; border-radius: 12px;
  background: var(--fire); color: #fff;
  font-weight: 600; font-size: 15px; text-align: center;
  text-decoration: none; display: block;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 0 20px; }
}

/* ──────────────────────────────────────────────
   BUTTONS
────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--fire); color: #fff;
  font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: 12px; border: none; cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(249,115,22,0.4);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 32px rgba(249,115,22,0.5); text-decoration: none; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface2); color: var(--text);
  font-size: 15px; font-weight: 500;
  padding: 13px 24px; border-radius: 12px;
  border: 1px solid var(--border2); cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-secondary:hover { background: var(--surface); transform: translateY(-1px); text-decoration: none; }

/* ──────────────────────────────────────────────
   SECTION HEADERS — one label/title/sub system.
   Alias both pages' existing class names onto it so
   HTML doesn't need a full rename in this pass.
────────────────────────────────────────────── */
.section-center { text-align: center; }
.eyebrow, .section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before, .section-label::before {
  content: ''; width: 24px; height: 2px;
  background: var(--teal); border-radius: 1px;
}
.section-center .eyebrow, .section-center .section-label { justify-content: center; }
.section-headline, .section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -1px;
  color: var(--text); margin-bottom: 18px;
}
.section-sub, .section-body {
  font-size: 17px; color: var(--text2);
  max-width: var(--container-prose); line-height: 1.7;
}
.section-center .section-sub, .section-center .section-body { margin: 0 auto 60px; }
.section-body p + p { margin-top: 16px; }

/* ──────────────────────────────────────────────
   CARD — the one feature/value/icon-card component.
   (Already the correct shape on the homepage; About's
   value-card migrates onto this instead of inventing its own.)
────────────────────────────────────────────── */
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feat-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 22px; color: var(--teal);
}
.feat-icon.orange { background: rgba(249,115,22,0.12); color: var(--fire); }
.feat-icon.teal   { background: rgba(14,165,183,0.12); color: var(--teal); }
.feat-icon.gold   { background: rgba(251,191,36,0.12); color: var(--gold); }
.feat-icon.green  { background: rgba(34,197,94,0.12); color: var(--green); }
.feat-icon.purple { background: rgba(168,85,247,0.12); color: #a855f7; }
.feat-icon.blue   { background: rgba(59,130,246,0.12); color: #3b82f6; }
.feat-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feat-body { font-size: 14px; color: var(--text2); line-height: 1.65; }

/* ──────────────────────────────────────────────
   STATUS BADGES
────────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  margin-bottom: 14px;
  white-space: nowrap;
}
.status-live { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.25); }
.status-beta { background: rgba(249,115,22,0.12); color: #f97316; border: 1px solid rgba(249,115,22,0.25); }
.status-soon { background: rgba(100,116,139,0.12); color: #94a3b8; border: 1px solid rgba(100,116,139,0.2); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-live .status-dot { background: #22c55e; animation: pulse 2s ease-in-out infinite; }
.status-beta .status-dot { background: #f97316; animation: pulse 2s ease-in-out infinite; }
.status-soon .status-dot { background: #64748b; }

/* ──────────────────────────────────────────────
   FOOTER — one background token, one padding, everywhere.
────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: var(--container-wide); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid var(--border);
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand-logo { display: flex; align-items: center; gap: 10px; }
.footer-brand-logo span { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; color: var(--text); }
.footer-tagline { font-size: 14px; color: var(--text2); line-height: 1.65; max-width: 280px; }
.footer-col h4 { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 14px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a, .footer-col ul li a { font-size: 14px; color: var(--text2); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover, .footer-col ul li a:hover { color: var(--fire); text-decoration: none; }
.footer-bottom {
  max-width: var(--container-wide); margin: 0 auto;
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 600px) { footer { padding: 40px 16px 24px; } .footer-inner { grid-template-columns: 1fr; gap: 24px; } }
