/* Frenetic Website — Production Stylesheet (Mineral Editorial v2.0) */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  transition: background-color 0.22s ease, color 0.22s ease;
}

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

h1, h2, h3, p {
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "calt" 1;
}

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter-x);
  padding-right: var(--gutter-x);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-svg {
  height: 30px;
  width: auto;
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.nav-links a {
  transition: color 0.16s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-switch {
  display: inline-flex;
  padding: 2px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.theme-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.theme-btn.active {
  background: var(--ink);
  color: var(--bg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  transition: opacity 0.16s ease, border-color 0.16s ease;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
}

.btn-sm {
  display: none;
  padding: 8px 16px;
  font-size: 13px;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn-accent {
  background: var(--band-dark-brand);
  color: #0B120F;
}

/* Hero Section */
.hero {
  padding: 88px 0 104px;
  background-image:
    linear-gradient(to right, rgba(120, 132, 126, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 132, 126, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-copy {
  max-width: 896px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 26px;
}

.ink-secondary {
  color: var(--ink-secondary);
}

.hero-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-secondary);
  max-width: 580px;
  margin: 0 auto 38px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 72px;
}

/* Framed Showcase Window */
.showcase-pad {
  border-radius: var(--radius-frame);
  padding: 20px;
  background: var(--frame-grad-1);
  border: 1px solid var(--border);
}

.showcase-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-window);
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(10, 14, 12, 0.28), 0 0 0 1px rgba(19, 23, 21, 0.08);
}

.window-chrome {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.window-dots-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--border-strong);
}

.window-path {
  color: var(--ink-muted);
}

.window-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--brand-soft);
  color: var(--brand);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--brand);
}

.window-body {
  display: grid;
  grid-template-columns: 1fr;
}

.queue-pane {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.queue-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.queue-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.queue-card.featured {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.queue-card.dim {
  opacity: 0.76;
}

.queue-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.queue-title {
  font-size: 14px;
  font-weight: 600;
}

.queue-title.medium {
  font-weight: 500;
}

.queue-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  white-space: nowrap;
}

.queue-tag-brand {
  font-size: 11px;
  color: var(--brand);
  white-space: nowrap;
}

.queue-tag-muted {
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.queue-desc {
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.queue-desc.muted {
  color: var(--ink-muted);
}

.timeline-pane {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.timeline-eyebrow {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.timeline-svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 12px 0;
}

.timeline-foot {
  padding-top: 18px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-secondary);
}

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

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

/* Sections */
.section {
  padding: 96px 0;
}

.section-surface {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.section-bordered {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

.eyebrow.clay {
  color: var(--clay);
}

.section-h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.09;
  margin-bottom: 22px;
}

.section-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink-secondary);
  max-width: 640px;
  line-height: 1.62;
}

/* Editorial 4-Metric Strip */
.shift-intro {
  max-width: 896px;
  margin-bottom: 68px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 28px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.metric-val {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.metric-desc {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Dark Horizon Contrast Band */
.horizon-band {
  position: relative;
  overflow: hidden;
  padding: 104px 0;
  background: var(--band-dark);
  color: var(--band-dark-ink);
}

.horizon-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 65% 50% at 50% 100%, rgba(94, 184, 142, 0.18), rgba(30, 107, 82, 0.06) 45%, transparent 74%);
}

.horizon-inner {
  position: relative;
}

.horizon-copy {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.horizon-copy .eyebrow {
  color: var(--band-dark-brand);
  letter-spacing: 0.14em;
}

.horizon-copy p {
  color: var(--band-dark-muted);
  margin: 0 auto;
  max-width: 560px;
  font-size: clamp(16px, 1.8vw, 18px);
}

.telemetry-pills {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
}

.telemetry-pill {
  padding: 10px 16px;
  border-radius: 9999px;
  background: var(--band-dark-surface);
  border: 1px solid var(--band-dark-border);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--band-dark-brand);
}

.pill-dot.ochre {
  background: var(--band-dark-ochre);
}

/* Alternating Product Pillars */
.pillars-stack {
  display: flex;
  flex-direction: column;
  gap: 104px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.pillar-h3 {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 18ch;
  margin-bottom: 18px;
}

.pillar-p {
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cap-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-secondary);
}

/* Cropped Product Artboards */
.crop-frame {
  border-radius: var(--radius-frame);
  border: 1px solid var(--border);
  overflow: hidden;
}

.crop-frame.warden-pad {
  background: var(--frame-grad-1);
  padding: 32px 0 0 32px;
}

.crop-frame.corsair-pad {
  background: var(--frame-grad-2);
  padding: 32px 32px 0 0;
}

.crop-window {
  background: var(--bg-surface);
  padding: 26px;
  box-shadow: 0 24px 60px -20px rgba(10, 14, 12, 0.25);
}

.crop-window.tl {
  border-top-left-radius: 16px;
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);
}

.crop-window.tr {
  border-top-right-radius: 16px;
  border-top: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
}

.crop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-bottom: 22px;
}

.crop-badge {
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--brand-soft);
  color: var(--brand);
}

