/* ═══════════════════════════════════════════════════════════════
   Plan & Adjust — Neo-Brutalist Design System
   Fonts: Bebas Neue (display) · Space Grotesk (body) · Space Mono (labels)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ─── Design Tokens ──────────────────────────────────────────── */
:root {
  --b-bg:          #F0EBE1;
  --b-bg-dark:     #0D0D0D;
  --b-bg-white:    #FFFFFF;
  --b-ink:         #0D0D0D;
  --b-ink-soft:    #555;
  --b-red:         #E63124;
  --b-red-dark:    #C41E3A;
  --b-yellow:      #FFE135;

  --b-border:      2px solid #0D0D0D;
  --b-border-w:    3px solid #0D0D0D;
  --b-shadow:      4px 4px 0 #0D0D0D;
  --b-shadow-lg:   8px 8px 0 #0D0D0D;
  --b-shadow-red:  4px 4px 0 var(--b-red);

  --font-display:  'Bebas Neue', sans-serif;
  --font-body:     'Space Grotesk', system-ui, sans-serif;
  --font-mono:     'Space Mono', monospace;
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--b-bg);
  color: var(--b-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Keyframes ──────────────────────────────────────────────── */
@keyframes slideUp {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

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

@keyframes pulse-border {
  0%, 100% { box-shadow: var(--b-shadow); }
  50%       { box-shadow: var(--b-shadow-lg); }
}

/* ─── Header ─────────────────────────────────────────────────── */
.b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--b-bg);
  border-bottom: var(--b-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
}

.b-logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  color: var(--b-ink);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: color 0.2s;
}

.b-logo:hover { color: var(--b-red); }

.b-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.b-nav a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--b-ink);
  text-decoration: none;
  padding: 8px 12px;
  position: relative;
}

.b-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 12px; right: 12px;
  height: 2px;
  background: var(--b-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease-out);
}

.b-nav a:hover::after { transform: scaleX(1); }

.b-nav-cta {
  border: var(--b-border);
  padding: 8px 18px !important;
  background: var(--b-ink);
  color: #fff !important;
  box-shadow: var(--b-shadow);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

.b-nav-cta::after { display: none !important; }

.b-nav-cta:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--b-ink);
}

/* ─── Hero ───────────────────────────────────────────────────── */
.b-hero {
  min-height: 100vh;
  padding-top: 60px;
  display: grid;
  grid-template-rows: 1fr;
  position: relative;
  overflow: hidden;
  background: var(--b-bg);
  border-bottom: var(--b-border-w);
}

.b-hero-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(20rem, 70vw, 120rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.055);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  letter-spacing: 0.02em;
  will-change: transform;
}

.b-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 40px 80px;
  width: 100%;
  gap: 0;
}

.b-hero-left {
  padding-right: 48px;
  border-right: var(--b-border-w);
}

.b-hero-right {
  padding-left: 48px;
  opacity: 0;
  animation: fadeIn 0.9s var(--ease-out) 0.45s forwards;
}

.b-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--b-ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 0.5s var(--ease-out) 0.05s forwards;
}

.b-hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--b-red);
}

.b-hero-title {
  font-family: var(--font-display);
  font-size: clamp(6.5rem, 20vw, 20rem);
  line-height: 0.83;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.b-hero-title-line {
  display: block;
  overflow: hidden;
}

.b-hero-title-word {
  display: block;
  transform: translateY(110%);
  animation: slideUp 0.75s var(--ease-out) forwards;
}

.b-hero-title-line:nth-child(1) .b-hero-title-word { animation-delay: 0.12s; }
.b-hero-title-line:nth-child(2) .b-hero-title-word { animation-delay: 0.24s; color: var(--b-red); }
.b-hero-title-line:nth-child(3) .b-hero-title-word { animation-delay: 0.36s; }

.b-hero-divider {
  height: 3px;
  background: var(--b-ink);
  margin: 24px 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrow 0.6s var(--ease-out) 0.52s forwards;
}

.b-hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--b-ink-soft);
  max-width: 44ch;
  margin: 0 0 32px;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out) 0.58s forwards;
}

.b-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out) 0.68s forwards;
}

.b-hero-video-wrap {
  border: var(--b-border-w);
  box-shadow: var(--b-shadow-lg);
  overflow: hidden;
  position: relative;
  background: var(--b-bg-dark);
}

.b-hero-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
}

