/* ==========================================================================
   WHICH DOTS (whichdots.com) — Clean Single-Hero Swiss Morphism
   ========================================================================== */

:root {
  --bg-canvas: #EAE7E0;
  --bg-surface: #F1EFEA;
  --bg-elevated: #F7F5F0;
  --bg-well: #E3DFD7;

  --ink-primary: #1F242A;
  --ink-secondary: #48505A;
  --ink-muted: #6E7781;

  --accent-red: #C82829;
  --accent-red-soft: rgba(200, 40, 41, 0.1);

  --grid-hairline: #CDC9BF;

  --shadow-extrude: 
    7px 7px 16px rgba(31, 36, 42, 0.08),
    -6px -6px 14px rgba(255, 255, 255, 0.82),
    inset 1px 1px 0px rgba(255, 255, 255, 0.9);

  --shadow-extrude-sm: 
    4px 4px 9px rgba(31, 36, 42, 0.08),
    -3px -3px 8px rgba(255, 255, 255, 0.85),
    inset 1px 1px 0px rgba(255, 255, 255, 0.9);

  --shadow-well: 
    inset 4px 4px 9px rgba(31, 36, 42, 0.09),
    inset -4px -4px 9px rgba(255, 255, 255, 0.85);

  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-input: 11px;

  --font-sans: "Inter", "Neue Haas Grotesk Text Pro", "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-canvas);
  background-image: radial-gradient(rgba(31, 36, 42, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.5;
  padding: clamp(12px, 2.5vw, 32px);
}

/* ==========================================================================
   SWISS ARCHITECTURAL SHELL
   ========================================================================== */

.swiss-shell {
  width: 100%;
  max-width: 1280px;
  border: 1.5px solid var(--ink-primary);
  border-radius: 22px;
  background-color: var(--bg-canvas);
  box-shadow: 0 24px 60px rgba(31, 36, 42, 0.07);
  overflow: hidden;
}

.morph-surface {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-extrude);
}

.morph-well {
  background: var(--bg-well);
  border: 1px solid rgba(31, 36, 42, 0.07);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-well);
}

/* ==========================================================================
   HEADER BAR
   ========================================================================== */

.site-header {
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid var(--ink-primary);
  background: var(--bg-surface);
}

.header-cell {
  padding: 16px 28px;
  display: flex;
  align-items: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink-primary);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: var(--shadow-extrude-sm);
  transition: transform 0.2s ease;
}

.brand-lockup:hover .logo-mark {
  transform: translateY(-1px) scale(1.02);
}

.logo-bezel {
  fill: var(--bg-elevated);
  stroke: var(--ink-primary);
  stroke-width: 1.8;
}

.logo-edge {
  stroke: var(--ink-primary);
  stroke-width: 1.6;
}

.logo-edge-active {
  stroke: var(--accent-red);
  stroke-width: 2;
}

.logo-edge-dashed {
  stroke: var(--ink-muted);
  stroke-width: 1.4;
  stroke-dasharray: 2.5 2.5;
}

.logo-dot-ink {
  fill: var(--ink-primary);
}

.logo-dot-muted {
  fill: var(--ink-muted);
}

.logo-dot-center {
  fill: var(--bg-elevated);
  stroke: var(--accent-red);
  stroke-width: 2.4;
}

.logo-dot-red {
  fill: var(--accent-red);
}

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

.brand-name {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
}

.hero-copy-col {
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--grid-hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.hero-top {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: clamp(1.75rem, 2.55vw, 2.65rem);
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink-primary);
}

.headline-row {
  display: block;
  white-space: nowrap;
}

.headline-accent {
  color: var(--accent-red);
}

/* Clean, un-cluttered description text just like the earlier version */
.hero-callout {
  font-size: 0.98rem;
  color: var(--ink-secondary);
  line-height: 1.65;
  max-width: 48ch;
}

/* Status Pill right above the Newsletter */
.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-extrude-sm);
  border: 1px solid rgba(31, 36, 42, 0.08);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-primary);
}

.status-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(200, 40, 41, 0.2);
  animation: pulse-beacon 2.4s infinite ease-in-out;
}

@keyframes pulse-beacon {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(200, 40, 41, 0.22);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 6px rgba(200, 40, 41, 0.06);
  }
}

/* Newsletter Card */
.newsletter-card {
  width: 100%;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.swiss-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
}

