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

:root {
  --bg: #060908;
  --bg-2: #0a120a;
  --bg-3: #0f1a10;
  --border: #1a2a1a;
  --border-2: #2a3a2a;
  --accent: #5a9a6a;
  --accent-dim: #3a6a4a;
  --accent-dark: #1a3a20;
  --text: #c8dcc8;
  --text-dim: #c8dcc8;
  --text-muted: #a0bca0;
  --text-dead: #a0bca0;
}

body {
  background: var(--bg);
  color: #c8dcc8;
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  line-height: 1.8;
}

.page-grid {
  min-height: 100vh;
}

/* Background grid pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(#0a120a 1px, transparent 1px), linear-gradient(90deg, #0a120a 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Spine */
.spine {
  border-right: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 160px;
  height: 100vh;
  z-index: 100;
}

.spine-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--text-dead);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  margin: 12px 0 20px 0;
}

.spine-seg {
  width: 140px;
  height: 44px;
  clip-path: polygon(6% 0%, 94% 0%, 100% 50%, 94% 100%, 6% 100%, 0% 50%);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #4a7a5a;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.spine-seg.active {
  background: #0d2a14;
  border-color: #3a6a4a;
  color: #8aca9a;
  box-shadow: inset 0 0 12px rgba(90,154,106,0.15);
}

.spine-seg:hover {
  background: #0a2010;
  border-color: #2a5a3a;
  color: #6aaa7a;
}

.spine-seg::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: rgba(90,154,106,0.12);
  pointer-events: none;
}

.spine-seg.active::before {
  background: rgba(90,154,106,0.3);
}

.spine-seg-conn {
  width: 2px;
  height: 8px;
  background: linear-gradient(to bottom, #2a4a2a, #1a2a1a);
  margin: 0 auto;
}

/* Content column */
.content-col {
  margin-left: 160px;
  width: calc(100% - 160px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Topbar */
.topbar {
  border-bottom: 1px solid var(--border);
  padding: 10px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-brand {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.topbar-nav {
  display: none;
  gap: 28px;
}

.topbar-nav a {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
}

.topbar-nav a:hover,
.topbar-nav a.active { color: var(--accent); }

.btn-access {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 6px 18px;
  border: none;
  cursor: pointer;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  text-decoration: none;
  display: inline-block;
}

/* Buttons */
.btn-primary {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 11px 28px;
  border: none;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: color 0.2s, background 0.2s;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-primary:hover::after { opacity: 1; }

.btn-ghost {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  padding: 11px 28px;
  border: 1px solid var(--accent-dim);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  animation: pulse-border 2.5s ease-in-out infinite;
}
.btn-ghost:hover {
  background: var(--accent-dark);
  border-color: var(--accent);
  color: #8aca9a;
  animation: none;
}

@keyframes pulse-border {
  0%, 100% { border-color: var(--accent-dim); box-shadow: none; }
  50% { border-color: var(--accent); box-shadow: 0 0 8px rgba(90,154,106,0.3); }
}

.btn-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dim);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-text::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--accent-dim);
}

/* Cards */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 24px;
}

.card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 8px;
}

.card-rule {
  width: 32px;
  height: 1px;
  background: var(--accent-dim);
  margin: 12px 0;
}

.card-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
}

/* Section headings */
h1, h2, h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
}

h1 { font-size: 52px; line-height: 0.92; }
h2 { font-size: 28px; line-height: 1.1; }
h3 { font-size: 18px; line-height: 1.2; }

.section-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #060908;
  background: var(--accent);
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: #060908;
}

/* Terminal */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

.terminal-window {
  background: #030504;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 580px;
}

.terminal-titlebar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.t-dot-r { background: #2a1a1a; }
.t-dot-y { background: #2a2a1a; }
.t-dot-g { background: #1a2a1a; }

.terminal-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-left: 8px;
}

.terminal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.t-line {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
  white-space: pre;
}

.t-line.cmd { color: var(--accent); }
.t-line.out { color: var(--text-muted); }
.t-line.highlight { color: #8aca9a; }
.t-line.dim { color: var(--text-dead); }
.t-line.result { color: var(--text); }

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

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

.hero-rig-canvas {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  max-height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-rig-canvas canvas {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
}

.hero-wordmark {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(72px, 18vw, 180px);
  line-height: 0.85;
  color: #1a3a20;
  -webkit-text-stroke: 1px rgba(200, 235, 210, 0.25);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.25em;
  color: #4a7a5a;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-caption {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #8aca9a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: 32px;
}
.subhero {
  font-family: 'Share Tech Mono', monospace;
  font-size: 15px;
  line-height: 2;
  color: #c8dcc8;
  max-width: 100%;
  letter-spacing: 0.06em;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #1a2a1a;
}

/* Data panel */
.data-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 24px;
  height: 580px;
  overflow: visible;
}

.data-panel-header {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.data-panel-header span { color: var(--accent); }

.dp-metric {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bg-3);
}

.dp-metric:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dp-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dead);
  margin-bottom: 4px;
}

.dp-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1;
}

.dp-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dp-track {
  height: 1px;
  background: var(--bg-3);
  margin-top: 5px;
}

.dp-fill {
  height: 100%;
  background: var(--accent-dim);
}

/* Page sections */
.page-section {
  padding: 60px 48px;
}


.page-section + .page-section {
  border-top: 1px solid var(--border);
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

/* Prose */
.prose { max-width: 100%; }
.prose p { font-size: 15px; line-height: 1.9; color: var(--text-dim); margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); }

