/* ===== BAUHAUS — Concrete, Geometric, Heavy ===== */

:root {
  --white: #F2F0EB;
  --cream: #E8E4DC;
  --concrete: #D1CCC4;
  --ink: #1A1918;
  --ink-soft: #3A3836;
  --ink-muted: #7A7672;
  --red: #D03020;
  --blue: #2050C8;
  --yellow: #E8B820;
  --green: #2A8848;
  --board-l: #D8C8A4;
  --board-d: #8C7450;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--white); }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }

.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.88em; }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

.section-label.light { color: rgba(242, 240, 235, 0.4); }

/* ===== Nav ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border-bottom: 3px solid var(--ink);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

.logo-block {
  width: 14px;
  height: 14px;
  background: var(--red);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink) !important;
  border: 2px solid var(--ink);
  padding: 0.35rem 0.9rem;
}

.nav-gh:hover { background: var(--ink); color: var(--white) !important; }

/* ===== Hero — split layout ===== */
.hero {
  min-height: 100vh;
  padding: 7rem 3rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  border-bottom: 3px solid var(--ink);
}

.hero-left {
  max-width: 560px;
}

.hero-overline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
}

.hero h1 { margin-bottom: 2rem; }

.h1-top {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: 0.06em;
  line-height: 0.9;
  color: var(--ink);
}

.h1-mid {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  letter-spacing: 0.04em;
  line-height: 0.85;
  color: var(--red);
  margin-left: -4px;
}

.h1-bot {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
  margin-top: 0.3rem;
}

.hero-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 440px;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.btn-red {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  background: var(--red);
  color: var(--white);
  padding: 0.9rem 2.8rem;
  border: none;
  text-decoration: none;
  transition: transform 0.15s;
}

.btn-red:hover { transform: translateY(-2px); color: var(--white); }

.btn-wire {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding: 0.9rem 2.4rem;
  border: 3px solid var(--ink);
  text-decoration: none;
  transition: all 0.15s;
}

.btn-wire:hover { background: var(--ink); color: var(--white); }

/* Hero screenshot (right side) */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-screenshot {
  width: 100%;
  max-width: 540px;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

/* ===== Divider bar ===== */
.divider-bar {
  height: 6px;
  background: var(--ink);
}

/* ===== Geometric divider ===== */
.geo-divider {
  padding: 1rem 0;
}

.geo-divider svg {
  width: 100%;
  height: 60px;
}

/* ===== Product ===== */
.product-section {
  padding: 4rem 3rem;
  border-bottom: 3px solid var(--ink);
}

.product-label {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.label-line { flex: 1; height: 3px; background: var(--ink); }

.label-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.product-frame {
  max-width: 1100px;
  margin: 0 auto;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}

/* ===== Problem ===== */
.problem-section {
  padding: 6rem 3rem;
  border-bottom: 3px solid var(--ink);
  background: var(--cream);
}

.problem-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}

.problem-grid.in { opacity: 1; transform: translateY(0); }

.problem-shape svg {
  width: 120px;
  height: auto;
}

.problem-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.problem-text p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 540px;
  line-height: 1.7;
}

.problem-bold {
  font-weight: 700;
  color: var(--ink) !important;
  font-size: 1rem !important;
}

/* ===== Method ===== */
.method-section {
  padding: 6rem 3rem;
  border-bottom: 3px solid var(--ink);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.method-card {
  padding: 2.5rem;
  border: 3px solid var(--ink);
  margin-right: -3px;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.method-card.in { opacity: 1; transform: translateY(0); }
.method-card:nth-child(2).in { transition-delay: 0.1s; }
.method-card:nth-child(3).in { transition-delay: 0.2s; }

.method-shape {
  margin-bottom: 2rem;
}

.method-shape svg {
  width: 64px;
  height: 64px;
}

.method-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--concrete);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.method-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.method-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 25, 24, 0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 3px solid rgba(255, 255, 255, 0.1);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-trigger { cursor: zoom-in; display: block; }
.lightbox-trigger img { transition: opacity 0.2s; }
.lightbox-trigger:hover img { opacity: 0.85; }

/* ===== Comparison ===== */
.comp-section {
  padding: 6rem 3rem;
  border-bottom: 3px solid var(--ink);
  background: var(--cream);
}

.comp-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}

.comp-blocks.in { opacity: 1; transform: translateY(0); }

.comp-col {
  padding: 2rem;
  border: 3px solid var(--ink);
  margin-right: -3px;
  background: var(--white);
}

.comp-col.highlight {
  background: var(--ink);
  color: var(--white);
}

.comp-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--ink);
}

.comp-col.highlight .comp-header { border-bottom-color: rgba(255, 255, 255, 0.15); }

.comp-header h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.comp-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.comp-col li {
  font-size: 0.85rem;
  padding-left: 1.4rem;
  position: relative;
}

.comp-col li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 0.6rem;
  top: 3px;
}

