/* =========================================================
   BAZION — landing page styles
   Dark "operations console" aesthetic
   ========================================================= */

:root {
  /* surfaces */
  --bg: #07090a;
  --bg-2: #0a0d0f;
  --panel: #0e1214;
  --panel-2: #12171a;
  --line: #1c2327;
  --line-2: #242d32;

  /* text */
  --text: #e7ebed;
  --muted: #8b959c;
  --faint: #5c666c;

  /* accents */
  --green: #22c55e;
  --green-bright: #34e07f;
  --green-dim: #16351f;
  --red: #f04747;
  --red-dim: #3a1717;
  --amber: #f5a524;
  --amber-dim: #3a2b0f;
  --blue: #4c8dff;
  --blue-dim: #16233a;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1200px;

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --glow-green: 0 0 0 1px rgba(34, 197, 94, 0.25), 0 8px 40px -8px rgba(34, 197, 94, 0.35);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.ta-r { text-align: right; }
.ok { color: var(--green-bright); }
.bad { color: var(--red); }
.amber { color: var(--amber); }
.grad {
  background: linear-gradient(100deg, var(--green-bright), #7af0ad 55%, #cfeede);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.btn--primary {
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  color: #04180c;
  box-shadow: var(--glow-green);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(34,197,94,.4), 0 14px 40px -8px rgba(34,197,94,.55); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover { border-color: #38464d; background: rgba(255,255,255,.06); transform: translateY(-2px); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted);
  background: rgba(255,255,255,.02);
}
.pill--sm { font-size: 10px; padding: 3px 8px; }
.pill--live { color: var(--green-bright); border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.pill--demo { color: var(--green-bright); border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.1); font-family: var(--mono); font-size: 10px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(52,224,127,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,224,127,.5); }
  70% { box-shadow: 0 0 0 7px rgba(52,224,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,224,127,0); }
}

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px;
  background:
    linear-gradient(135deg, var(--green-bright), var(--green)) padding-box,
    #0a0d0f;
  position: relative; flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 6px 18px -6px rgba(34,197,94,.6);
}
.brand__mark::after {
  content: ""; position: absolute; inset: 8px;
  border-radius: 3px; background: #06180d;
  box-shadow: inset 0 0 0 2px rgba(6,24,13,.9);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; letter-spacing: .14em; font-size: 16px; }
.brand__sub { font-size: 10px; letter-spacing: .28em; color: var(--muted); text-transform: uppercase; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  background: rgba(7,9,10,.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav__links { display: flex; gap: 28px; margin-left: 12px; }
.nav__links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { margin-left: auto; display: flex; gap: 10px; }
.nav__burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(34,197,94,.16), transparent 70%);
  filter: blur(10px);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 40%, transparent 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero__title { font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; margin: 20px 0 18px; }
.hero__lede { color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); max-width: 540px; }
.hero__cta { display: flex; gap: 14px; margin: 30px 0 26px; flex-wrap: wrap; }
.hero__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--muted); font-size: 13.5px; }
.hero__meta strong { color: var(--text); font-family: var(--mono); }
.hero__meta li { display: flex; gap: 7px; }

/* ---------- product window ---------- */
.window {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  box-shadow: var(--shadow);
}
.hero__product .window { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transition: transform .5s ease; }
.hero__product .window:hover { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.window--flat .window { transform: none; }
.window__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 15px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3338; display: block; }
.dots i:first-child { background: #f04747; }
.dots i:nth-child(2) { background: #f5a524; }
.dots i:nth-child(3) { background: #22c55e; }
.window__title { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.window__bar .pill { margin-left: auto; }
.window__body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.window__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- KPI cards ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpis--tight { gap: 8px; }
.kpi {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-2); padding: 11px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.kpi__label { font-size: 9.5px; letter-spacing: .12em; color: var(--faint); font-weight: 600; }
.kpi__value { font-family: var(--mono); font-size: 24px; font-weight: 700; line-height: 1; }
.kpi__hint { font-size: 10.5px; color: var(--muted); }

/* ---------- panels & tables ---------- */
.panel { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); overflow: hidden; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; font-size: 12px; font-weight: 600;
  border-bottom: 1px solid var(--line); color: var(--text);
}

.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl td, .tbl th { padding: 8px 12px; text-align: left; }
.tbl th { font-size: 10px; letter-spacing: .08em; color: var(--faint); font-weight: 600; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.tbl--rows tbody tr { border-top: 1px solid rgba(255,255,255,.04); }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.025); }

.tag {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 5px; letter-spacing: .03em; white-space: nowrap;
}
.tag--ok { color: var(--green-bright); background: var(--green-dim); }
.tag--bad { color: var(--red); background: var(--red-dim); }
.tag--amber { color: var(--amber); background: var(--amber-dim); }
.tag--info { color: var(--blue); background: var(--blue-dim); }

.side { font-family: var(--mono); font-size: 11px; font-weight: 700; }
.side--buy { color: var(--green-bright); }
.side--sell { color: var(--red); }

/* ---------- live feed ---------- */
.feed { display: flex; flex-direction: column; font-family: var(--mono); font-size: 11px; }
.feed--tall { max-height: 260px; }
.feed__row {
  display: grid; grid-template-columns: 52px 1fr 34px 1fr; gap: 8px;
  padding: 5px 12px; border-top: 1px solid rgba(255,255,255,.04);
  align-items: center; white-space: nowrap;
  animation: feedIn .4s ease;
}
.feed__row:first-child { border-top: 0; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); background: rgba(34,197,94,.08); } to { opacity: 1; transform: none; } }
.feed__t { color: var(--faint); }
.feed__sym { color: var(--text); }
.feed__side { font-weight: 700; }
.feed__pnl { text-align: right; }

