/*
 * BASwise — www.baswise.com
 * Static translation of frontend/src/pages/LandingPage.module.css (Operations Console language).
 * Surface = the app's dark chrome, accent = amber #d97706, data = JetBrains Mono.
 * Fonts degrade to system stacks if Google Fonts is blocked/offline.
 */

:root {
  --brand: #d97706;
  --brand-hover: #b45309;
  --bg: #0f1319;
  --bg-alt: #121823;
  --surface: #151b26;
  --hover: #1a2030;
  --border: #1f2a3a;
  --border-strong: #2a374c;
  --text: #e2e6ed;
  --text-strong: #f5f7fa;
  --text-dim: #a3adbf;
  --text-muted: #8a95a8;
  --text-faint: #4d5b72;
  --amber-soft: #fbbf24;
  --pass: #34d399;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

[id] {
  scroll-margin-top: 80px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 50;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
}

.skip:focus {
  left: 8px;
}

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 19, 25, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 15px;
}

.brand-word {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color 120ms, background 120ms;
}

.label-short {
  display: none;
}

.nav-link:hover {
  color: var(--text);
  background: var(--hover);
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 120ms, border-color 120ms, color 120ms;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  box-shadow: 0 6px 24px -8px rgba(217, 119, 6, 0.6);
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.nav-link:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--amber-soft);
  outline-offset: 2px;
}

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

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: var(--hover);
}

.btn-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.arrow {
  font-family: var(--font-mono);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  /* The canvas's own dot grid, on the dark chrome */
  background-image: radial-gradient(rgba(138, 149, 168, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -11px -11px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 30% 20%, rgba(217, 119, 6, 0.1), transparent 70%),
    linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 20px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.75rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin: 0 0 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--amber-soft);
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 32px;
  max-width: 580px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cred-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.cred-note code {
  font-family: var(--font-mono);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

/* Job-trace readout */

.trace {
  background: rgba(21, 27, 38, 0.92);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: 8px;
  padding: 20px 22px 16px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

.trace-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.trace-job {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 6px 0 14px;
}

.trace-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trace-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.trace-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.trace-val {
  font-size: 14px;
  color: var(--text);
}

.trace-val strong {
  color: var(--text-strong);
  font-weight: 700;
}

.pass {
  color: var(--pass);
  font-weight: 700;
}

.trace-foot {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-faint);
}

/* Hero screenshot */

.hero-shot {
  position: relative;
  z-index: 1;
  margin: 64px auto 0;
  max-width: 1200px;
  padding: 0 32px;
}

/* ─── Framed screenshots ──────────────────────────────── */

.frame {
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 34px;
  padding: 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
}

.frame-bar span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-bar span:last-child {
  color: var(--text-faint);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-shot .frame {
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 80px -20px rgba(217, 119, 6, 0.25);
}

/* ─── Feature sections ────────────────────────────────── */

.section {
  padding: 112px 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-alt);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}

.feature-reverse .feature-copy {
  order: 2;
}

.feature-stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.feature-stacked .feature-copy {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 64px;
  align-items: start;
}

.feature-stacked .feature-copy > .kicker,
.feature-stacked .feature-copy > .h2 {
  grid-column: 1;
}

.feature-stacked .feature-copy > .body {
  grid-column: 2;
}

.feature-stacked .feature-copy > .body:first-of-type {
  grid-row: 1 / span 2;
  align-self: end;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}

.kicker span {
  color: var(--text-faint);
  margin-right: 8px;
}

.h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.3rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0 0 20px;
}

.body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: #c3cad6;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 5px 9px;
}

.chip-step {
  color: var(--text-faint);
  margin-right: 6px;
}

/* Loupe: wide shot + magnified detail */

.loupe {
  position: relative;
  padding-bottom: 56px;
}

.loupe-inset {
  position: absolute;
  right: -16px;
  bottom: 0;
  width: 44%;
  max-width: 340px;
  border-color: var(--brand);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.9), 0 0 0 4px rgba(217, 119, 6, 0.18);
}

.loupe-inset-wide {
  width: 64%;
  max-width: 460px;
}

/* Drag triptych */

.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trip-label {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

.trip-label b {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand);
}

/* ─── Verification strip ──────────────────────────────── */

.verify {
  padding: 112px 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 80% at 85% 50%, rgba(52, 211, 153, 0.06), transparent 70%), var(--bg);
}

.verify-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.console {
  background: #0a0d12;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

.console-body {
  margin: 0;
  padding: 20px 22px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: #c3cad6;
  overflow-x: auto;
  white-space: pre;
}

.prompt {
  color: var(--text-faint);
}

.key {
  color: var(--text-muted);
}

.checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--pass);
  border-radius: 6px;
  padding: 14px 14px 12px;
}

.check-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--pass);
  margin: 0 0 6px;
}

.check-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
  margin: 0;
}

/* ─── Closing CTA + footer ────────────────────────────── */

.closing {
  padding: 112px 0 120px;
  border-top: 1px solid var(--border);
  text-align: center;
  background-image: radial-gradient(rgba(138, 149, 168, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
}

.closing .h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.closing .body {
  max-width: 640px;
  margin: 0 auto 32px;
}

.closing .cta-row {
  justify-content: center;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
  color: var(--text-faint);
}

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

@media (max-width: 1024px) {
  .hero-grid,
  .feature,
  .verify-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .feature-reverse .feature-copy {
    order: 0;
  }

  .feature-stacked .feature-copy {
    display: block;
  }

  .trace {
    max-width: 560px;
  }

  .section,
  .verify {
    padding: 80px 0;
  }

  .loupe-inset {
    right: 12px;
  }
}

@media (max-width: 640px) {
  .container,
  .hero-shot {
    padding: 0 18px;
  }

  .hero {
    padding-top: 48px;
  }

  .hide-sm {
    display: none;
  }

  .nav-inner {
    gap: 8px;
  }

  .lede,
  .body {
    font-size: 16px;
  }

  .triptych,
  .checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .loupe {
    padding-bottom: 0;
  }

  .loupe-inset {
    position: relative;
    right: auto;
    width: 100%;
    max-width: none;
    margin-top: 14px;
  }

  .frame-bar span:last-child {
    display: none;
  }

  .console-body {
    font-size: 12px;
    padding: 16px;
  }
}

@media (max-width: 440px) {
  .label-long {
    display: none;
  }

  .label-short {
    display: inline;
  }
}

@media (max-width: 340px) {
  .brand-word {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-primary,
  .btn-ghost,
  .nav-link {
    transition: none;
  }
}