.b-hero-video-tag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 7px 14px;
  background: var(--b-ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── Ticker ─────────────────────────────────────────────────── */
.b-ticker {
  background: var(--b-ink);
  border-top: var(--b-border-w);
  border-top-color: var(--b-ink);
  border-bottom: var(--b-border-w);
  border-bottom-color: var(--b-ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
  cursor: default;
}

.b-ticker-track {
  display: inline-flex;
  animation: ticker 28s linear infinite;
  will-change: transform;
}

.b-ticker:hover .b-ticker-track {
  animation-play-state: paused;
}

.b-ticker-item {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 0 28px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0;
}

.b-ticker-sep {
  color: var(--b-red);
  padding: 0 6px;
  font-size: 1.1rem;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.b-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border: var(--b-border);
  cursor: pointer;
  background: none;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
  box-shadow: var(--b-shadow);
  position: relative;
  line-height: 1.2;
  -webkit-appearance: none;
}

.b-btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 var(--b-ink);
}

.b-btn-primary {
  background: var(--b-ink);
  color: #fff;
}

.b-btn-red {
  background: var(--b-red);
  color: #fff;
  border-color: var(--b-ink);
  box-shadow: var(--b-shadow-red);
}

.b-btn-red:hover {
  box-shadow: 0px 0px 0 var(--b-ink);
}

.b-btn-ghost {
  background: transparent;
  color: var(--b-ink);
}

.b-btn-ghost:hover {
  background: var(--b-ink);
  color: #fff;
}

.b-btn-yellow {
  background: var(--b-yellow);
  color: var(--b-ink);
  border-color: var(--b-ink);
}

/* ─── Section base ───────────────────────────────────────────── */
.b-section {
  border-top: var(--b-border-w);
  padding: 88px 40px 100px;
}

.b-section-dark {
  background: var(--b-bg-dark);
  color: #fff;
  border-top-color: var(--b-bg-dark);
}

.b-section-dark .b-section-eyebrow,
.b-section-dark .b-body-text { color: rgba(255, 255, 255, 0.55); }
.b-section-dark .b-section-heading { color: #fff; }

.b-section-white { background: var(--b-bg-white); }
.b-section-cream { background: var(--b-bg); }
.b-section-yellow {
  background: var(--b-yellow);
  border-top-color: var(--b-ink);
}

.b-inner      { max-width: 1200px; margin: 0 auto; }
.b-inner-narrow { max-width: 760px; margin: 0 auto; }

.b-section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--b-ink-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.b-section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--b-red);
  flex-shrink: 0;
}

.b-section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 32px;
  color: var(--b-ink);
}

.b-body-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--b-ink-soft);
  margin: 0 0 20px;
}

.b-body-text:last-child { margin-bottom: 0; }

/* ─── Feature Blocks ─────────────────────────────────────────── */
.b-blocks {
  border-top: var(--b-border-w);
}

.b-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--b-border-w);
  min-height: 500px;
}

.b-block-text {
  padding: 72px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: var(--b-border-w);
}

.b-block-reverse .b-block-text {
  order: 2;
  border-right: none;
  border-left: var(--b-border-w);
}

.b-block-media {
  position: relative;
  overflow: hidden;
  background: var(--b-bg-dark);
}

.b-block-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.b-block-num {
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 0.8;
  color: var(--b-bg);
  -webkit-text-stroke: 2px var(--b-ink);
  margin-bottom: 16px;
  display: block;
}

.b-block-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--b-ink);
}

/* ─── Cards ──────────────────────────────────────────────────── */
.b-card {
  background: var(--b-bg-white);
  border: var(--b-border);
  box-shadow: var(--b-shadow);
  padding: 36px 28px;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.b-card:hover {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--b-ink);
}

.b-card-dark {
  background: var(--b-bg-dark);
  color: #fff;
}

.b-card-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: inherit;
}

.b-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.b-card-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--b-ink-soft);
  margin: 0;
}

.b-card-dark .b-card-text { color: rgba(255, 255, 255, 0.55); }

.b-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: var(--b-border-w);
  box-shadow: var(--b-shadow-lg);
}

.b-card-grid .b-card {
  border: none;
  border-right: var(--b-border);
  box-shadow: none;
}

.b-card-grid .b-card:last-child {
  border-right: none;
}

.b-card-grid .b-card:hover {
  transform: none;
  background: var(--b-yellow);
}

/* ─── Use-case List ──────────────────────────────────────────── */
.b-use-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.b-use-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: var(--b-border);
  font-size: 1.05rem;
  line-height: 1.5;
}

.b-use-list li::before {
  content: counter(li-count, decimal-leading-zero);
  counter-increment: li-count;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--b-red);
  flex-shrink: 0;
  min-width: 28px;
}

.b-use-list { counter-reset: li-count; }

/* ─── Form Elements ──────────────────────────────────────────── */
.b-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.b-form-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--b-ink);
}