.crop-badge.outlined {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
}

.crop-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.crop-sub {
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin-bottom: 22px;
}

.crop-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}

.crop-row {
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.crop-row.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.crop-row.step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crop-row.highlight {
  background: var(--brand-soft);
  color: var(--brand);
}

.diff-del {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--clay-soft);
  color: var(--clay);
  margin: 8px 0 4px;
}

.diff-add {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
}

/* Closed Loop Diagram Container */
.loop-header {
  max-width: 760px;
  margin-bottom: 56px;
}

.loop-canvas {
  border-radius: var(--radius-frame);
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.loop-svg {
  width: 100%;
  min-width: 720px;
  height: auto;
  display: block;
}

/* Levels of Automation */
.auto-header {
  max-width: 760px;
  margin-bottom: 56px;
}

.auto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.auto-card {
  border-radius: var(--radius-card);
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auto-card.accented {
  border-color: var(--brand);
}

.auto-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 22px;
}

.auto-h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.auto-p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.meter-wrap {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.meter-bars {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.meter-bar {
  height: 6px;
  flex: 1;
  border-radius: 9999px;
  background: var(--border);
}

.meter-bar.filled {
  background: var(--brand);
}

.meter-caption {
  font-size: 11px;
  color: var(--ink-muted);
}

/* Final Manifesto CTA Card */
.cta-section {
  padding: 0 0 96px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-frame);
  padding: 72px 28px;
  text-align: center;
  background: var(--band-dark);
  border: 1px solid var(--band-dark-border);
  color: var(--band-dark-ink);
}

.cta-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.cta-sub {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--band-dark-muted);
  max-width: 560px;
  margin: 0 auto 38px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

/* Responsive Desktop Breakpoints */
@media (min-width: 640px) {
  .brand-svg { height: 32px; }
  .btn-sm { display: inline-flex; }
  .showcase-pad { padding: 32px; }
  .crop-frame.warden-pad { padding: 44px 0 0 44px; }
  .crop-frame.corsair-pad { padding: 44px 44px 0 0; }
  .crop-window { padding: 32px; }
  .cta-card { padding: 96px 64px; }
  .footer-inner { flex-direction: row; }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

@media (min-width: 1024px) {
  .hero { padding: 124px 0 140px; }
  .showcase-pad { padding: 40px; }
  .window-body { grid-template-columns: 5fr 7fr; }
  .queue-pane { border-bottom: none; border-right: 1px solid var(--border); padding: 28px; }
  .timeline-pane { padding: 32px; }
  .section { padding: 136px 0; }
  .horizon-band { padding: 140px 0; }
  .metrics-grid { grid-template-columns: repeat(4, 1fr); gap: 44px; }
  .pillars-stack { gap: 144px; }
  .pillar-grid { grid-template-columns: repeat(12, 1fr); gap: 64px; }
  .col-copy { grid-column: span 5; }
  .col-visual { grid-column: span 7; }
  .pillar-reverse .col-visual { order: 1; }
  .pillar-reverse .col-copy { order: 2; }
  .loop-canvas { padding: 48px; }
  .auto-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-section { padding: 0 0 128px; }
}
