
:root {
  --bg: #faf9f6;
  --text: #1a1a1a;
  --accent: #d4714a;
  --accent-hover: #c06040;
  --body: #6b6152;
  --muted: #8a8070;
  --subtle: #b5a99a;
  --faint: #c5bdb0;
  --card-bg: #ffffff;
  --card-border: #e8e4dd;
  --divider: #ece8e1;
  --code-bg: #1a1a1a;
  --code-border: #2a2a2a;
  --success: #5a9e6f;
  --warning: #c4a35a;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 2px 4px rgba(50, 50, 93, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 13px 27px rgba(50, 50, 93, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

.section {
  width: 100%;
  padding: 120px 0;
}

.section.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.section.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    to bottom,
    rgba(250, 249, 246, 0.95) 0%,
    rgba(250, 249, 246, 0.8) 70%,
    rgba(250, 249, 246, 0) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s var(--ease);
}

.nav-brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
  letter-spacing: 0.2px;
}

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

.nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--subtle);
  padding: 5px 10px;
  border: 1px solid var(--card-border);
  border-radius: 4px;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
}

.hero-sub {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 32px;
}

.hero-title span {
  display: inline-block;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.hero-tagline {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 64px;
}

.hero-stat-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-number {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--divider);
  transition: color 0.6s var(--ease);
  line-height: 1;
}

.hero-stat.lit .hero-stat-number {
  color: var(--accent);
}

.hero-stat-sm .hero-stat-number {
  font-size: 36px;
  letter-spacing: -1px;
  color: var(--divider);
  transition: color 0.6s var(--ease);
}

.hero-stat-sm.lit .hero-stat-number {
  color: var(--text);
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--faint);
  margin-top: 12px;
  transition: color 0.6s var(--ease);
}

.hero-stat.lit .hero-stat-label,
.hero-stat-sm.lit .hero-stat-label {
  color: var(--muted);
}

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

.stack-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 36px 40px;
  border-radius: var(--radius);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.stack-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.stack-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 8px;
}

.stack-size {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.stack-detail {
  background: var(--bg);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

.stack-note {
  color: var(--accent);
  font-style: italic;
  font-size: 13px;
  margin-top: 12px;
}

.upload-zone {
  border: 2px dashed var(--card-border);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  background: var(--card-bg);
}

.upload-zone:hover {
  border-color: var(--subtle);
  box-shadow: var(--shadow);
}

.upload-zone.dragover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 113, 74, 0.08), var(--shadow-hover);
  background: rgba(212, 113, 74, 0.02);
}

.upload-zone.has-file {
  border-style: solid;
  border-color: var(--card-border);
  padding: 32px 40px;
}

.upload-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}

.upload-text {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 13px;
  color: var(--subtle);
}

.upload-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 20px;
}

.upload-action-link {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--subtle);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color var(--duration) var(--ease);
}

.upload-action-link:hover {
  color: var(--accent);
}

.upload-error {
  color: var(--accent);
  font-size: 13px;
  margin-top: 12px;
  animation: fadeInUp 0.3s ease;
}

.upload-col {}

.file-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.stat-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 4px 12px;
}

.original-preview {
  max-height: 500px;
  overflow-y: auto;
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.6;
  color: #999;
}

.original-preview[hidden] {
  display: none;
}

.tool-section {
  width: 100%;
  transition: all 0.5s var(--ease);
}

.tool-idle {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.tool-active {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(480px, 1.4fr);
  gap: 48px;
  max-width: none;
  text-align: left;
  align-items: start;
}

.results-panel {
  position: sticky;
  top: 100px;
}

.savings-hero {
  text-align: center;
  padding: 48px 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.savings-number {
  font-family: var(--font-mono);
  font-size: 72px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 8px;
}

.savings-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.stat-row {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.stat-block {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
}

.stat-block-number {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.stat-block-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--subtle);
}

.chart-container {
  height: 360px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.pattern-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pattern-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.pattern-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.pattern-card[data-severity="high"] {
  border-left-color: var(--accent);
}

.pattern-card[data-severity="medium"] {
  border-left-color: var(--warning);
}

.pattern-card[data-severity="low"] {
  border-left-color: var(--success);
}

.pattern-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pattern-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

.pattern-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--code-border);
  background: rgba(255, 255, 255, 0.03);
}

.code-block-header span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #888;
  letter-spacing: 0.5px;
}

.code-block pre {
  padding: 28px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #e0e0e0;
  tab-size: 2;
}

.code-block code {
  font-family: inherit;
}

.copy-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.5px;
}

.copy-btn:hover {
  background: rgba(212, 113, 74, 0.1);
  color: var(--accent-hover);
}

.copy-btn.copied {
  color: var(--success);
}

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.compare-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  color: var(--subtle);
  font-size: 24px;
}

.code-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.code-label.before {
  color: var(--muted);
}

.code-label.after {
  color: var(--accent);
}

.layers {
  display: flex;
  flex-direction: column;
}

.layer-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--divider);
  align-items: start;
}

.layer-row:last-child {
  border-bottom: none;
}

.layer-num {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--divider);
  letter-spacing: -2px;
  line-height: 1;
  transition: color 0.6s var(--ease);
}