.b-form-input {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 16px;
  border: var(--b-border);
  background: var(--b-bg);
  color: var(--b-ink);
  outline: none;
  transition: box-shadow 0.18s;
  border-radius: 0;
  -webkit-appearance: none;
  width: 100%;
}

.b-form-input:focus {
  box-shadow: 4px 4px 0 var(--b-red);
}

.b-form-input::placeholder {
  color: rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

/* ─── Auth Pages ─────────────────────────────────────────────── */
.b-auth-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--b-ink-soft);
  margin: 0 0 12px;
}

.b-auth-page {
  min-height: 100vh;
  background: var(--b-bg);
  display: flex;
  flex-direction: column;
}

.b-auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
}

.b-auth-box {
  width: 100%;
  max-width: 480px;
  background: var(--b-bg-white);
  border: var(--b-border-w);
  box-shadow: var(--b-shadow-lg);
  padding: 52px 48px 48px;
  animation: fadeInUp 0.55s var(--ease-out) forwards;
}

.b-auth-box h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  text-transform: uppercase;
  margin: 0 0 6px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--b-ink);
}

.b-auth-box p {
  font-size: 0.92rem;
  color: var(--b-ink-soft);
  margin: 0 0 28px;
  line-height: 1.65;
}

.b-auth-divider {
  height: 3px;
  background: var(--b-ink);
  margin: 0 0 36px;
}

.b-auth-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--b-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.b-auth-link:hover { color: var(--b-red-dark); }

.b-auth-extra {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--b-ink-soft);
  line-height: 1.6;
}

.b-auth-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.b-auth-error {
  font-size: 0.82rem;
  color: var(--b-red);
  font-weight: 600;
  padding: 12px 16px;
  border: 2px solid var(--b-red);
  background: rgba(230, 49, 36, 0.05);
  margin-top: 14px;
  display: none;
}

.b-auth-error.is-visible { display: block; }

.b-auth-success {
  font-size: 0.82rem;
  color: #155724;
  font-weight: 600;
  padding: 12px 16px;
  border: 2px solid #28a745;
  background: rgba(40, 167, 69, 0.05);
  margin-top: 14px;
  display: none;
}

.b-auth-success.is-visible { display: block; }

/* ─── Footer ─────────────────────────────────────────────────── */
.b-footer {
  background: var(--b-bg-dark);
  color: rgba(255, 255, 255, 0.65);
  border-top: var(--b-border-w);
  border-top-color: var(--b-ink);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.b-footer-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.b-footer-logo:hover { color: var(--b-red); }

.b-footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.b-footer-links {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.b-footer-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.b-footer-links a:hover { color: #fff; }

/* ─── Scroll Reveal ──────────────────────────────────────────── */
.b-reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.b-reveal-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.b-reveal-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.b-reveal.is-visible,
.b-reveal-left.is-visible,
.b-reveal-right.is-visible {
  opacity: 1;
  transform: translate(0);
}

.b-delay-1 { transition-delay: 0.1s; }
.b-delay-2 { transition-delay: 0.2s; }
.b-delay-3 { transition-delay: 0.3s; }
.b-delay-4 { transition-delay: 0.4s; }
.b-delay-5 { transition-delay: 0.5s; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .b-hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 28px 64px;
  }

  .b-hero-left {
    padding-right: 0;
    border-right: none;
    border-bottom: var(--b-border-w);
    padding-bottom: 48px;
    margin-bottom: 40px;
  }

  .b-hero-right {
    padding-left: 0;
  }

  .b-block {
    grid-template-columns: 1fr;
  }

  .b-block-text {
    border-right: none;
    border-bottom: var(--b-border-w);
    padding: 52px 32px;
  }

  .b-block-reverse .b-block-text {
    order: 0;
    border-left: none;
    border-bottom: var(--b-border-w);
  }

  .b-block-media {
    min-height: 320px;
  }

  .b-card-grid {
    grid-template-columns: 1fr;
  }

  .b-card-grid .b-card {
    border-right: none;
    border-bottom: var(--b-border);
  }

  .b-card-grid .b-card:last-child {
    border-bottom: none;
  }

  .b-section {
    padding: 64px 28px 80px;
  }
}

@media (max-width: 700px) {
  .b-header { padding: 0 20px; }

  .b-nav a:not(.b-nav-cta) { display: none; }

  .b-nav-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: var(--b-border);
    background: none;
  }

  .b-nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--b-ink);
  }

  .b-hero-inner { padding: 40px 20px 56px; }

  .b-section { padding: 56px 20px 72px; }

  .b-footer { padding: 20px 20px; }

  .b-auth-box { padding: 36px 28px 32px; }
}
