/* =============================================
   ZANSHIN LANDING PAGE — STYLES
   ============================================= */

/* Design Tokens */
:root {
  --black: #0A0A0A;
  --white: #F5F5F0;
  --accent-blue: #2B6CFF;
  --accent-green: #3ECF6E;
  --gray-mid: #6B6B6B;
}

/* =============================================
   PROMO BANNER
   ============================================= */
.promo-banner {
  width: 100%;
  background-color: #C0000A;
  border-bottom: 1px solid #FF1A24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4%;
  position: relative;
  gap: 16px;
  /* Subtle scanline overlay to match site aesthetic */
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.08) 0px,
    rgba(0, 0, 0, 0.08) 1px,
    transparent 1px,
    transparent 4px
  );
}

.promo-banner.hidden {
  display: none;
}

.promo-banner-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.promo-banner-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: #F5F5F0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: promoPulse 2.5s infinite ease-in-out;
}

@keyframes promoPulse {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 4px rgba(245, 245, 240, 0.4);
  }
  50% {
    opacity: 0.5;
    text-shadow: none;
  }
}

.promo-banner-deco {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(245, 245, 240, 0.5);
  letter-spacing: 0.05em;
  animation: promoPulse 2.5s infinite ease-in-out;
}

.promo-banner-close {
  background: none;
  border: 1px solid rgba(245, 245, 240, 0.35) !important;
  color: rgba(245, 245, 240, 0.7);
  font-size: 11px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.promo-banner-close:hover {
  color: #F5F5F0;
  border-color: rgba(245, 245, 240, 0.8) !important;
}

/* Global Overrides & Brutalist Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0px !important; /* Strict token: zero rounded corners */
  box-shadow: none !important;    /* Strict token: zero drop shadows */
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Scale: brutalist discrete jumps */
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
}

.hero-title {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.section-header {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.body-text {
  font-size: 16px;
  line-height: 1.6;
}

.label-text {
  font-size: 13px;
  color: var(--gray-mid);
}

/* Responsive typography jumps instead of fluid scaling */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 40px;
  }
  .hero-subtitle {
    font-size: 24px;
  }
}

.tech-metadata {
  font-size: 11px;
  color: var(--gray-mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Pure CSS Stripe Ribbon */
.stripe-ribbon {
  height: 14px;
  background: repeating-linear-gradient(
    45deg,
    var(--gray-mid),
    var(--gray-mid) 2px,
    transparent 2px,
    transparent 10px
  );
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
  width: 100%;
}

/* Header Nav */
header {
  width: 100%;
  padding: 24px 4%;
  border-bottom: 1px solid var(--gray-mid);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--black);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-green);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Section 1: Hero */
.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: calc(100vh - 75px);
  align-items: center;
  gap: 80px;
  padding: 80px 4%;
  position: relative;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 640px;
}

.hero-canvas-container {
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border: 1px solid var(--gray-mid);
  background-color: #030303;
  padding: 12px;
}

#network-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Waitlist Input Elements */
.waitlist-form {
  display: flex;
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--gray-mid);
}

.waitlist-input {
  flex: 1;
  background-color: transparent;
  border: none;
  padding: 16px;
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  outline: none;
}

.waitlist-input::placeholder {
  color: var(--gray-mid);
}

.waitlist-submit {
  background-color: var(--accent-blue);
  color: var(--white);
  border: none;
  padding: 16px 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s ease;
}

.waitlist-submit:hover {
  opacity: 0.9;
}

/* Section 2: The Problem (First Color Break) */
.problem-section {
  background-color: var(--white);
  color: var(--black);
  padding: 140px 4%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.problem-header-indicator {
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(10, 10, 10, 0.2);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.problem-content {
  max-width: 800px;
  font-size: 24px;
  line-height: 1.6;
  font-weight: 400;
}

@media (max-width: 768px) {
  .problem-content {
    font-size: 18px;
  }
}

/* Section 3: What it measures */
.measures-section {
  padding: 120px 4%;
  border-top: 1px solid var(--gray-mid);
}

.measures-container {
  max-width: 1200px;
  margin: 0 auto;
}

.bento-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.measures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--gray-mid);
}

.bento-card {
  padding: 48px;
  border: 1px solid var(--gray-mid);
  margin: -1px 0px 0px -1px; /* border-collapse simulation */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  background-color: var(--black);
  position: relative;
}

.bento-card::before {
  content: '+';
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--gray-mid);
  font-size: 14px;
  font-family: 'IBM Plex Mono', monospace;
}

.bento-card::after {
  content: '+';
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: var(--gray-mid);
  font-size: 14px;
  font-family: 'IBM Plex Mono', monospace;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.bento-visual-container {
  width: 100%;
  height: 120px;
  margin: 24px 0;
  border-top: 1px dashed var(--gray-mid);
  border-bottom: 1px dashed var(--gray-mid);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.01);
}

.bento-visual-container svg {
  width: 100%;
  height: 100%;
  max-height: 100px;
}

.bento-card h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--white);
}

.bento-card p {
  color: var(--gray-mid);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .bento-card {
    padding: 32px;
    min-height: 340px;
  }
}

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

/* Section 4: How it works */
.how-section {
  padding: 120px 4%;
  border-top: 1px solid var(--gray-mid);
}

.how-container {
  max-width: 1200px;
  margin: 0 auto;
}

.how-list {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
}

.how-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 32px 0;
  border-top: 1px solid var(--gray-mid);
  align-items: center;
}

.how-step:last-child {
  border-bottom: 1px solid var(--gray-mid);
}

.step-number {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-green);
}

.step-text {
  font-size: 18px;
  color: var(--white);
}

@media (max-width: 768px) {
  .how-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Section 5: The Line That Matters */
.line-section {
  padding: 140px 4%;
  background-color: var(--black);
  border-top: 1px solid var(--gray-mid);
  display: flex;
  justify-content: center;
}

.line-container {
  max-width: 1000px;
  color: var(--accent-blue);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.statement-line {
  font-size: 32px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .statement-line {
    font-size: 22px;
  }
}

/* Section 6: Waitlist CTA Closing */
.cta-section {
  padding: 120px 4% 120px 4%;
  border-top: 1px solid var(--gray-mid);
  display: flex;
  justify-content: center;
}

.cta-container {
  max-width: 600px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.cta-title {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 500;
}

/* Success Panel */
.success-panel {
  border: 1px solid var(--accent-green);
  background-color: rgba(62, 207, 110, 0.05);
  padding: 24px;
  width: 100%;
  max-width: 520px;
  text-align: left;
}

.success-header {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.success-body {
  font-size: 13px;
  color: var(--white);
}

/* Mobile adjustments */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    padding: 40px 4%;
    gap: 48px;
  }
  .hero-canvas-container {
    order: -1;
    height: 320px;
  }
}
