:root {
  --canvas: #010102;
  --surface-1: #0f1011;
  --surface-2: #141516;
  --surface-3: #18191a;
  --primary: #5e6ad2;
  --primary-hover: #828fff;
  --primary-focus: #5e69d1;
  --ink: #f7f8f8;
  --ink-muted: #d0d6e0;
  --ink-subtle: #8a8f98;
  --hairline: #23252a;
  --success: #27a644;
  --radius-button: 8px;
  --radius-card: 12px;
  --radius-panel: 16px;
  --radius-pill: 9999px;
  --section-gap: 96px;
  --container: 1180px;
  --shadow-panel: 0 30px 80px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 10%, rgba(94, 106, 210, 0.08), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(94, 106, 210, 0.04), transparent 18%),
    linear-gradient(180deg, #060607 0%, var(--canvas) 40%, #050506 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M32 0H0v32' fill='none' stroke='rgba(255,255,255,0.015)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 32px 32px;
  opacity: 0.28;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 0%, rgba(94, 106, 210, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 18%);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

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

.page-shell {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding-bottom: 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  color: var(--ink-subtle);
  font-size: 0.92rem;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--hairline);
  background: rgba(20, 21, 22, 0.88);
  color: var(--ink);
}

.site-nav .nav-cta {
  color: var(--ink);
  background: rgba(94, 106, 210, 0.12);
  border-color: rgba(94, 106, 210, 0.22);
}

.section {
  margin-top: var(--section-gap);
}

.hero.section {
  margin-top: 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 20px 0 24px;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  position: absolute;
  top: -60px;
  left: -10%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(94, 106, 210, 0.12) 0%, transparent 80%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(94, 106, 210, 0.2), rgba(94, 106, 210, 0.95));
}

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

h1 {
  max-width: none;
  font-size: clamp(2.8rem, 5.2vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-text,
.section-heading p,
.cta-panel p,
.feature-card p,
.problem-card p,
.stack-card p,
.journey-step p {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero-text {
  max-width: 40rem;
  margin-top: 24px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

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

.button-primary {
  background: linear-gradient(180deg, #6c77df 0%, var(--primary) 100%);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(94, 106, 210, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(180deg, #8894ff 0%, var(--primary-hover) 100%);
  box-shadow: 0 16px 36px rgba(94, 106, 210, 0.28);
}

.button-secondary {
  border-color: var(--hairline);
  background: rgba(15, 16, 17, 0.92);
  color: var(--ink);
}

.button:focus-visible {
  outline: 2px solid var(--primary-focus);
  outline-offset: 2px;
}

.hero-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin-top: 28px;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-subtle);
  line-height: 1.45;
}

.hero-points li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--primary);
  box-shadow: 0 0 12px rgba(94, 106, 210, 0.4);
}

.hero-panel,
.solution-panel,
.outcome-panel,
.cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(24, 25, 26, 0.96) 0%, rgba(15, 16, 17, 0.94) 100%);
  box-shadow: var(--shadow-panel);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-panel {
  padding: 24px;
}

.hero-panel::before,
.cta-panel::before {
  position: absolute;
  inset: auto auto -24% -12%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(94, 106, 210, 0.14) 0%, transparent 80%);
  pointer-events: none;
}

.hero-panel-top,
.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-label,
.panel-chip,
.stack-label,
.card-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-label,
.stack-label,
.card-kicker {
  color: var(--ink-subtle);
}

.panel-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(94, 106, 210, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(94, 106, 210, 0.08);
  color: var(--ink);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.metric-card,
.workflow-card,
.stack-card,
.feature-card,
.problem-card,
.journey-step {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(24, 25, 26, 0.92) 0%, rgba(15, 16, 17, 0.96) 100%);
  box-shadow: var(--shadow-soft);
}

.metric-card {
  padding: 18px;
}

.metric-card span,
.metric-card small {
  display: block;
}

.metric-card span {
  color: var(--ink-subtle);
  font-size: 0.82rem;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.metric-card small {
  margin-top: 8px;
  color: var(--ink-muted);
}

.workflow-board {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.workflow-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(20, 21, 22, 0.96) 0%, rgba(15, 16, 17, 0.98) 100%);
}

