:root {
  --primary: #aa301a;
  --primary-strong: #7e2213;
  --primary-soft: rgba(170, 48, 26, 0.12);
  --secondary: #526772;
  --accent: #d36443;
  --surface: #f8f9fc;
  --surface-low: #f2f4f6;
  --surface-high: #e7e8eb;
  --surface-ink: #191c1e;
  --surface-muted: #61707a;
  --surface-card: #ffffff;
  --surface-dark: #1b1d1f;
  --outline: rgba(170, 48, 26, 0.16);
  --shadow-soft: 0 28px 70px rgba(25, 28, 30, 0.07);
  --shadow-strong: 0 34px 90px rgba(25, 28, 30, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100vw - 2rem));
  --header-height: 92px;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--surface-ink);
  background:
    radial-gradient(circle at top left, rgba(170, 48, 26, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfbfd 0%, var(--surface) 26%, #f4f5f8 100%);
}

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

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

button,
a.button {
  font: inherit;
}

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  transition:
    background-color var(--transition),
    box-shadow var(--transition),
    backdrop-filter var(--transition);
}

.site-header.is-scrolled {
  background: rgba(248, 249, 252, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(25, 28, 30, 0.04);
}

.header-row {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--primary);
}

.header-nav,
.header-actions,
.hero-actions,
.cta-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.header-nav a,
.footer-links a {
  font-size: 0.92rem;
  color: var(--surface-muted);
  transition: color var(--transition);
}

.header-nav a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition:
    transform var(--transition),
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 18px 40px rgba(170, 48, 26, 0.2);
}

.button-primary:hover {
  box-shadow: 0 22px 42px rgba(170, 48, 26, 0.28);
}

.button-secondary {
  color: var(--surface-ink);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(97, 112, 122, 0.18);
  backdrop-filter: blur(10px);
}

.button-ghost {
  color: var(--surface-muted);
  background: transparent;
  border-color: rgba(97, 112, 122, 0.18);
}

.hero {
  position: relative;
  padding: 3rem 0 4.5rem;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 28, 30, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 28, 30, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
}

.eyebrow,
.kicker,
.workflow-count,
.board-chip {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.eyebrow {
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero h1,
.section-intro h2,
.cta-shell h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 9vw, 6.3rem);
}

.hero h1 span {
  color: var(--primary);
  font-style: italic;
}

.hero-summary,
.section-intro p,
.cta-shell p,
.feature-card p,
.workflow-step p,
.dashboard-panel p,
.footer-copy,
.hero-metrics span,
.pipeline-list li,
.task-list li {
  color: var(--surface-muted);
  line-height: 1.7;
}

.hero-summary {
  max-width: 58ch;
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-metrics article {
  padding: 1rem 1.1rem 1.05rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(97, 112, 122, 0.1);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
}

.hero-metrics strong,
.summary-card strong,
.dashboard-panel strong,
.feature-card h3,
.workflow-step h3,
.pipeline-head h2 {
  display: block;
  letter-spacing: -0.04em;
}

.hero-metrics strong {
  margin-bottom: 0.45rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
}

.hero-stage {
  position: relative;
  min-height: 720px;
}

.grid-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(82, 103, 114, 0.12);
  pointer-events: none;
}

.orbit-one {
  width: 560px;
  height: 560px;
  top: 2rem;
  left: 3rem;
}

.orbit-two {
  width: 320px;
  height: 320px;
  right: 0;
  bottom: 2rem;
}

.surface-board {
  position: absolute;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
}

.stage-dashboard {
  inset: 4.5rem 3rem auto auto;
  width: min(100%, 620px);
  padding: 1.4rem;
}

.board-topline,
.extension-topline,
.meter-label,
.pipeline-head,
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.board-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--surface-ink);
}

.board-chip-muted,
.signal {
  color: var(--primary);
  background: var(--primary-soft);
}

.board-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.board-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 1rem;
}

.summary-panel,
.summary-card,
.pipeline-card,
.feature-card,
.workflow-step,
.dashboard-panel,
.cta-shell,
.logo-lockup {
  border-radius: var(--radius-md);
}

.summary-panel {
  padding: 1.2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(242, 244, 246, 0.95));
}

.summary-panel-primary {
  background:
    radial-gradient(circle at top right, rgba(211, 100, 67, 0.2), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(242, 244, 246, 0.95));
}

.summary-panel strong,
.section-intro h2,
.cta-shell h2,
.pipeline-head h2 {
  font-family: "Manrope", sans-serif;
}

.summary-panel strong,
.dashboard-panel strong {
  font-size: 1.3rem;
}

.summary-panel p,
.dashboard-panel p {
  margin: 0.55rem 0 0;
}

.summary-stack {
  display: grid;
  gap: 0.8rem;
}

.summary-card {
  padding: 1rem 1.1rem;
  background: rgba(248, 249, 252, 0.92);
}

.summary-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--surface-muted);
}

.summary-card strong {
  margin-top: 0.4rem;
  font-size: 1.5rem;
  font-family: "Manrope", sans-serif;
}

.pipeline-card {
  padding: 1.3rem;
  background: var(--surface-card);
}