/* Lists */
.list-dash { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.list-dash li { font-size: 15px; color: var(--text-dim); display: flex; align-items: flex-start; gap: 8px; line-height: 1.7; }
.list-dash li::before { content: '—'; color: var(--accent-dim); flex-shrink: 0; }

/* Data tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.data-table thead th { background: var(--accent-dark); color: var(--accent); font-weight: 400; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table tbody tr { border-bottom: 1px solid var(--border); }
.data-table tbody tr:nth-child(even) { background: var(--bg-2); }
.data-table tbody tr:nth-child(odd) { background: var(--bg); }
.data-table tbody td { padding: 10px 16px; color: var(--text-dim); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Callout */
.callout {
  background: var(--bg-2);
  border: 1px solid var(--accent-dim);
  border-left: 3px solid var(--accent-dim);
  padding: 20px 24px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
}
.callout strong { color: var(--accent); }

/* Pricing cards */
.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 2.5rem;
  min-width: 420px;
}
.pricing-card.featured {
  border-color: var(--accent-dim);
}
.pricing-card-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}
.pricing-card-price {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.pricing-card-alt {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 24px;
}
.pricing-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-card-features li {
  font-size: 1rem;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.8;
}
.pricing-card-features li::before {
  content: '✓';
  color: var(--accent-dim);
  flex-shrink: 0;
}

/* Badge */
.badge {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 8px;
  display: inline-block;
}
.badge-live { color: var(--accent); background: var(--accent-dark); border: 1px solid var(--accent-dim); }
.badge-dev { color: var(--text-muted); background: var(--bg-3); border: 1px solid var(--border); }

/* Contact form */
.form-input {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 10px 14px;
  width: 100%;
  margin-bottom: 12px;
}
.form-input:focus { outline: none; border-color: var(--accent-dim); }
.form-input::placeholder { color: var(--text-dead); }
.form-textarea { height: 120px; resize: vertical; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 24px; }
.footer-label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #a0bca0; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 11px; letter-spacing: 0.12em; color: #c8dcc8; text-decoration: none; text-transform: uppercase; }
.footer-links a:hover { color: var(--accent-dim); }
.footer-tagline { font-size: 11px; color: #a0bca0; line-height: 1.7; max-width: 240px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; font-size: 10px; color: #a0bca0; letter-spacing: 0.1em; }

/* Footer brand lockup */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c8dcc8;
  line-height: 1;
}
.footer-brand-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #3a6a4a;
  text-transform: uppercase;
}

/* Feature rows (numbered list layout) */
.feature-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:first-child { border-top: 1px solid var(--border); }
.feature-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1;
  min-width: 64px;
  padding-top: 4px;
}
.feature-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-rule {
  width: 24px;
  height: 1px;
  background: var(--accent-dim);
  margin-bottom: 10px;
}
.feature-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

/* Terminal click prompt */
.terminal-prompt {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.terminal-replay {
  display: none;
  padding: 8px 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Share Tech Mono', monospace;
}
.terminal-replay:hover { color: var(--accent-dim); }

/* Inline logo */
.logo-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-inline svg { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-text-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
}
.logo-text-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--accent-dim);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}

/* Scale stats strip */
.stats-strip { padding: 40px 48px; border-bottom: 1px solid var(--border); }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.stat-card { padding: 24px; background: var(--bg-2); border: 1px solid var(--border); }
.stat-value { font-family: 'Rajdhani', sans-serif; font-size: 40px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-label { font-family: 'Share Tech Mono', monospace; font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: #6aaa7a; margin-top: 8px; line-height: 1.4; }

/* Sticky purchase banner */
.sticky-banner {
  position: fixed;
  bottom: 0;
  left: 160px;
  right: 0;
  background: #0a1a0a;
  border-top: 1px solid var(--accent-dim);
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 90;
}
.sticky-banner-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.sticky-banner-link {
  color: var(--accent);
  text-decoration: none;
}

/* Substack link */
.substack-link {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
}
.substack-link:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Mobile */
@media (max-width: 768px) {
  .page-grid { grid-template-columns: 1fr; }
  .spine { display: none; }
  .content-col { margin-left: 0; width: 100%; }
  .topbar { padding: 10px 16px; }
  .topbar-nav { display: none; }
  .topbar-nav.open { display: flex; flex-direction: column; position: absolute; top: 38px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px; z-index: 100; }
  .hamburger { display: flex; flex-direction: column; gap: 4px; cursor: pointer; border: none; background: none; padding: 4px; }
  .hamburger span { width: 18px; height: 1px; background: var(--text-muted); display: block; }
  .page-section { padding: 40px 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-rig-canvas { display: none; }
  .index-rig-col { display: none; }
  .terminal-window { height: 380px; width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }
  .terminal-body { height: calc(380px - 36px); overflow-y: auto; overflow-x: hidden; padding: 16px; }
  .t-line { white-space: pre-wrap; word-break: break-all; overflow-wrap: break-word; }
  .data-panel { height: auto; overflow: visible; width: 100%; box-sizing: border-box; }
  .stats-strip { padding: 24px 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 28px; }
  .sticky-banner { left: 0; padding: 12px 16px; flex-direction: column; gap: 10px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  #pricing > div { flex-direction: column !important; }
  #pricing .pricing-card { min-width: unset !important; width: 100%; box-sizing: border-box; }
  #pricing canvas { width: 100% !important; height: 350px !important; }
  h1 { font-size: 36px; }
}

@media (min-width: 769px) {
  .hamburger { display: none; }
}