.workflow-card strong,
.stack-card h3,
.feature-card h3,
.problem-card h3,
.journey-step h3,
.cta-panel h2,
.section-heading h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.workflow-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.status-pill {
  white-space: nowrap;
  color: var(--ink-muted);
}

.status-pill.subtle {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.status-pill.success {
  border-color: rgba(39, 166, 68, 0.24);
  background: rgba(39, 166, 68, 0.12);
  color: #d9ffe2;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.signal-strip div {
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: rgba(15, 16, 17, 0.72);
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  font-size: 0.96rem;
}

.signal-strip span {
  margin-top: 8px;
  color: var(--ink-subtle);
  font-size: 0.92rem;
}

.section-heading {
  max-width: 780px;
}

.section-heading.narrow {
  max-width: 720px;
}

.section-heading-solution {
  max-width: 920px;
}

.section-heading h2,
.cta-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.14;
}

@media (min-width: 721px) {
  .section-heading-solution h2 {
    white-space: nowrap;
  }
}

.section-heading p,
.cta-panel p {
  margin-top: 16px;
}

.pain-section,
.solution-section,
.modules-section,
.workflow-section {
  position: relative;
}

.pain-section::before,
.modules-section::before {
  position: absolute;
  inset: 8% auto auto 50%;
  z-index: -1;
  width: min(680px, 80vw);
  height: 360px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(94, 106, 210, 0.07), transparent 85%);
  transform: translateX(-50%);
  pointer-events: none;
}

.pain-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 32px;
}

.pain-copy {
  display: grid;
  align-content: center;
  gap: 22px;
}

.pain-line {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pain-line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pain-line span,
.module-node span,
.flow-stage span {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.pain-line h3,
.module-node h3 {
  font-size: 1.22rem;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.pain-line p,
.control-note p,
.module-core p,
.module-node p,
.flow-stage p {
  margin-top: 10px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.chaos-screen,
.product-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(circle at 28% 16%, rgba(94, 106, 210, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(24, 25, 26, 0.96) 0%, rgba(9, 10, 11, 0.98) 100%);
  box-shadow: var(--shadow-panel);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.chaos-screen {
  min-height: 420px;
  padding: 20px;
}

.screen-chrome {
  display: flex;
  gap: 8px;
}

.screen-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.chaos-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr 0.84fr;
  gap: 14px;
  height: calc(100% - 28px);
  margin-top: 18px;
}

.chat-column,
.sheet-column,
.deadline-column {
  position: relative;
  min-height: 340px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-card);
  background: rgba(15, 16, 17, 0.68);
}

.screen-label {
  display: inline-flex;
  color: var(--ink-subtle);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chat-column {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 16% 8%, rgba(39, 166, 68, 0.08), transparent 30%),
    rgba(15, 16, 17, 0.68);
}

.chat-header,
.sheet-header,
.risk-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.8), transparent 18%),
    linear-gradient(145deg, rgba(39, 166, 68, 0.95), rgba(27, 98, 48, 0.95));
  color: #f4fff6;
  font-size: 0.72rem;
  font-weight: 600;
}

.chat-header strong,
.file-chip strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.25;
}

.chat-header small,
.chat-header em,
.file-chip small,
.sheet-header small,
.risk-header small {
  color: var(--ink-subtle);
  font-size: 0.76rem;
  font-style: normal;
}

.chat-header em,
.sheet-header small,
.risk-header small {
  margin-left: auto;
}