.layer-num.lit {
  color: var(--accent);
}

.layer-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.layer-content p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 12px;
}

.layer-content .detail {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--divider);
}

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

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.faq-q:hover {
  color: var(--accent);
}

.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--subtle);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
}

.faq-item.open .faq-a {
  max-height: 200px;
  opacity: 1;
}

.faq-a p {
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
}

.cta {
  text-align: center;
}

.cta h2 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.1;
}

.cta p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 16px 40px;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 12px rgba(212, 113, 74, 0.25);
}

.cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 113, 74, 0.35);
}

.cta-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 24px;
  border: 1px solid var(--card-border);
  border-radius: 100px;
  margin-left: 12px;
  transition: all 0.3s var(--ease);
}

.cta-badge:hover {
  border-color: var(--subtle);
  color: var(--text);
}

.footer {
  border-top: 1px solid var(--divider);
  padding: 40px;
  text-align: center;
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--subtle);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

.burn-vis {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.burn-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.burn-row:last-child {
  margin-bottom: 0;
}

.burn-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  width: 100px;
  flex-shrink: 0;
}

.burn-bar {
  flex: 1;
  height: 32px;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.burn-fill {
  height: 100%;
  border-radius: 6px;
  width: 0;
  transition: width 1.2s var(--ease);
}

.burn-fill.system {
  background: linear-gradient(90deg, var(--accent), #e8956e);
}

.burn-fill.config {
  background: linear-gradient(90deg, var(--warning), #d4bc6a);
}

.burn-fill.work {
  background: linear-gradient(90deg, var(--success), #7ab88a);
}

.burn-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  width: 48px;
  text-align: right;
  flex-shrink: 0;
}

.terminal-block {
  background: var(--code-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--code-border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
}

.terminal-dot:nth-child(1) {
  background: #ff5f57;
}

.terminal-dot:nth-child(2) {
  background: #febc2e;
}

.terminal-dot:nth-child(3) {
  background: #28c840;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #666;
  margin-left: 8px;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: #ccc;
}

.terminal-body .line {
  display: block;
}

.terminal-body .dim {
  color: #555;
}

.terminal-body .accent {
  color: var(--accent);
}

.terminal-body .success {
  color: var(--success);
}

.terminal-body .warning {
  color: var(--warning);
}

.terminal-body .muted {
  color: #888;
}

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

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-pulse {
  animation: pulse 2s var(--ease) infinite;
}

.animate-blink {
  animation: blink 1s step-end infinite;
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--muted);
}

.text-subtle {
  color: var(--subtle);
}

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

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mt-80 { margin-top: 80px; }

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

::selection {
  background: rgba(212, 113, 74, 0.15);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--faint);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--subtle);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

.transition-all {
  transition: all 0.3s var(--ease);
}

.transition-colors {
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.transition-shadow {
  transition: box-shadow 0.3s var(--ease);
}

.opener {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
}

.opener-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  width: 100%;
  min-height: 100vh;
}

.opener-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px 80px 80px;
  max-width: 720px;
  margin-left: auto;
}

.opener-title {
  font-size: clamp(56px, 8vw, 100px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -4px;
  line-height: 0.95;
  margin-bottom: 32px;
}

.opener-title span {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}

.opener-lead {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 480px;
}

.opener-lead em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.opener-right {
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
}

.opener-stat-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.opener-stat {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.opener-stat.lit {
  opacity: 1;
  transform: translateY(0);
}

.opener-stat-num {
  font-family: var(--font-mono);
  font-size: 72px;
  font-weight: 700;
  color: #faf9f6;
  letter-spacing: -3px;
  line-height: 1;
}

.opener-stat-unit {
  font-size: 40px;
  color: var(--accent);
}

.opener-stat-label {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  margin-top: 6px;
}

.section-dark {
  background: var(--text);
  padding: 120px 0;
}

.stack-headline {
  font-size: clamp(28px, 4vw, 44px);
  color: #faf9f6;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  max-width: 1200px;
  margin: 0 auto;
}

.stack-item {
  background: rgba(255,255,255,0.04);
  padding: 48px 40px;
  text-align: center;
  transition: background 0.3s ease;
}

.stack-item:hover {
  background: rgba(255,255,255,0.07);
}

.stack-item:first-child { border-radius: 12px 0 0 12px; }
.stack-item:last-child { border-radius: 0 12px 12px 0; }

.stack-item-accent {
  background: rgba(212, 113, 74, 0.12);
}
.stack-item-accent:hover {
  background: rgba(212, 113, 74, 0.18);
}

.stack-num {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  color: #faf9f6;
  letter-spacing: -2px;
  line-height: 1;
}

.stack-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-top: 16px;
}

.stack-sub {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  line-height: 1.4;
}

.stack-punchline {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-top: 48px;
  font-style: italic;
}

.math-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.math-block {
  text-align: center;
  padding: 40px;
}

.math-block-accent .math-num {
  color: var(--accent);
}

.math-num {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
}

.math-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  max-width: 200px;
}

.math-op {
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--subtle);
}

.tool-headline {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--text);
  letter-spacing: -2px;
  margin-bottom: 48px;
}
