:root {
  --bg: #0a0e1a;
  --grid-line: rgba(255, 255, 255, 0.035);
  --panel: #121a2e;
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #e8eaf0;
  --text-muted: #9aa3b8;
  --accent-start: #a855f7;
  --accent-end: #3b82f6;
  --formula: #5eead4;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

/* ---------- Animation ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-up 0.7s ease both;
}

.animate-in-delay-1 {
  animation-delay: 0.15s;
}

.animate-in-delay-2 {
  animation-delay: 0.3s;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .animate-in,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  color: var(--text);
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

h1, h2, h3, .logo-name, .btn {
  font-family: 'Baloo 2', 'Inter', Arial, sans-serif;
}

/* ---------- Nav ---------- */

nav {
  position: sticky;
  top: 1em;
  z-index: 10;
  padding: 0 1.5em;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6em 0.6em 0.6em 1.1em;
  background: rgba(18, 26, 46, 0.75);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-weight: 700;
  font-size: 1.15em;
  color: #ffffff;
}

.logo-tagline {
  font-size: 0.62em;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.8em;
  flex: 1;
  justify-content: center;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #ffffff;
}

.btn-nav {
  padding: 0.55em 1.3em;
  font-size: 0.9em;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  padding: 0.8em 1.8em;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.badge-soon {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.68em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25em 0.7em;
  border-radius: var(--radius-pill);
}

.auth-container .badge-soon {
  display: block;
  width: fit-content;
  margin: 0 auto 0.8em;
}

.btn-primary {
  background: var(--accent-end);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  background: #2f6fe0;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid var(--panel-border);
}

.btn-outline:hover {
  border-color: var(--accent-end);
  color: var(--accent-end);
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6em 1.5em 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5em;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.75em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.3em;
}

.hero h1 {
  text-align: left;
  font-size: 2.75em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 800;
}

.text-blue {
  color: var(--accent-end);
}

.hero p.subhead {
  max-width: 460px;
  margin: 0 0 1.8em;
  font-size: 1.1em;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  justify-content: flex-start;
  gap: 1em;
  flex-wrap: wrap;
  margin-bottom: 1.3em;
}

.btn-arrow {
  display: inline-block;
  margin-left: 0.3em;
}

.hero-helper {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--text-muted);
  font-size: 0.9em;
  margin: 0;
}

.hero-helper .helper-icon {
  color: #22c55e;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 3.5em auto 0;
  padding: 1.2em 0 2.5em;
  border-top: 1px solid var(--panel-border);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.7em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Demo window ---------- */

.demo-window {
  width: 100%;
  background: #0d1016;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9em 1.2em;
  border-bottom: 1px solid var(--panel-border);
}

.demo-dots {
  display: flex;
  gap: 0.4em;
}

.demo-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: inline-block;
}

.demo-title {
  font-size: 0.72em;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.demo-status {
  font-size: 0.7em;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.demo-body {
  padding: 1.4em 1.4em 0.2em;
}

.demo-row-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.68em;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.7em;
}

.demo-input-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 1em 1.2em;
  display: flex;
  align-items: center;
  gap: 1.3em;
  font-size: 1.3em;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1em;
}

.demo-input-box .cursor {
  width: 2px;
  height: 1.1em;
  background: var(--accent-end);
  margin-left: auto;
  animation: demo-blink 1s step-end infinite;
}

@keyframes demo-blink {
  50% {
    opacity: 0;
  }
}

.demo-pattern {
  color: var(--accent-end);
  font-size: 0.78em;
  letter-spacing: 0.08em;
  margin-bottom: 1.3em;
}

.demo-divider {
  border: none;
  border-top: 1px solid var(--panel-border);
  margin: 0 0 1.3em;
}

.demo-formula {
  font-size: 2em;
  font-weight: 700;
  color: var(--formula);
  margin-bottom: 1.1em;
}

.demo-chart-label {
  font-size: 0.68em;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.6em;
}

.demo-chart {
  margin-bottom: 0.6em;
}

.demo-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.demo-chart .grid-line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.demo-chart .data-line {
  fill: none;
  stroke: var(--accent-end);
  stroke-width: 2.5;
}

.demo-chart .data-point {
  fill: var(--accent-end);
  stroke: #0d1016;
  stroke-width: 2;
}

.demo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9em 1.4em;
  border-top: 1px solid var(--panel-border);
  font-size: 0.68em;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.demo-footer span {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

@media (max-width: 600px) {
  .demo-input-box {
    font-size: 1.05em;
    gap: 0.8em;
  }
  .demo-formula {
    font-size: 1.5em;
  }
}

/* ---------- Generic sections ---------- */

section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4em 1.5em;
}

section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 0.3em;
  font-weight: 800;
}

