:root {
  --canvas: #fbf7f3;
  --canvas-2: #f4eee8;
  --line: #e7ded7;
  --ink: #1d1d1f;
  --ink-2: #343236;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --lilac: #ed1c24;
  --periwinkle: #b60f19;
  --dawn: #ff6a4f;
  --sky: #292a34;
  --sage: #86b886;
  --brand-red: #ed1c24;
  --brand-red-dark: #b60f19;
  --brand-charcoal: #1d1d1f;
  --brand-night: #151525;
  --max-width: 1200px;
  --gutter-desktop: 40px;
  --gutter-mobile: 20px;
  --space-section: 120px;
  --space-block: 64px;
  --space-card: 32px;
  --radius-pill: 999px;
  --radius-button: 10px;
  --radius-card: 16px;
  --radius-panel: 20px;
  --border: 1px solid var(--line);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(237, 28, 36, 0.18);
}

.container {
  width: min(100% - (var(--gutter-desktop) * 2), var(--max-width));
  margin: 0 auto;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 40px;
  background: rgba(250, 250, 247, 0.78);
  border-bottom: 1px solid rgba(232, 230, 223, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-family: "Manrope", var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand span {
  display: block;
  max-width: 15ch;
  white-space: nowrap;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(182, 15, 25, 0.28), 0 10px 22px rgba(237, 28, 36, 0.18);
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  justify-content: center;
}

.nav-actions {
  justify-content: flex-end;
}

.nav-links a,
.nav-link {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-small {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 14px;
}

.btn-primary {
  color: var(--canvas);
  background: var(--brand-red);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 12px 26px rgba(237, 28, 36, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-primary:hover {
  background: var(--brand-red-dark);
  box-shadow: 0 4px 14px rgba(237, 28, 36, 0.24);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--canvas-2);
  border-color: var(--muted-2);
  transform: translateY(-1px);
}

.btn .chev,
.hero-badge .arrow {
  transition: transform 0.2s ease;
}

.btn:hover .chev,
.hero-badge:hover .arrow {
  transform: translateX(3px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 150px 0 70px;
}

.hero::before,
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 18% 16%, rgba(237, 28, 36, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 680px 420px at 92% 72%, rgba(255, 106, 79, 0.16) 0%, transparent 52%),
    radial-gradient(ellipse 620px 360px at 48% 112%, rgba(21, 21, 37, 0.08) 0%, transparent 50%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(13, 15, 18, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 15, 18, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
  gap: 70px;
  align-items: center;
}

.hero-copy {
  max-width: 790px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 12px 6px 6px;
  color: var(--ink-2);
  background: rgba(250, 250, 247, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 13px;
  text-decoration: none;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-badge .tag {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  color: var(--canvas);
  background: var(--brand-red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

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

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 900px;
  margin: 26px 0 24px;
  font-size: clamp(56px, 8vw, 118px);
  line-height: 0.96;
  animation: fadeUp 1s ease 0.2s both;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.012em;
}

h1 em,
h2 em {
  color: transparent;
  background: linear-gradient(95deg, var(--lilac), var(--periwinkle), var(--dawn));
  -webkit-background-clip: text;
  background-clip: text;
  font-style: italic;
}

.sub {
  max-width: 720px;
  margin-bottom: 16px;
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1.55;
  animation: fadeUp 1s ease 0.4s both;
}

.hero-note,
.section-head p,
.prose p,
.split-grid p,
.contact-grid p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.68;
}

.hero-note {
  max-width: 650px;
  margin-bottom: 30px;
  animation: fadeUp 1s ease 0.48s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeUp 1s ease 0.6s both;
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 580px;
  margin-top: 48px;
  border-top: var(--border);
  animation: fadeUp 1s ease 0.72s both;
}

.meta-row div {
  padding: 18px 22px 0 0;
}

.meta-row strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.meta-row span,
.mono {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  animation: fadeUp 1s ease 0.45s both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(237, 28, 36, 0.18), rgba(255, 106, 79, 0.16), rgba(21, 21, 37, 0.1));
  filter: blur(30px);
}

.dashboard-shell,
.rules-visual,
.bi-visual,
.message-stack {
  position: relative;
  border: 1px solid rgba(232, 230, 223, 0.9);
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(13, 15, 18, 0.08);
}

.dashboard-shell {
  border-radius: var(--radius-panel);
  padding: 18px;
}

.dash-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px 16px;
  color: var(--muted);
}

.dash-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.dash-top span:first-child {
  background: var(--dawn);
}

.dash-top span:nth-child(2) {
  background: var(--lilac);
}

.dash-top strong {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dash-panel {
  padding: 22px;
  border: var(--border);
  border-radius: 16px;
  background: var(--canvas);
}

.dash-panel.highlight {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(250, 250, 247, 0.9)),
    radial-gradient(circle at top left, rgba(237, 28, 36, 0.14), transparent 50%);
}

.dash-panel b {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}

.dash-panel small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.growth-chart {
  position: relative;
  min-height: 156px;
  border: var(--border);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 38%, rgba(237, 28, 36, 0.16), transparent 25%),
    linear-gradient(rgba(13, 15, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 15, 18, 0.035) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.growth-chart svg {
  display: block;
  width: 100%;
  height: 132px;
  padding: 12px;
}

.growth-chart .area {
  fill: url("#growthFill");
}

.growth-chart .line {
  fill: none;
  stroke: url("#growthLine");
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.growth-chart circle {
  fill: var(--brand-red);
  stroke: var(--canvas);
  stroke-width: 5;
}

.chart-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

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

.journey span {
  padding: 12px 10px;
  border: var(--border);
  border-radius: 12px;
  color: var(--ink-2);
  background: rgba(244, 243, 238, 0.7);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.section {
  position: relative;
  overflow: hidden;
  padding: var(--space-section) 0;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.problem,
.split-section,
.solutions,
.modules {
  background: var(--canvas-2);
}

.communication,
.analytics,
.final-cta {
  background: var(--canvas);
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  content: "— ";
  color: var(--lilac);
}

.two-up,
.split-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 78px;
  align-items: center;
}

.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.section-head {
  max-width: 780px;
  margin-bottom: var(--space-block);
}

.section-head p {
  max-width: 690px;
}

.benefit-list,
.use-case-grid,
.analytics-list,
.contact-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.benefit-list span,
.use-case-grid span,
.analytics-list span,
.contact-points span {
  min-height: 44px;
  padding: 12px 14px;
  border: var(--border);
  border-radius: 12px;
  color: var(--ink-2);
  background: rgba(250, 250, 247, 0.64);
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card,
.solution-card,
.module-columns > div,
.contact-form {
  position: relative;
  overflow: hidden;
  padding: var(--space-card);
  border: var(--border);
  border-radius: var(--radius-panel);
  background: var(--canvas);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card::before,
.solution-card::before,
.module-columns > div::before,
.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lilac), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover,
.solution-card:hover,
.module-columns > div:hover {
  border-color: var(--muted-2);
  box-shadow: 0 20px 40px rgba(13, 15, 18, 0.06);
  transform: translateY(-4px);
}

.card:hover::before,
.solution-card:hover::before,
.module-columns > div:hover::before,
.contact-form::before {
  opacity: 1;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border: 1px solid rgba(237, 28, 36, 0.2);
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(237, 28, 36, 0.13), rgba(255, 106, 79, 0.16));
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}

.card p,
.solution-card p,
.module-columns p {
  margin-bottom: 0;
  color: var(--ink-2);
}

.rules-visual {
  padding: 26px;
  border-radius: 24px;
}

.rule-card {
  padding: 22px;
  border: var(--border);
  border-radius: 16px;
  background: var(--canvas);
}

.rule-card strong {
  display: block;
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.08;
}

.rule-card small {
  color: var(--muted);
  font-size: 13px;
}

.rule-card.active,
.rule-card.reward {
  background:
    linear-gradient(180deg, rgba(250, 250, 247, 0.92), rgba(250, 250, 247, 0.98)),
    radial-gradient(circle at top left, rgba(237, 28, 36, 0.15), transparent 55%);
}

.rule-connector {
  width: 1px;
  height: 34px;
  margin: 0 auto;
  background: linear-gradient(var(--lilac), var(--dawn));
}

.number-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.number-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  color: var(--ink-2);
}

.number-list span {
  color: var(--lilac);
  font-family: var(--font-mono);
  font-size: 12px;
}

.dark-section {
  color: var(--canvas);
  background: var(--brand-night);
}

.dark-section::before {
  background:
    radial-gradient(ellipse 900px 420px at 10% 10%, rgba(237, 28, 36, 0.24), transparent 54%),
    radial-gradient(ellipse 720px 440px at 88% 70%, rgba(255, 106, 79, 0.13), transparent 55%);
}

.dark-section h2,
.dark-section p {
  color: var(--canvas);
}

.dark-section .kicker,
.dark-section .section-head p {
  color: rgba(250, 250, 247, 0.72);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pillar-grid div {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 130px;
  padding: 24px;
  border: 1px solid rgba(250, 250, 247, 0.14);
  border-radius: 18px;
  background: rgba(250, 250, 247, 0.045);
  color: rgba(250, 250, 247, 0.9);
  font-size: 18px;
}

.pillar-grid span {
  flex: 0 0 auto;
  color: var(--dawn);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.pillar-grid strong {
  color: rgba(250, 250, 247, 0.9);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
}

.message-stack {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
}

.message-card {
  padding: 20px;
  border: var(--border);
  border-radius: 16px;
  background: var(--canvas);
}

.message-card:nth-child(2) {
  transform: translateX(34px);
}

.message-card:nth-child(3) {
  transform: translateX(68px);
}

.message-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(237, 28, 36, 0.1);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.message-card p {
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 16px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.solution-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.solution-card h3 {
  max-width: 330px;
  margin-top: 32px;
  font-size: 31px;
}

.bi-visual {
  padding: 26px;
  border-radius: 24px;
}

.bi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.bi-header strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
}

.bi-chart {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 22px;
  align-items: center;
  min-height: 300px;
  padding: 24px;
  border: var(--border);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 42%, rgba(237, 28, 36, 0.12), transparent 28%),
    linear-gradient(rgba(13, 15, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 15, 18, 0.035) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.donut {
  display: grid;
  place-items: center;
  align-content: center;
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--canvas) 0 50%, transparent 51%),
    conic-gradient(var(--brand-red) 0 68%, rgba(237, 28, 36, 0.14) 68% 100%);
  box-shadow: inset 0 0 0 1px rgba(237, 28, 36, 0.12), 0 18px 40px rgba(237, 28, 36, 0.12);
}

.donut span {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
}

.donut small {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trend-list {
  display: grid;
  gap: 18px;
}

.trend-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 16px;
  align-items: center;
}

.trend-list span,
.trend-list b {
  color: var(--ink-2);
  font-size: 13px;
}

.trend-list b {
  font-weight: 600;
}

.trend-list i {
  position: relative;
  grid-column: 1 / -1;
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(237, 28, 36, 0.12);
  overflow: hidden;
}

.trend-list i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-red), var(--dawn));
}

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

.bi-metrics div {
  padding: 18px;
  border: var(--border);
  border-radius: 14px;
  background: var(--canvas);
}

.bi-metrics b {
  display: block;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

.bi-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.module-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.module-columns > div {
  padding: 26px;
}

.contact-grid {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  box-shadow: 0 26px 70px rgba(13, 15, 18, 0.07);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form label span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: var(--border);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: var(--canvas);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.turnstile-wrap {
  min-height: 65px;
}

.form-status[data-state="success"] {
  color: #277a42;
}

.form-status[data-state="error"] {
  color: var(--brand-red);
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.btn:focus-visible,
.hero-badge:focus-visible,
.site-nav a:focus-visible {
  outline: none;
  border-color: var(--lilac);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.18);
}

.contact-form button {
  width: fit-content;
}

.site-footer {
  padding: 62px 0;
  border-top: var(--border);
  background: var(--canvas);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(5, minmax(120px, 1fr));
  gap: 34px;
}

.footer-grid p {
  max-width: 340px;
  margin: 18px 0 0;
  color: var(--muted);
}

.company-info {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 22px;
  border: var(--border);
  border-radius: 16px;
  background: rgba(250, 250, 247, 0.66);
}

.company-info p,
.footer-company {
  margin: 0;
  color: var(--ink-2);
}

.company-info strong {
  color: var(--ink);
  font-size: 18px;
}

.company-info span {
  color: var(--muted);
}

.company-info a,
.footer-company a {
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: none;
}

.footer-company {
  display: grid;
  gap: 0;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.25;
}

.footer-company strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
  margin-bottom: 5px;
}

.footer-company strong span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.footer-company p {
  max-width: 420px;
  margin: 0;
  color: var(--ink-2);
  line-height: 1.42;
}

.footer-company p span {
  color: var(--muted);
  font-weight: 400;
}

.footer-company p a {
  display: inline;
  margin-top: 0;
  color: var(--ink-2);
  font-weight: 400;
}

.footer-grid h3 {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid a:not(.brand) {
  display: block;
  margin-top: 10px;
  color: var(--ink-2);
  text-decoration: none;
}

.footer-grid .footer-company p a:not(.brand) {
  display: inline;
  margin-top: 0;
  color: var(--ink-2);
}

.footer-grid a:not(.brand):hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(100% - (var(--gutter-desktop) * 2), var(--max-width));
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: var(--border);
  color: var(--muted);
  font-size: 13px;
}

.legal-page {
  background: var(--canvas);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 152px 0 70px;
  border-bottom: var(--border);
  background: var(--canvas);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 420px at 16% 10%, rgba(237, 28, 36, 0.13), transparent 54%),
    radial-gradient(ellipse 720px 380px at 92% 82%, rgba(255, 106, 79, 0.12), transparent 56%);
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  max-width: 980px;
  margin: 10px 0 22px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.98;
  animation: none;
}

.legal-hero p {
  max-width: 780px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.65;
}

.legal-hero .legal-updated {
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-section {
  padding: 72px 0 92px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 820px);
  gap: 76px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: var(--border);
  border-radius: 16px;
  background: rgba(250, 250, 247, 0.78);
}

.legal-toc a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--ink);
  background: var(--canvas-2);
}

.legal-content {
  display: grid;
  gap: 42px;
}

.legal-content section {
  padding-bottom: 42px;
  border-bottom: var(--border);
}

.legal-content section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.legal-content h3 {
  margin: 22px 0 8px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.legal-content p,
.legal-content li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.78;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-content a,
.legal-contact a {
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: none;
}

.legal-contact {
  margin-top: 22px;
  padding: 22px;
  border: var(--border);
  border-radius: 16px;
  background: var(--canvas-2);
}

.legal-contact strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.legal-contact strong span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.legal-contact p {
  margin: 0;
  line-height: 1.65;
}

.admin-page {
  background: var(--canvas);
}

.admin-shell {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 72px 0;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.admin-head h1 {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.admin-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.admin-head code {
  color: var(--ink);
  font-family: var(--font-mono);
}

.admin-key-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 0.65fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 22px;
}

.admin-key-form label {
  display: grid;
  gap: 8px;
}

.admin-key-form label span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-key-form input,
.admin-key-form select {
  min-height: 44px;
  padding: 12px 14px;
  border: var(--border);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: var(--canvas);
}

.enquiry-table-wrap {
  overflow-x: auto;
  border: var(--border);
  border-radius: 18px;
  background: var(--canvas);
}

.enquiry-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.enquiry-table th,
.enquiry-table td {
  padding: 14px 16px;
  border-bottom: var(--border);
  text-align: left;
  vertical-align: top;
}

.enquiry-table th {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.enquiry-table td {
  color: var(--ink-2);
  font-size: 14px;
}

.enquiry-table tr:last-child td {
  border-bottom: 0;
}

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

@media (max-width: 1080px) {
  .site-nav {
    grid-template-columns: auto 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .two-up,
  .split-grid,
  .contact-grid,
  .reverse {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .two-up,
  .split-grid,
  .contact-grid {
    gap: 46px;
  }

  .hero {
    padding-top: 128px;
  }
}

@media (max-width: 900px) {
  :root {
    --space-section: 76px;
    --space-block: 38px;
  }

  .container {
    width: min(100% - (var(--gutter-mobile) * 2), var(--max-width));
  }

  .site-nav {
    padding: 14px 20px;
  }

  .nav-link {
    display: none;
  }

  .brand {
    font-size: 18px;
  }

  h1 {
    font-size: clamp(56px, 15vw, 66px);
  }

  .sub {
    font-size: 18px;
  }

  .meta-row,
  .feature-grid,
  .pillar-grid,
  .solution-grid,
  .module-columns,
  .footer-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    padding-top: 132px;
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    width: min(100% - (var(--gutter-mobile) * 2), var(--max-width));
  }

  .benefit-list,
  .use-case-grid,
  .analytics-list,
  .contact-points,
  .dash-grid,
  .bi-metrics {
    grid-template-columns: 1fr;
  }

  .dash-panel.highlight {
    grid-template-columns: 1fr;
  }

  .growth-chart {
    min-height: 150px;
  }

  .bi-chart {
    grid-template-columns: 1fr;
    min-height: 280px;
  }

  .message-card:nth-child(2),
  .message-card:nth-child(3) {
    transform: none;
  }

  .journey {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-key-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-nav {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 20px;
  }

  .brand {
    gap: 10px;
    font-size: 17px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .btn-small {
    padding: 10px 12px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 56px;
  }

  .hero-badge {
    white-space: normal;
    border-radius: 18px;
  }

  .cta-row,
  .cta-row .btn,
  .contact-form button {
    width: 100%;
  }

  .hero-visual::before {
    inset: -12px;
  }

  .dashboard-shell,
  .rules-visual,
  .bi-visual,
  .message-stack,
  .card,
  .solution-card,
  .module-columns > div,
  .contact-form {
    padding: 20px;
  }

  .rule-card strong {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