.message-bubble {
  position: relative;
  max-width: 88%;
  padding: 11px 12px 8px;
  margin-top: 14px;
  border-radius: 14px;
  color: var(--ink);
  line-height: 1.35;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.message-bubble span,
.message-bubble small {
  display: block;
}

.message-bubble small {
  margin-top: 6px;
  color: rgba(247, 248, 248, 0.52);
  font-size: 0.68rem;
  text-align: right;
}

.message-bubble.incoming {
  border-bottom-left-radius: 5px;
  background: #202124;
}

.message-bubble.outgoing {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: linear-gradient(180deg, #1f5b38 0%, #17452c 100%);
}

.file-chip {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  max-width: 94%;
  padding: 11px 12px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink-muted);
}

.file-icon {
  position: relative;
  width: 30px;
  height: 34px;
  border: 1px solid rgba(94, 106, 210, 0.28);
  border-radius: 7px;
  background: rgba(94, 106, 210, 0.13);
}

.file-icon::before {
  position: absolute;
  top: 8px;
  right: 7px;
  left: 7px;
  height: 2px;
  content: "";
  background: rgba(247, 248, 248, 0.56);
  box-shadow: 0 7px 0 rgba(247, 248, 248, 0.26);
}

.file-chip.ghost {
  opacity: 0.55;
}

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

.sheet-header {
  margin-bottom: 4px;
}

.sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 0 12px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink-muted);
}

.sheet-row.active {
  border-color: rgba(94, 106, 210, 0.28);
  background: rgba(94, 106, 210, 0.1);
}

.sheet-row span {
  min-width: 0;
}

.sheet-row strong {
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 600;
}

.sheet-row.warning strong {
  color: #ffd9d9;
}

.deadline-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 50% 34%, rgba(94, 106, 210, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(94, 106, 210, 0.08) 0%, rgba(15, 16, 17, 0.86) 62%),
    rgba(15, 16, 17, 0.74);
}

.risk-number {
  margin-top: auto;
}

.risk-number strong {
  display: block;
  font-size: clamp(4.4rem, 7vw, 6.2rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.risk-number span {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

.deadline-column p {
  max-width: 11rem;
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.risk-bars {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}

.risk-bars span {
  display: block;
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
}

.risk-bars span:nth-child(1) {
  width: 100%;
  background: rgba(94, 106, 210, 0.52);
}

.risk-bars span:nth-child(2) {
  width: 72%;
}

.risk-bars span:nth-child(3) {
  width: 48%;
}

.solution-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
  margin-top: 32px;
}

.product-window {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  min-height: 520px;
}

.window-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 26px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(1, 1, 2, 0.32);
}

.sidebar-logo {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.75), transparent 18%),
    linear-gradient(145deg, #828fff, #5e6ad2);
  box-shadow: 0 14px 34px rgba(94, 106, 210, 0.26);
}

.sidebar-item {
  width: 34px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
}

.sidebar-item.active {
  width: 42px;
  background: var(--primary);
}

.sidebar-item.short {
  width: 24px;
}

.window-main {
  padding: 24px;
}

.window-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.window-topline h3 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

/* Navigation Demo Link */
.site-nav .nav-demo {
  color: var(--primary-hover);
  border-color: rgba(130, 143, 255, 0.25);
  background: rgba(94, 106, 210, 0.08);
  font-weight: 500;
  transition: all 0.2s ease;
}

.site-nav .nav-demo:hover {
  background: var(--primary);
  color: var(--canvas) !important;
  box-shadow: 0 0 12px rgba(94, 106, 210, 0.35);
}

/* Mini Dashboard Mockup Styling */
.mini-dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-top: 18px;
  border: 1px solid rgba(94, 106, 210, 0.2);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(94, 106, 210, 0.14), rgba(0,0,0,0));
  box-shadow: 0 8px 30px rgba(94, 106, 210, 0.08);
}

.mini-dashboard-hero .hero-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-dashboard-hero .hero-left span {
  font-size: 0.72rem;
  color: var(--ink-subtle);
}

.mini-dashboard-hero .hero-left strong {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.mini-dashboard-hero .hero-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.badge-glow {
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(39, 166, 68, 0.12);
  border: 1px solid rgba(39, 166, 68, 0.25);
  color: #a4f5b5;
  font-weight: 600;
}

.mini-dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  margin-top: 12px;
}

.mini-card {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-card);
  background: rgba(15, 16, 17, 0.75);
}

.mini-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mini-card-head span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.mini-card-head small {
  font-size: 0.72rem;
  color: var(--ink-subtle);
}

/* Funnel styling */
.mini-funnel {
  display: grid;
  gap: 8px;
}

.funnel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
}