section .section-subhead {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5em;
}

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  overflow: hidden;
  padding: 1.2em 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2.5em;
  white-space: nowrap;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.78em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: marquee-scroll 22s linear infinite;
}

.marquee-sep {
  color: var(--accent-end);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ---------- Features / steps ---------- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2em;
  text-align: left;
  margin-bottom: 3em;
}

.kicker {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.78em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1em;
}

.kicker-num {
  color: var(--accent-end);
}

.section-title {
  text-align: left;
  font-size: 2.6em;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

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

.section-tagline {
  color: var(--text-muted);
  font-size: 1.05em;
  line-height: 1.6;
  text-align: right;
  max-width: 300px;
  margin: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
}

.step-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 1.6em;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}

.step-card:hover {
  border-color: var(--accent-end);
  transform: translateY(-2px);
}

.step-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.8em;
}

.step-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
}

.step-count {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.72em;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.step-card h3 {
  margin: 0 0 0.5em;
  font-size: 1.2em;
  color: #ffffff;
}

.step-card p {
  color: var(--text-muted);
  margin: 0 0 1.8em;
  line-height: 1.55;
  flex: 1;
}

.step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.2em;
  border-top: 1px solid var(--panel-border);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.75em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-end);
  text-decoration: none;
  transition: color 0.2s;
}

.step-footer:hover {
  color: #ffffff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 2em;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--accent-end);
  box-shadow: 0 0 0 1px var(--accent-end), 0 15px 40px rgba(59, 130, 246, 0.15);
}

.pricing-card .badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #ffffff;
  font-size: 0.75em;
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: var(--radius-pill);
  margin-bottom: 0.8em;
}

.pricing-card h3 {
  margin: 0 0 0.2em;
}

.pricing-card .price {
  font-size: 2.3em;
  font-weight: 800;
  color: #ffffff;
  margin: 0.3em 0;
}

.pricing-card .price span {
  font-size: 0.38em;
  color: var(--text-muted);
  font-weight: 600;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
  color: var(--text-muted);
  text-align: left;
}

.pricing-card ul li {
  margin-bottom: 0.6em;
  padding-left: 1.4em;
  position: relative;
}

.pricing-card ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-end);
  font-weight: 700;
}

.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(59, 130, 246, 0.12));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 3.5em 1.5em;
}

.cta-banner h2 {
  margin-top: 0;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--panel-border);
  margin-top: 2em;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.8em 1.5em 1.5em;
  display: flex;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
}

.footer-brand .logo {
  margin-bottom: 0.6em;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 260px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 3em;
  flex-wrap: wrap;
}

.footer-links h4 {
  margin: 0 0 0.8em;
  font-size: 0.85em;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6em;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95em;
}

.footer-links a:hover {
  color: var(--accent-end);
}

.footer-bottom {
  text-align: center;
  color: #5c6378;
  font-size: 0.85em;
  padding: 1em 0 1.5em;
}

/* ---------- Tool page (index.html) ---------- */

.container {
  max-width: 800px;
  margin: 2em auto;
  padding: 2em;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
}

h1 {
  text-align: center;
  color: #ffffff;
}

.attempts-counter {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9em;
  margin: 0 0 0.6em;
}

.attempts-counter:first-of-type {
  margin-top: -0.5em;
}

.attempts-counter a {
  color: var(--accent-end);
  text-decoration: none;
}

.attempts-counter a:hover {
  text-decoration: underline;
}

.sequence-echo {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85em;
  margin: -0.5em 0 0.5em;
}

/* ---------- Auth pages ---------- */

.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3em 1.5em 4em;
}

.auth-card {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 920px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.auth-form-panel {
  flex: 1;
  min-width: 0;
  padding: 3em 2.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-panel h1 {
  text-align: left;
  margin: 0 0 1.2em;
  font-size: 1.8em;
}

.auth-form-panel form {
  margin: 0;
  align-items: stretch;
}

.auth-form-panel form label {
  text-align: left;
  align-self: flex-start;
}

.auth-form-panel form input {
  width: 100%;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: 100%;
  padding: 0.75em 1em;
  margin-bottom: 1.4em;
  background: #f4f4f5;
  color: #1f2430;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95em;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-google .coming-soon {
  font-size: 0.7em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.2em 0.5em;
  border-radius: var(--radius-pill);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.4em;
  color: var(--text-muted);
  font-size: 0.82em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--panel-border);
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 3.2em;
}

.toggle-password {
  position: absolute;
  right: 0.9em;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0.3em;
  margin: 0;
}

.toggle-password:hover {
  color: #ffffff;
}

.btn-full {
  width: 100%;
  text-align: center;
}

.auth-visual-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2em;
  padding: 1.6em;
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.18), rgba(59, 130, 246, 0.12));
  border-left: 1px solid var(--panel-border);
}

