/* ---------------------------------------------
   Tokens
--------------------------------------------- */
:root {
  --bg: #0E1A2B;
  --bg-panel: #16263D;
  --bg-panel-raised: #1C3049;
  --line: rgba(237, 239, 243, 0.10);
  --line-strong: rgba(237, 239, 243, 0.18);

  --text: #EDEFF3;
  --text-muted: #8FA3B8;
  --text-faint: #5D7189;

  --amber: #F2A63C;
  --amber-dim: rgba(242, 166, 60, 0.14);
  --teal: #4FA697;
  --teal-dim: rgba(79, 166, 151, 0.14);

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px;
}

/* ---------------------------------------------
   Header
--------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 26, 43, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}

.logo-mark {
  display: inline-flex;
  color: var(--amber);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.main-nav a:hover { color: var(--text); }

.nav-signin {
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 500;
}
.nav-signin:hover { border-color: var(--teal); color: var(--teal); }

.nav-cta {
  color: var(--bg);
  background: var(--amber);
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 500;
}

.nav-cta:hover { background: #FFC266; color: var(--bg); }

/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--amber);
  color: #0E1A2B;
}
.btn-primary:hover { background: #FFC266; }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ---------------------------------------------
   Hero
--------------------------------------------- */
.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 46px;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.chart-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px 16px;
}

.chart-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.chart-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chart-readout {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--teal);
  font-weight: 500;
}

.load-curve {
  width: 100%;
  height: auto;
  display: block;
}

.grid-lines line {
  stroke: var(--line);
  stroke-width: 1;
}

.curve-line {
  fill: none;
  stroke-width: 2.5;
}

.before-line { stroke: var(--amber); }
.after-line { stroke: var(--teal); }

.chart-legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-before { background: var(--amber); }
.dot-after { background: var(--teal); }

/* ---------------------------------------------
   Stat bar
--------------------------------------------- */
.stat-bar {
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
}

.stat-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 36px 28px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 20px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }

.stat-num {
  font-family: var(--font-mono);
  font-size: 30px;
  color: var(--amber);
  font-weight: 500;
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------------------------------------------
   How it works
--------------------------------------------- */
.how {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.how h2 {
  font-size: 32px;
  max-width: 18ch;
  margin-bottom: 48px;
}

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

.how-step {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
}

.step-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.how-step h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.how-step p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ---------------------------------------------
   Industries
--------------------------------------------- */
.industries {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.industries h2 {
  font-size: 32px;
  max-width: 20ch;
  margin-bottom: 48px;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.industry-card {
  background: var(--bg);
  padding: 28px 22px;
}

.industry-card svg {
  color: var(--amber);
  margin-bottom: 16px;
}

.industry-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------------------------------------------
   Proof
--------------------------------------------- */
.proof {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.proof-inner { max-width: 760px; }

.proof blockquote {
  margin: 0;
}

.proof p {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}

.proof footer {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------------------------------------------
   CTA band
--------------------------------------------- */
.cta-band {
  padding: 96px 0;
  background: radial-gradient(circle at 15% 20%, var(--amber-dim), transparent 55%),
              radial-gradient(circle at 85% 80%, var(--teal-dim), transparent 55%);
}

.cta-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: 34px;
  margin-bottom: 14px;
}

.cta-inner p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}

.audit-form {
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-full { grid-column: 1 / -1; }

.audit-form .field-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.audit-form input,
.audit-form select,
.audit-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
}

.audit-form textarea { resize: vertical; }

.audit-form input:focus,
.audit-form select:focus,
.audit-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.audit-form .btn { align-self: flex-start; }

.audit-note {
  font-size: 12.5px;
  color: var(--text-faint);
  margin: -8px 0 0;
}

@media (max-width: 560px) {
  .audit-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------
   Auth (sign in)
--------------------------------------------- */
.auth-section {
  padding: 88px 0 120px;
  min-height: calc(100vh - 68px - 90px);
  display: flex;
  align-items: center;
}

.auth-wrap {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 36px;
}

.auth-card h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

.auth-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.field input[type="email"],
.field input[type="password"] {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
}

.field input::placeholder { color: var(--text-faint); }

.field input:focus {
  outline: none;
  border-color: var(--teal);
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.checkbox input {
  accent-color: var(--teal);
}

.forgot-link {
  color: var(--teal);
}
.forgot-link:hover { color: var(--amber); }

.btn-full {
  width: 100%;
  margin-top: 6px;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-actions .btn-full { margin-top: 0; }

.auth-footnote {
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--text-faint);
  text-align: center;
}

.auth-footnote a {
  color: var(--teal);
}
.auth-footnote a:hover { color: var(--amber); }

@media (max-width: 560px) {
  .auth-card { padding: 32px 24px; }
}

/* ---------------------------------------------
   Chatbot
--------------------------------------------- */
.chat-section {
  padding: 88px 0 120px;
  min-height: calc(100vh - 68px - 90px);
  display: flex;
  align-items: center;
}

.chat-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.chat-section h1 {
  font-size: 30px;
  margin-bottom: 28px;
}

.chat-box {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  resize: vertical;
}

.chat-input::placeholder { color: var(--text-faint); }

.chat-input:focus {
  outline: none;
  border-color: var(--teal);
}

.chat-send {
  align-self: flex-end;
  padding: 11px 22px;
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-inner nav {
  display: flex;
  gap: 20px;
}

.footer-inner nav a:hover { color: var(--text-muted); }

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .stat-bar-inner { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat { border-left: none; padding-left: 0; }
  .how-steps { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
}

@media (max-width: 560px) {
  .hero-copy h1 { font-size: 32px; }
  .industry-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* ---------------------------------------------
   Reduced motion
--------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