.funnel-label {
  width: 54px;
  color: var(--ink-subtle);
}

.funnel-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 99px;
  overflow: hidden;
}

.funnel-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
}

.funnel-val {
  width: 14px;
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}

/* Chart styling */
.mini-chart {
  display: block;
  overflow: visible;
}

@keyframes pulsePoint {
  0%, 100% { r: 3; opacity: 0.85; }
  50% { r: 4.5; opacity: 1; stroke-width: 2.2; }
}

.mini-chart circle {
  animation: pulsePoint 3.2s infinite ease-in-out;
  transform-origin: center;
}

.mini-chart circle:nth-of-type(2) {
  animation-delay: 1.1s;
}

.mini-chart circle:nth-of-type(3) {
  animation-delay: 2.2s;
}

/* Footer elements */
.mini-dashboard-footer {
  margin-top: 12px;
}

.mini-card.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 10px 16px;
}

.mini-card.flex-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-card.flex-row strong {
  font-size: 1.25rem;
  color: var(--primary-hover);
  line-height: 1;
}

.mini-card.flex-row span {
  font-size: 0.7rem;
  color: var(--ink-subtle);
}

.control-note,
.module-core,
.module-node,
.flow-stage {
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(15, 16, 17, 0.72);
}

.control-notes {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(20, 21, 22, 0.82) 0%, rgba(10, 10, 11, 0.9) 100%);
}

.control-note {
  padding: 18px;
  border-radius: var(--radius-card);
}

.control-note strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.module-system {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.module-system::before {
  position: absolute;
  inset: 50% 8%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(94, 106, 210, 0.42), transparent);
}

.module-core {
  position: relative;
  z-index: 1;
  grid-row: span 3;
  min-height: auto;
  padding: 32px;
  border-radius: var(--radius-panel);
  background:
    radial-gradient(circle at 20% 10%, rgba(94, 106, 210, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(24, 25, 26, 0.94) 0%, rgba(15, 16, 17, 0.98) 100%);
  box-shadow: var(--shadow-panel);
}

.module-core h3 {
  max-width: 26rem;
  margin-top: 18px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.module-core p {
  max-width: 26rem;
}

.module-node {
  position: relative;
  z-index: 1;
  min-height: 170px;
  padding: 20px;
  border-radius: var(--radius-card);
}

.module-node h3 {
  margin-top: 22px;
}

.workflow-section {
  padding-bottom: 8px;
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.operating-line {
  position: relative;
  display: grid;
  gap: 14px;
}

.flow-stage {
  position: relative;
  display: grid;
  grid-template-columns: 58px 160px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background:
    linear-gradient(90deg, rgba(94, 106, 210, 0.1), rgba(15, 16, 17, 0.74) 44%);
}

.flow-stage strong {
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}

.flow-stage p {
  margin-top: 0;
}

.cta-panel {
  padding: 48px;
  background:
    radial-gradient(circle at 20% 0%, rgba(94, 106, 210, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(24, 25, 26, 0.98) 0%, rgba(15, 16, 17, 0.98) 100%);
}

@media (max-width: 1080px) {
  .hero,
  .pain-layout,
  .solution-showcase,
  .workflow-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .signal-strip,
  .module-system,
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .control-notes {
    max-width: 560px;
  }

  .module-core {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    height: 38px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .section {
    margin-top: 72px;
  }

  h1 {
    max-width: none;
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .hero-panel,
  .chaos-screen,
  .window-main,
  .control-notes,
  .module-core,
  .module-node,
  .cta-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .signal-strip,
  .hero-metrics,
  .chaos-grid,
  .dashboard-metrics,
  .case-board,
  .module-system {
    grid-template-columns: 1fr;
  }

  .chat-column,
  .sheet-column,
  .deadline-column {
    min-height: auto;
  }

  .product-window {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .window-sidebar {
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .sidebar-logo {
    margin-bottom: 0;
  }

  .window-topline {
    flex-direction: column;
  }

  .module-system::before {
    display: none;
  }

  .module-core {
    grid-column: auto;
    min-height: auto;
  }

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

  .workflow-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-panel {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}