/* =========================================================
   STRIP
   ========================================================= */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 26px 24px; }
.strip__item { display: flex; flex-direction: column; }
.strip__item strong { font-size: 20px; font-family: var(--mono); color: var(--green-bright); }
.strip__item span { font-size: 12.5px; color: var(--muted); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 46px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--green-bright); font-weight: 600; }
.section__title { font-size: clamp(26px, 3vw, 40px); margin: 12px 0 14px; }
.section__lede { color: var(--muted); font-size: 16.5px; max-width: 620px; }

/* ---------- module grid ---------- */
.modgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: 22px; display: flex; flex-direction: column; gap: 18px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card--wide { grid-column: span 2; }
.card__meta { display: flex; gap: 14px; align-items: flex-start; }
.card__ico {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; font-size: 19px;
  color: var(--green-bright);
  background: var(--green-dim); border: 1px solid rgba(34,197,94,.25);
}
.card__meta h3 { font-size: 18px; margin-bottom: 4px; }
.card__meta p { color: var(--muted); font-size: 13.5px; }
.preview {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-2); overflow: hidden;
}
.card--wide .preview { display: grid; grid-template-columns: 1fr 1.1fr; }
.card--wide .kpis--tight { padding: 12px; border-right: 1px solid var(--line); }

/* observability preview */
.obs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.obs__cell { background: var(--panel-2); padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.obs__k { font-size: 9.5px; letter-spacing: .1em; color: var(--faint); font-weight: 600; }
.obs__v { font-family: var(--mono); font-size: 20px; font-weight: 700; }
.obs__v small { font-size: 11px; color: var(--muted); margin-left: 3px; font-weight: 500; }
.alerts { padding: 10px; display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--line); }
.alert {
  border-radius: 7px; padding: 8px 10px; font-size: 11px; font-family: var(--mono);
  display: flex; flex-direction: column; gap: 1px; border-left: 3px solid var(--line-2);
  background: rgba(255,255,255,.02);
}
.alert span { font-weight: 700; }
.alert small { color: var(--muted); font-size: 10.5px; font-family: var(--sans); }
.alert--warn { border-left-color: var(--amber); }
.alert--warn span { color: var(--amber); }
.alert--bad { border-left-color: var(--red); }
.alert--bad span { color: var(--red); }
.alert--info { border-left-color: var(--blue); }
.alert--info span { color: var(--blue); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  font-size: 12.5px; color: var(--muted); font-weight: 500;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel-2); transition: .2s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }

/* =========================================================
   SPLIT (platform)
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.checklist li { position: relative; padding-left: 32px; color: var(--muted); font-size: 14.5px; }
.checklist li span { display: block; color: var(--text); font-weight: 600; font-size: 15px; margin-bottom: 1px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--green-bright);
  background: var(--green-dim); border: 1px solid rgba(34,197,94,.3);
}
.bars { padding: 12px; display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line); }
.bars__row { display: grid; grid-template-columns: 120px 1fr 30px; gap: 12px; align-items: center; font-size: 11.5px; color: var(--muted); }
.bars__row b { font-family: var(--mono); color: var(--text); text-align: right; }
.bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--green-bright)); }

/* =========================================================
   FEATURES
   ========================================================= */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 24px; transition: .25s;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature__ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px;
  font-size: 20px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 14px;
}
.feature h3 { font-size: 17px; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 14px; }

/* =========================================================
   CTA
   ========================================================= */
.cta { position: relative; padding: 100px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.cta__glow {
  position: absolute; bottom: -300px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(closest-side, rgba(34,197,94,.18), transparent 70%);
}
.cta__inner { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(28px, 3.4vw, 46px); }
.cta p { color: var(--muted); font-size: 17px; margin: 14px auto 30px; max-width: 520px; }
.cta__form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta__form input {
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text);
  padding: 14px 18px; border-radius: 12px; font-size: 15px; min-width: 280px; font-family: var(--sans);
}
.cta__form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.cta__note { color: var(--green-bright); font-weight: 500; margin-top: 16px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 54px 0 26px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: flex; gap: 14px; max-width: 320px; }
.footer__tag { color: var(--muted); font-size: 13px; margin-top: 8px; }
.footer__cols { display: flex; gap: 64px; }
.footer__cols h4 { font-size: 13px; margin-bottom: 12px; letter-spacing: .04em; }
.footer__cols a { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 8px; transition: color .2s; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__product .window { transform: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(7,9,10,.97); backdrop-filter: blur(14px); padding: 18px 24px; gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__actions { display: flex; position: absolute; top: 190px; left: 24px; right: 24px; }
  .modgrid { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .card--wide .preview { grid-template-columns: 1fr; }
  .card--wide .kpis--tight { border-right: 0; border-bottom: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; }
  .window__cols { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { gap: 40px; }
}

@media (max-width: 420px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .hero { padding: 40px 0 60px; }
  .section { padding: 64px 0; }
}
