/* BrainBay landing — shop-floor practical */

:root {
  --bg: #070d18;
  --bg-elevated: #0d1524;
  --bg-card: #121b2e;
  --border: #2a3a55;
  --text: #eef3fb;
  --muted: #9aabc6;
  --faint: #6b7c99;
  --accent: #e8a317;
  --accent-bright: #f5c542;
  --accent-dim: #c4840e;
  --accent-soft: rgba(232, 163, 23, 0.14);
  --metal: #c5cedd;
  --green: #34d399;
  --radius: 10px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --max: 1100px;
  --narrow: 640px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: #fbbf24; }

img { max-width: 100%; display: block; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.narrow { width: min(100% - 2rem, var(--narrow)); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}
.logo:hover { opacity: 0.92; }

.logo-img {
  height: 36px;
  width: auto;
  max-width: min(240px, 62vw);
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #14120c;
}
.btn-primary:hover {
  background: var(--accent-bright);
  color: #14120c;
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--muted);
  color: var(--text);
  background: var(--bg-elevated);
}

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

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  background:
    radial-gradient(ellipse 70% 50% at 75% 10%, rgba(232, 163, 23, 0.11), transparent 55%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(42, 58, 85, 0.35), transparent 50%),
    var(--bg);
}

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

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 700;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--faint);
  margin: 0;
}

/* Product screenshot slider */
.hero-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  position: relative;
}

.hero-slider {
  position: relative;
  background: #111;
}

.hero-slide {
  display: none;
  margin: 0;
}
.hero-slide.is-active { display: block; }
.hero-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem 0.7rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.slider-btn {
  width: 32px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.slider-btn:hover {
  border-color: var(--muted);
  background: var(--bg);
}
.slider-dots {
  display: flex;
  gap: 0.4rem;
}
.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
}
.slider-dots button.is-active {
  background: var(--accent);
}

.panel-chrome {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.panel-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.panel-body { padding: 1rem; }

.code-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 0.65rem;
}
.code-row .label {
  font-family: var(--font);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 0.15rem;
}
.code-row span:last-child { color: var(--muted); }

.work-item {
  margin-top: 0.85rem;
  padding: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}
.work-item.muted {
  border-left-color: var(--border);
  opacity: 0.75;
}
.wi-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.wi-num {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.wi-head strong {
  flex: 1;
  font-size: 0.9rem;
}
.wi-time {
  font-family: var(--font);
  font-size: 0.72rem;
  color: var(--faint);
}
.work-item ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.work-item li { margin-bottom: 0.2rem; }

/* Sections */
.section {
  padding: 4.5rem 0;
}
.section.alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2.5rem;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.problem .section-head {
  max-width: 40rem;
}

.section-lead {
  margin: 0.75rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.problem-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.problem-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature:last-child:nth-child(3n + 1) {
  grid-column: 2;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.45rem;
}
.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.feature-footnote {
  margin: 1.75rem 0 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}
.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.who-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.who-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.who-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Waitlist */
.waitlist {
  padding-bottom: 5rem;
}
.waitlist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.waitlist-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.waitlist-lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
}

.form-row {
  margin-bottom: 1rem;
}
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row textarea { resize: vertical; min-height: 80px; }

.form-fine {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--faint);
  text-align: center;
}

.form-success {
  padding: 1rem;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--green);
}
.form-success p { margin: 0; }

.login-nudge {
  text-align: center;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Terms */
.legal {
  padding: 3rem 0 4.5rem;
}
.legal h1 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
.legal-meta {
  color: var(--faint);
  margin: 0 0 1.75rem;
}
.legal h2 {
  font-size: 1.12rem;
  margin: 1.85rem 0 0.45rem;
}
.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.15rem 0 0.35rem;
}
.legal p,
.legal li {
  color: var(--muted);
}
.legal p { margin: 0.55rem 0; }
.legal ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
}
.legal li { margin: 0.25rem 0; }
.legal a { font-weight: 500; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-elevated);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}
.footer-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #000;
  border: 1px solid var(--border);
}
.footer-id {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.2;
}
.footer-name {
  letter-spacing: -0.02em;
}
.footer-domain {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--faint);
}
.footer-links {
  display: flex;
  gap: 1.25rem;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  margin: 0;
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--faint);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .problem-grid,
  .feature-grid,
  .who-grid {
    grid-template-columns: 1fr;
  }
  .feature:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-copy { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero { padding: 2.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .waitlist-card { padding: 1.35rem; }
}