li.yes::before { content: '■'; color: var(--green); }
li.no::before { content: '□'; color: var(--ink-muted); }

.comp-col.highlight li.yes::before { color: var(--yellow); }
.comp-col.highlight li { color: rgba(242, 240, 235, 0.75); }
.comp-col.highlight li.yes { color: var(--white); }
li.no { color: var(--ink-muted); }

/* ===== Dashboard ===== */
.dash-section {
  padding: 6rem 3rem;
  border-bottom: 3px solid var(--ink);
}

.dash-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 3rem;
  max-width: 600px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.dash-grid figure {
  border: 3px solid var(--ink);
  margin-right: -3px;
  margin-bottom: -3px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dash-grid figure.in { opacity: 1; transform: translateY(0); }
.dash-grid figure:nth-child(2).in { transition-delay: 0.05s; }
.dash-grid figure:nth-child(3).in { transition-delay: 0.1s; }
.dash-grid figure:nth-child(4).in { transition-delay: 0.15s; }
.dash-grid figure:nth-child(5).in { transition-delay: 0.2s; }
.dash-grid figure:nth-child(6).in { transition-delay: 0.25s; }
.dash-grid figure:nth-child(7).in { transition-delay: 0.3s; }

.dg-wide { grid-column: span 2; }

.dash-grid figcaption {
  padding: 8px 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  border-top: 3px solid var(--ink);
  background: var(--white);
}

/* ===== Deploy ===== */
.deploy-section {
  background: var(--ink);
  color: var(--white);
  padding: 6rem 3rem;
  border-bottom: 3px solid var(--ink);
}

.deploy-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}

.deploy-inner.in { opacity: 1; transform: translateY(0); }

.deploy-left h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.deploy-left p {
  font-size: 0.92rem;
  color: rgba(242, 240, 235, 0.55);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.deploy-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.deploy-links a {
  font-size: 0.85rem;
  color: rgba(242, 240, 235, 0.4);
}

.deploy-links a:hover { color: var(--white); }

.terminal {
  background: rgba(255, 255, 255, 0.04);
  border: 3px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.terminal-bar {
  padding: 10px 12px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.td { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }

.terminal pre {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(242, 240, 235, 0.65);
  overflow-x: auto;
}

.terminal pre em { font-style: normal; }
.tc { color: rgba(242, 240, 235, 0.2); }
.tp { color: var(--red); }

.copy-btn {
  position: absolute;
  top: 40px;
  right: 10px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: rgba(242, 240, 235, 0.35);
  padding: 3px 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--white); }

/* ===== Status ===== */
.status-section {
  padding: 6rem 3rem;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}

.status-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}

.status-grid.in { opacity: 1; transform: translateY(0); }

.status-col {
  padding: 2rem;
  border: 3px solid var(--ink);
  margin-right: -3px;
  background: var(--white);
}

.status-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--ink);
}

.status-dot {
  width: 10px;
  height: 10px;
}

.status-dot.green { background: var(--green); }
.status-dot.yellow { background: var(--yellow); }
.status-dot.gray { background: var(--concrete); }

.status-item {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--cream);
}

.status-item:last-child { border-bottom: none; }

/* ===== Footer ===== */
footer {
  background: var(--ink);
  padding: 2rem 3rem;
  border-top: 6px solid var(--red);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-block {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--red);
}

.footer-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--white);
}

.footer-license {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(242, 240, 235, 0.25);
}

.footer-right {
  display: flex;
  gap: 2rem;
}

.footer-right a {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(242, 240, 235, 0.35);
}

.footer-right a:hover { color: var(--white); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 3rem;
    min-height: auto;
  }

  .hero-right {
    order: -1;
  }

  .hero-screenshot { max-width: 340px; }
}

@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links a:not(.nav-gh) { display: none; }

  .h1-mid { font-size: 4rem; }

  .problem-grid { grid-template-columns: 1fr; gap: 2rem; }
  .problem-shape { display: none; }

  .method-grid { grid-template-columns: 1fr; }
  .method-card { margin-right: 0; margin-bottom: -3px; }

  .comp-blocks { grid-template-columns: 1fr; }
  .comp-col { margin-right: 0; margin-bottom: -3px; }

  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dg-wide { grid-column: span 2; }

  .deploy-inner { grid-template-columns: 1fr; gap: 2rem; }

  .status-grid { grid-template-columns: 1fr; }
  .status-col { margin-right: 0; margin-bottom: -3px; }

  .product-section, .problem-section, .method-section,
  .comp-section, .dash-section,
  .deploy-section, .status-section { padding-left: 1.5rem; padding-right: 1.5rem; }

  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .h1-top { font-size: 2.4rem; }
  .h1-mid { font-size: 3rem; }
  .h1-bot { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .dash-grid { grid-template-columns: 1fr; }
  .dg-wide { grid-column: auto; }
}