.auth-visual-panel .demo-window {
  background: #0d1016;
}

.visual-caption-card {
  background: rgba(13, 16, 22, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 1.1em 1.2em;
}

.visual-caption-card p {
  margin: 0 0 0.9em;
  color: var(--text-muted);
  font-size: 0.9em;
  line-height: 1.5;
}

.visual-chips {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.72em;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  padding: 0.35em 0.7em;
  border-radius: var(--radius-pill);
}

.chip-arrow {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-end);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
}

.auth-subhead {
  text-align: left;
  color: var(--text-muted);
  margin: -0.8em 0 1.5em;
}

.auth-switch {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.92em;
  margin-top: 1.2em;
}

.auth-switch a {
  color: var(--accent-end);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5em 0;
}

form label {
  margin-bottom: 0.5em;
  font-size: 1.05em;
  color: var(--text-muted);
}

form input {
  padding: 0.8em 1em;
  font-size: 1em;
  margin-bottom: 1em;
  width: 80%;
  max-width: 400px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
}

form input:focus {
  outline: none;
  border-color: var(--accent-end);
}

form button {
  padding: 0.8em 1.6em;
  font-size: 1em;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
  transition: transform 0.15s, box-shadow 0.2s;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.45);
}

.results {
  margin-top: 2em;
}

.results ul {
  list-style: none;
  padding: 0;
}

.results li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  padding: 1.1em;
  border-radius: var(--radius-md);
  margin-bottom: 1em;
}

.math {
  display: block;
  color: var(--formula);
}

.graph-card {
  margin-top: 1.5em;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 1.1em;
}

.graph-card-label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.72em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8em;
}

.graph-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.flashes {
  list-style: none;
  padding: 0;
  text-align: center;
}

.flashes li {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
  padding: 0.7em;
  margin-bottom: 1em;
  border-radius: var(--radius-md);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    text-align: center;
  }
  .eyebrow,
  .hero-ctas {
    justify-content: center;
  }
  .hero h1 {
    text-align: center;
  }
  .hero p.subhead {
    max-width: 560px;
    margin: 0 auto 1.8em;
  }
  .hero-helper {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2.1em;
  }
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
  }
  .hero-caption {
    flex-direction: column;
    gap: 0.4em;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-tagline {
    text-align: left;
    max-width: 100%;
  }
  .section-title {
    font-size: 2em;
  }
}

@media (max-width: 600px) {
  .math {
    word-break: break-all;
  }
  .container {
    padding: 1.4em;
    margin: 1.2em auto;
  }
  .auth-visual-panel {
    display: none;
  }
}

@media (max-width: 820px) and (min-width: 601px) {
  .auth-card {
    flex-direction: column;
  }
  .auth-visual-panel {
    border-left: none;
    border-top: 1px solid var(--panel-border);
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0 0.75em;
  }
  .nav-container {
    padding: 0.5em 0.5em 0.5em 0.8em;
    gap: 0.8em;
  }
  .logo-tagline {
    display: none;
  }
  .btn-nav {
    padding: 0.5em 1em;
    font-size: 0.82em;
  }
  .hero {
    padding-top: 3em;
  }
  .hero h1 {
    font-size: 1.8em;
  }
  .hero p.subhead {
    font-size: 1em;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    text-align: center;
  }
  .demo-title {
    display: none;
  }
  .demo-body {
    padding: 1.1em 1.1em 0.2em;
  }
  .demo-input-box {
    font-size: 0.95em;
    gap: 0.5em;
    padding: 0.8em 1em;
  }
  .demo-formula {
    font-size: 1.3em;
  }
  .section-title {
    font-size: 1.6em;
  }
  .section-tagline {
    font-size: 0.95em;
  }
  .pricing-card {
    padding: 1.4em;
  }
  .step-card {
    padding: 1.3em;
  }
  .footer-links {
    gap: 2em;
  }
}