.pipeline-head {
  align-items: flex-start;
}

.pipeline-head h2 {
  margin: 0.3rem 0 0;
  font-size: 1.4rem;
}

.signal {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pipeline-graph {
  display: grid;
  grid-auto-flow: column;
  align-items: end;
  gap: 0.65rem;
  height: 160px;
  margin: 1.2rem 0;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(170, 48, 26, 0.08), transparent 65%),
    linear-gradient(180deg, rgba(25, 28, 30, 0.03), rgba(25, 28, 30, 0.03));
}

.pipeline-graph span {
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
}

.pipeline-list,
.task-list,
.dashboard-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline-list {
  display: grid;
  gap: 0.8rem;
}

.pipeline-list li,
.task-list li,
.dashboard-panel li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  margin-top: 0.45rem;
  flex: 0 0 auto;
}

.status-dot-success {
  background: #2a7d34;
}

.status-dot-accent {
  background: var(--primary);
}

.status-dot-dark {
  background: var(--surface-ink);
}

.extension-card {
  left: 0;
  bottom: 3.6rem;
  width: min(100%, 360px);
  padding: 1.25rem;
  background: rgba(27, 29, 31, 0.92);
  color: #ffffff;
  box-shadow: var(--shadow-strong);
}

.extension-topline strong,
.extension-card .kicker,
.extension-card .signal,
.extension-card .task-list li {
  color: #ffffff;
}

.extension-card .signal {
  background: rgba(255, 255, 255, 0.12);
}

.meter-block {
  margin-top: 1.4rem;
}

.meter-label span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.meter-label strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.7rem;
}

.meter {
  height: 0.55rem;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.meter span {
  display: block;
  width: 94%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f08a68 0%, #d54c2c 100%);
}

.task-list {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.4rem;
}

.task-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}

.logo-row,
.architecture-section,
.workflow-section,
.dashboard-section,
.cta-section {
  padding: 2rem 0 5rem;
}

.logo-lockup {
  display: grid;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(97, 112, 122, 0.12);
}

.logo-lockup p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--surface-muted);
}

.logo-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.logo-words span {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--surface-ink);
  font-weight: 600;
}

.split-section,
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  align-items: start;
}

.section-intro {
  padding-right: 1rem;
}

.section-intro h2,
.cta-shell h2 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  margin-top: 0.4rem;
}

.section-intro p {
  margin-top: 1rem;
}

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

.feature-card,
.workflow-step,
.dashboard-panel,
.cta-shell {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(97, 112, 122, 0.08);
  box-shadow: var(--shadow-soft);
}

.feature-card h3,
.workflow-step h3 {
  margin: 0.5rem 0 0.75rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.3rem;
}

.feature-card p:last-child,
.workflow-step p,
.cta-shell p {
  margin: 0;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-count {
  color: var(--primary);
}

.dashboard-panels {
  display: grid;
  gap: 1rem;
}

.dashboard-panel-light {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(242, 244, 246, 0.95)),
    rgba(255, 255, 255, 0.9);
}

.dashboard-panel-dark {
  background:
    radial-gradient(circle at top right, rgba(211, 100, 67, 0.18), transparent 34%),
    var(--surface-dark);
  color: #ffffff;
}

.dashboard-panel-dark p,
.dashboard-panel-dark li,
.dashboard-panel-dark .kicker {
  color: rgba(255, 255, 255, 0.76);
}

.dashboard-panel-dark strong {
  color: #ffffff;
}

.dashboard-panel ul {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.cta-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at top right, rgba(211, 100, 67, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(242, 244, 246, 0.96));
}

.site-footer {
  padding: 0 0 2.5rem;
}

.footer-row {
  align-items: end;
  padding-top: 1rem;
}

.brand-footer {
  color: var(--surface-ink);
}

.footer-copy,
.footer-meta {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
}

.footer-meta {
  color: var(--surface-muted);
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.js .reveal-delay {
  transition-delay: 110ms;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .site-header,
  .js .reveal {
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .split-section,
  .dashboard-grid,
  .cta-shell {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 860px;
  }

  .stage-dashboard {
    inset: 2rem auto auto 0;
    width: min(100%, 760px);
  }

  .extension-card {
    right: 0;
    left: auto;
    bottom: 1rem;
  }

  .board-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 76px;
  }

  .header-nav {
    display: none;
  }

  .hero {
    padding-top: 1.4rem;
  }

  .hero-metrics,
  .feature-grid,
  .workflow-track {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 920px;
  }

  .stage-dashboard,
  .extension-card {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .extension-card {
    margin-top: 1rem;
  }

  .grid-orbit {
    display: none;
  }

  .footer-row {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100vw - 1.2rem), 100%);
  }

  .header-row,
  .hero-actions,
  .header-actions,
  .cta-actions,
  .footer-row,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .header-row {
    padding: 0.9rem 0;
  }

  .button {
    width: 100%;
  }

  .hero-copy {
    padding-top: 0.5rem;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .logo-lockup,
  .feature-card,
  .workflow-step,
  .dashboard-panel,
  .cta-shell {
    padding: 1.15rem;
  }
}
