:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-soft: rgba(2, 132, 199, 0.09);
  --ok: #15803d;
  --ok-soft: rgba(22, 163, 74, 0.1);
  --warn: #b45309;
  --warn-soft: rgba(217, 119, 6, 0.12);
  --danger: #b91c1c;
  --danger-soft: rgba(220, 38, 38, 0.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Subtle digital connections background */
.bg-tech-accent {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
}

.bg-glow-1 {
  width: 480px;
  height: 480px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12), transparent 70%);
}

.bg-glow-2 {
  width: 420px;
  height: 420px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.09), transparent 70%);
}

.bg-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.network-links line {
  stroke: rgba(15, 23, 42, 0.065);
  stroke-width: 1;
}

.network-nodes circle {
  fill: rgba(15, 23, 42, 0.14);
}

.network-nodes .node-accent {
  fill: rgba(2, 132, 199, 0.28);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 3px 7px;
  border-radius: 4px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-arrow {
  font-family: var(--font-mono);
}

/* Hero */
.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(2, 132, 199, 0.22);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.6);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 32px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 56ch;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-meta {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.hero-meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Technical Spec Panel */
.spec-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.spec-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.spec-dots {
  display: flex;
  gap: 6px;
}

.spec-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.spec-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-right: auto;
  white-space: nowrap;
}

.mode-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 2px;
  flex-shrink: 0;
}

.mode-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mode-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.spec-panel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 12px 14px;
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.stage-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.mono-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 3px;
}

.stage-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-ok {
  color: var(--ok);
  background: var(--ok-soft);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.badge-warn {
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid rgba(217, 119, 6, 0.28);
}

.badge-danger {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.spec-footer {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
}

.spec-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

/* Sections */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background: rgba(241, 245, 249, 0.72);
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.section-header {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-header h2,
.panel h2,
.form-info h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Gantt Showcase */
.gantt-showcase {
  margin: 32px 0 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.gantt-showcase-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.gantt-showcase img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}

.gantt-showcase-caption {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* Split Section */
.split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.tech-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.tech-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.tech-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
}

.tech-list strong {
  color: var(--text);
}

.panel-text {
  margin: 16px 0 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.inline-link {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

/* Form Section */
.form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.form-info p {
  margin: 0;
  color: var(--text-muted);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.form-input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-legal {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.form-legal strong {
  color: var(--text);
  font-weight: 600;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 14px;
  border-radius: var(--radius);
}

.form-status.is-success {
  color: var(--ok);
  background: var(--ok-soft);
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.form-status.is-error {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Footer */
.site-footer {
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .split-grid,
  .form-wrapper {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0;
  }
}

@media (max-width: 680px) {
  .header-nav .nav-link {
    display: none;
  }

  .hero-meta,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .stage-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-wrapper {
    padding: 24px;
    gap: 24px;
  }

  .input-row {
    flex-direction: column;
  }
}
