/* ==========================================================================
   FlowCage by Erlang Eye: shared design system
   The Third Eye never blinks. Crimson = offense. Gold = the eye of truth.
   ========================================================================== */
:root {
  --bg: #0a0b0e;
  --bg-panel: #121317;
  --bg-panel-hover: #171921;
  --bg-subtle: #1a1c24;
  --border: #23262f;
  --border-focus: #3a3f4e;
  --accent: #b3222e;            /* Erlang crimson */
  --accent-bright: #d92e3c;
  --accent-deep: #7c1a24;
  --gold: #e8b44a;              /* the third eye */
  --gold-bright: #f5cd7a;
  --gold-muted: rgba(232, 180, 74, 0.16);
  --gold-border: rgba(232, 180, 74, 0.45);
  --accent-muted: rgba(179, 34, 46, 0.18);
  --accent-border: rgba(217, 46, 60, 0.45);
  --text: #ffffff;
  --text-muted: #8b93a3;
  --text-light: #d3d8e0;
  --success: #2fbf8f;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- top accent: crimson / gold / crimson ------------------------------- */
.top-accent-line {
  height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--gold) 50%, var(--accent) 80%, transparent);
}

/* --- header -------------------------------------------------------------- */
header {
  background: rgba(10, 11, 14, 0.93);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
}
.nav-inner {
  max-width: 1260px; margin: 0 auto; padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: #fff; }
.brand-title { font-size: 1.15rem; font-weight: 700; letter-spacing: 2.5px; }
.brand-sub {
  font-family: var(--font-mono); font-size: 0.62rem; color: var(--gold);
  border: 1px solid var(--gold-border); padding: 0.18rem 0.5rem;
  letter-spacing: 1.5px; white-space: nowrap;
}
.brand-sub b { font-weight: 600; }
nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-link {
  color: var(--text-muted); text-decoration: none; font-size: 0.82rem;
  font-weight: 500; letter-spacing: 1.2px; transition: color 0.2s;
}
.nav-link:hover { color: var(--gold-bright); }
.btn-nav {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  border: 1px solid var(--accent-border);
  color: #fff; text-decoration: none; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 1.5px; padding: 0.55rem 1.2rem; transition: all 0.2s;
}
.btn-nav:hover { filter: brightness(1.2); box-shadow: 0 0 18px rgba(179, 34, 46, 0.4); }
@media (max-width: 980px) { nav .nav-link { display: none; } }

/* --- third-eye mark ------------------------------------------------------ */
.eye-mark { display: inline-flex; align-items: center; justify-content: center; }
.eye-mark svg { display: block; }
.eye-pulse { animation: eyePulse 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes eyePulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  max-width: 1100px; margin: 0 auto; padding: 5.5rem 2rem 4.5rem;
  text-align: center; position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--gold-border); background: var(--gold-muted);
  color: var(--gold-bright); font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 2px; padding: 0.45rem 1rem; margin-bottom: 2rem;
}
.badge-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
  animation: eyePulse 2s ease-in-out infinite; }
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.9rem); font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.08; margin-bottom: 1.4rem;
}
.hero-title .gold {
  background: linear-gradient(100deg, var(--gold-bright), var(--gold) 45%, var(--accent-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title span { display: block; color: var(--text-muted); font-size: 0.52em; font-weight: 600; letter-spacing: 3px; margin-top: 0.9rem; }
.hero-desc {
  max-width: 820px; margin: 0 auto 2.4rem; color: var(--text-muted);
  font-size: 1.02rem; line-height: 1.75;
}
.hero-desc b { color: var(--text-light); font-weight: 600; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent) 55%, var(--accent-bright));
  border: 1px solid var(--accent-border); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 1.5px;
  padding: 0.95rem 2rem; transition: all 0.2s;
}
.btn-primary:hover { filter: brightness(1.18); box-shadow: 0 0 26px rgba(179, 34, 46, 0.45); }
.btn-gold {
  background: linear-gradient(135deg, #8a6420, var(--gold));
  border: 1px solid var(--gold-border); color: #14100a; text-decoration: none;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 1.5px;
  padding: 0.95rem 2rem; transition: all 0.2s;
}
.btn-gold:hover { filter: brightness(1.12); box-shadow: 0 0 26px rgba(232, 180, 74, 0.35); }
.btn-secondary {
  border: 1px solid var(--border-focus); color: var(--text-light);
  text-decoration: none; font-weight: 600; font-size: 0.9rem; letter-spacing: 1.5px;
  padding: 0.95rem 2rem; transition: all 0.2s;
}
.btn-secondary:hover { color: #fff; border-color: #fff; }
.compat-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.8rem;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted);
  letter-spacing: 1px;
}
.compat-item { display: flex; align-items: center; gap: 0.5rem; }
.compat-item span { width: 5px; height: 5px; background: var(--gold); }

/* --- stats strip ----------------------------------------------------------- */
.stats-strip {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}
.stats-inner {
  max-width: 1260px; margin: 0 auto; padding: 1.6rem 2rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem;
  text-align: center;
}
.stat b { display: block; font-size: 1.5rem; font-weight: 700; color: var(--gold-bright); }
.stat span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); letter-spacing: 1.5px; }