.inline-input-row {
  display: flex;
  gap: 10px;
}

.morph-input {
  flex: 1;
  min-width: 0;
  padding: 12px 15px;
  border-radius: var(--radius-input);
  border: 1.5px solid rgba(31, 36, 42, 0.16);
  background: var(--bg-elevated);
  box-shadow: inset 2px 2px 5px rgba(31, 36, 42, 0.05);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--ink-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.morph-input::placeholder {
  color: var(--ink-muted);
  opacity: 0.75;
}

.morph-input:focus {
  outline: none;
  border-color: var(--ink-primary);
  box-shadow: 0 0 0 3px rgba(200, 40, 41, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-input);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  border: 1.5px solid var(--ink-primary);
  white-space: nowrap;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background-color: var(--ink-primary);
  color: var(--bg-elevated);
  box-shadow: 
    4px 4px 10px rgba(31, 36, 42, 0.16),
    -2px -2px 6px rgba(255, 255, 255, 0.7);
}

.btn-primary:hover {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-1px);
}

.btn-arrow {
  transition: transform 0.18s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn:disabled .btn-arrow {
  transform: none;
}

.early-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  padding-top: 2px;
}

.disclaimer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-red);
  opacity: 0.85;
  flex-shrink: 0;
}

/* Form Feedback */
.form-feedback {
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(31, 36, 42, 0.14);
}

.form-feedback.is-error {
  border-color: rgba(200, 40, 41, 0.35);
}

.form-feedback[hidden] {
  display: none;
}

.feedback-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.feedback-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-primary);
}

.status-dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-red);
}

.feedback-pos {
  color: var(--accent-red);
}

.feedback-copy {
  font-size: 0.83rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   RIGHT COLUMN: NETWORK TOPOLOGY + SINGLE-BUTTON READOUT
   ========================================================================== */

.hero-visual-col {
  padding: clamp(20px, 3vw, 36px);
  display: flex;
  align-items: stretch;
  background: linear-gradient(145deg, rgba(255,255,255,0.28), rgba(0,0,0,0.015));
}

.diagram-frame {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.network-stage {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.network-svg {
  width: 100%;
  height: auto;
  max-height: 320px;
  display: block;
}

.svg-grid-lines line {
  stroke: rgba(31, 36, 42, 0.05);
  stroke-width: 1;
}

.edge {
  fill: none;
}

.edge-ink {
  stroke: #282E35;
  stroke-width: 1.85;
}

.edge-muted {
  stroke: #76808A;
  stroke-width: 1.45;
}

.edge-red {
  stroke: var(--accent-red);
  stroke-width: 2.15;
}

.edge-dashed {
  stroke-dasharray: 6 5;
}

.node {
  cursor: pointer;
  transition: filter 0.25s ease;
}

.node.is-highlighted {
  filter: url(#node-glow);
}

/* Single-Button Footer Readout */
.diagram-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 13px;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 9px;
  background: var(--bg-well);
  box-shadow: var(--shadow-well);
  border: 1px solid rgba(31, 36, 42, 0.08);
  flex-shrink: 0;
}

.toggle-opt {
  border: none;
  background: transparent;
  padding: 5px 11px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.toggle-opt:hover {
  color: var(--ink-primary);
}

.toggle-opt.is-active {
  background: var(--bg-elevated);
  color: var(--ink-primary);
  box-shadow: var(--shadow-extrude-sm);
}

.toggle-opt[data-mode="receive"].is-active {
  color: var(--accent-red);
}

.readout-text {
  flex: 1;
  font-size: 0.88rem;
  color: var(--ink-primary);
  line-height: 1.48;
  min-width: 0;
}

.cycle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--ink-primary);
  background: var(--ink-primary);
  color: var(--bg-elevated);
  box-shadow: 
    3px 3px 8px rgba(31, 36, 42, 0.16),
    -2px -2px 6px rgba(255, 255, 255, 0.7);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.cycle-icon {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cycle-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-1px);
}

.cycle-btn:hover .cycle-icon {
  transform: rotate(90deg);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy-col {
    border-right: none;
    border-bottom: 1px solid var(--grid-hairline);
  }
}

@media (max-width: 640px) {
  .headline-row {
    white-space: normal;
  }
  .inline-input-row {
    flex-direction: column;
  }
  .diagram-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