/* --- sections --------------------------------------------------------------- */
.section-wrap { max-width: 1260px; margin: 0 auto; padding: 4.5rem 2rem; }
.section-head { max-width: 840px; margin-bottom: 2.6rem; }
.section-kicker {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold);
  letter-spacing: 3px; margin-bottom: 0.9rem;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -0.3px; margin-bottom: 0.9rem; }
.section-desc { color: var(--text-muted); font-size: 0.98rem; line-height: 1.7; }

/* --- terminal ----------------------------------------------------------------- */
.terminal-nav {
  background: #090a0d; border: 1px solid var(--border); border-bottom: none;
  padding: 0.75rem 1.5rem; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.terminal-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.term-tab {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  font-family: var(--font-mono); font-size: 0.73rem; padding: 0.4rem 0.85rem;
  cursor: pointer; transition: all 0.2s;
}
.term-tab:hover { color: #fff; border-color: var(--border-focus); }
.term-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.terminal-badge {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--success);
  display: flex; align-items: center; gap: 0.45rem;
}
.term-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%;
  animation: eyePulse 2s ease-in-out infinite; }
.terminal-content {
  padding: 2rem; background: #07080a; border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.7;
  color: var(--text-light); position: relative; overflow-x: auto;
}
.btn-copy-term {
  position: absolute; top: 1rem; right: 1rem; background: var(--bg-panel);
  border: 1px solid var(--border); color: var(--text-muted);
  font-family: var(--font-mono); font-size: 0.7rem; padding: 0.35rem 0.8rem;
  cursor: pointer; transition: all 0.2s;
}
.btn-copy-term:hover { color: #fff; border-color: #fff; }
.quickstart-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border); border-top: none;
}
.qs-card { background: var(--bg-panel); padding: 1.75rem 2rem; }
.qs-card-step { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gold); letter-spacing: 1.5px; margin-bottom: 0.5rem; }
.qs-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.qs-card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* --- cards / grids ------------------------------------------------------------ */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
.cap-card {
  background: var(--bg-panel); border: 1px solid var(--border);
  padding: 2.25rem 2rem; transition: all 0.25s ease; display: flex; flex-direction: column;
}
.cap-card:hover { border-color: var(--gold-border); background: var(--bg-panel-hover); transform: translateY(-2px); }
.cap-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-bright); margin-bottom: 1.1rem; letter-spacing: 1px; }
.cap-title { font-size: 1.22rem; font-weight: 700; margin-bottom: 0.7rem; letter-spacing: -0.2px; }
.cap-desc { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* --- architecture banner ------------------------------------------------------- */
.arch-banner {
  background: linear-gradient(180deg, var(--bg-panel) 0%, #0d0f13 100%);
  border: 1px solid var(--border); padding: 3rem; display: grid;
  grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .arch-banner { grid-template-columns: 1fr; } }
.arch-feature { margin-bottom: 1.5rem; }
.arch-feature h4 { font-size: 1.05rem; margin-bottom: 0.35rem; font-weight: 600; }
.arch-feature p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }
.spec-box { background: var(--bg); border: 1px solid var(--border); padding: 1.5rem; }
.spec-box .spec-head { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); margin-bottom: 1rem; letter-spacing: 1px; }
.spec-box .spec-body { font-family: var(--font-mono); font-size: 0.83rem; color: var(--text-light); line-height: 1.9; }
.spec-box .spec-body b { color: #fff; font-weight: 600; }
.spec-box .ok { color: var(--success); }

/* --- pricing ---------------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; align-items: stretch; }
.price-card {
  background: var(--bg-panel); border: 1px solid var(--border);
  padding: 2.2rem 2rem; display: flex; flex-direction: column; position: relative;
  transition: all 0.25s ease;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--border-focus); }
.price-card.featured { border-color: var(--gold-border); background: linear-gradient(180deg, rgba(232,180,74,0.06), var(--bg-panel) 55%); }
.price-card.featured:hover { box-shadow: 0 0 40px rgba(232, 180, 74, 0.12); }
.price-flag {
  position: absolute; top: -1px; right: -1px; background: linear-gradient(135deg, var(--gold), #b98a2e);
  color: #171207; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 1.5px; padding: 0.3rem 0.7rem;
}
.price-tier { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 3px; color: var(--gold); margin-bottom: 0.9rem; }
.price-amount { font-size: 2.5rem; font-weight: 700; letter-spacing: -1px; }
.price-amount small { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0; }
.price-per { color: var(--text-muted); font-size: 0.8rem; font-family: var(--font-mono); margin-bottom: 1.4rem; }
.price-features { list-style: none; margin: 0 0 1.8rem; flex: 1; }
.price-features li {
  font-size: 0.87rem; color: var(--text-light); padding: 0.42rem 0;
  display: flex; gap: 0.6rem; align-items: baseline; line-height: 1.45;
}
.price-features li::before { content: '◆'; color: var(--gold); font-size: 0.6rem; }
.price-features li.dim { color: var(--text-muted); }
.price-features li.dim::before { content: '◇'; color: var(--border-focus); }
.price-card .btn-primary, .price-card .btn-gold, .price-card .btn-secondary {
  display: block; text-align: center; padding: 0.8rem 1rem; font-size: 0.8rem;
}
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 720px; }
table.compare th, table.compare td {
  padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border);
}
table.compare th {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 1.5px;
  color: var(--gold); background: var(--bg-panel); font-weight: 600;
}
table.compare td { color: var(--text-light); }
table.compare td:first-child { color: var(--text-muted); font-size: 0.82rem; }
table.compare .yes { color: var(--success); }
table.compare .no { color: var(--text-muted); }
.faq { border: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); background: var(--bg-panel); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer; padding: 1.1rem 1.5rem; font-weight: 600; font-size: 0.95rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-family: var(--font-mono); }
.faq details[open] summary::after { content: '–'; }
.faq .faq-body { padding: 0 1.5rem 1.3rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* --- footer ------------------------------------------------------------------------- */
footer { border-top: 1px solid var(--border); background: #08090b; padding: 3.2rem 2rem; font-size: 0.82rem; color: var(--text-muted); }
.footer-inner {
  max-width: 1260px; margin: 0 auto; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.footer-links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-link {
  color: var(--text-muted); text-decoration: none; font-family: var(--font-mono);
  font-size: 0.76rem; transition: color 0.2s;
}
.footer-link:hover { color: var(--gold-bright); }
