:root {
  /* Shared animated hero / header background */
  --brand-hero-grad: linear-gradient(145deg, #0c1222 0%, #1e1b4b 42%, #0e7490 100%);
  --brand-hero-grad-size: 200% 200%;
  --bg: #eef2ff;
  --bg-deep: #0c1222;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.35);
  --accent: #4f46e5;
  --accent-2: #06b6d4;
  --accent-hover: #4338ca;
  --accent-glow: rgba(79, 70, 229, 0.45);
  --accent-soft: rgba(79, 70, 229, 0.15);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 60px rgba(79, 70, 229, 0.25);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: #f1f5f9;
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Matrix rain only inside hero bands (home .hero-wrap, inner .page-hero--mesh) */
.matrix-canvas--hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.58;
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .matrix-canvas--hero {
    display: none !important;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  background: var(--brand-hero-grad);
  background-size: var(--brand-hero-grad-size);
  animation: hero-gradient 14s ease infinite;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(79, 70, 229, 0.35), transparent 58%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.28), transparent 52%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.06), transparent 42%);
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #f1f5f9;
}

.logo:not(.logo-with-mark) {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-with-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-with-mark .logo-img {
  border-color: rgba(148, 163, 184, 0.35);
}

.logo-with-mark span {
  background: linear-gradient(120deg, #c7d2fe 0%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.logo:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

.logo-with-mark:hover .logo-img {
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  color: rgba(203, 213, 225, 0.88);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: #f8fafc;
}

.nav-desktop a.is-active {
  color: #f8fafc;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  margin: 0 -0.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.22),
    0 6px 20px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.nav-desktop a.is-active:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(30, 41, 59, 0.85);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.nav-toggle span {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: #e2e8f0;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-panel {
  position: relative;
  z-index: 1;
  display: none;
  flex-direction: column;
  padding: 0 1.5rem 1rem;
  max-width: var(--max);
  margin: 0 auto;
  gap: 0.5rem;
}

.nav-panel.is-open {
  display: flex;
}

.nav-panel a {
  padding: 0.65rem 0;
  color: #e2e8f0;
  font-weight: 600;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-panel a:last-child {
  border-bottom: none;
}

.nav-panel a.is-active {
  color: #ecfeff;
  font-weight: 700;
  border-left: 3px solid #67e8f9;
  padding-left: 0.75rem;
  margin-left: -0.05rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 8px 8px 0;
}

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

  .nav-toggle {
    display: none;
  }

  .nav-panel {
    display: none !important;
  }
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Inner pages: light content band */
main > .section:not(.section-alt):not(.section-tint):not(.home-intro):not(.home-cta):not(.page-hero) {
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(12px);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-wrap {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: var(--brand-hero-grad);
  background-size: var(--brand-hero-grad-size);
  animation: hero-gradient 14s ease infinite;
}

@keyframes hero-gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(79, 70, 229, 0.38), transparent 58%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.28), transparent 52%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.06), transparent 42%);
  pointer-events: none;
}

.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float-orb 12s ease-in-out infinite;
}

.hero-orb--a {
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  background: #6366f1;
  top: -12%;
  right: -8%;
  animation-delay: 0s;
}

.hero-orb--b {
  width: min(320px, 70vw);
  height: min(320px, 70vw);
  background: #22d3ee;
  bottom: -10%;
  left: -5%;
  animation-delay: -4s;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-12px, 18px, 0) scale(1.05);
  }
}

.hero {
  position: relative;
  z-index: 3;
  padding: 4.5rem 0 5rem;
  text-align: left;
}

.hero-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr minmax(300px, 40%);
    gap: 3rem;
  }

  .hero-visual {
    justify-self: end;
    width: 100%;
    max-width: 440px;
  }
}

@media (max-width: 959px) {
  .hero {
    text-align: center;
  }

  .hero-copy {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-copy .hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c7d2fe;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.35rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-copy h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.1rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #f8fafc;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.hero-copy h1 span {
  background: linear-gradient(105deg, #e0e7ff 0%, #67e8f9 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: flex-start;
}

.hero-visual {
  position: relative;
  perspective: 1200px;
}

.hero-visual-frame {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 100px rgba(79, 70, 229, 0.2);
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero-visual-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.4);
}

.hero-visual-title {
  margin-left: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.92);
}

.hero-visual-body {
  padding: 1rem 1rem 1.15rem;
}

.hero-visual-chart {
  position: relative;
  height: 100px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45), rgba(30, 27, 75, 0.3));
  margin-bottom: 1rem;
  overflow: hidden;
}

.hero-visual-line {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 28%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.9), rgba(34, 211, 238, 0.85));
  opacity: 0.9;
  transform-origin: left center;
}

.hero-visual-line--b {
  bottom: 48%;
  opacity: 0.45;
  transform: scaleX(0.75);
}

.hero-visual-dot {
  position: absolute;
  right: 18%;
  bottom: 26%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.8);
}

.hero-visual-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.hero-stat {
  flex: 1;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.hero-stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.65);
}

.hero-stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -0.03em;
}

.hero-visual-caption {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.72);
}

.hero-visual .showcase-shadow {
  width: min(380px, 90vw);
  bottom: -14px;
}

.hero-visual-frame {
  transition: transform 0.18s ease;
}

.hero-showcase {
  margin: 2.25rem auto 0;
  max-width: 980px;
  position: relative;
  perspective: 1200px;
}

.showcase-frame {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.04)
  );
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 140px rgba(79, 70, 229, 0.22);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s ease;
}

.showcase-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 60% at 20% 20%,
      rgba(99, 102, 241, 0.35),
      transparent 60%
    ),
    radial-gradient(
      ellipse 55% 60% at 80% 20%,
      rgba(34, 211, 238, 0.25),
      transparent 60%
    ),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.09), transparent 55%);
  pointer-events: none;
  opacity: 0.9;
}

.showcase-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.35);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}
.dot--red {
  background: #fb7185;
}
.dot--yellow {
  background: #fbbf24;
}
.dot--green {
  background: #34d399;
}

.showcase-title {
  margin-left: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.9);
  letter-spacing: -0.02em;
}

.showcase-pill {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f172a;
  background: linear-gradient(135deg, #67e8f9 0%, #a5b4fc 100%);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.showcase-grid {
  position: relative;
  padding: 1.1rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .showcase-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
  }
}

.metric-tile,
.timeline {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  padding: 1rem 1rem 1.1rem;
  text-align: left;
  overflow: hidden;
}

.metric-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
}

.metric-value {
  margin-top: 0.35rem;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.metric-sub {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.72);
}

.spark {
  margin-top: 0.85rem;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.55), transparent 55%),
    radial-gradient(circle at 60% 60%, rgba(34, 211, 238, 0.45), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.15));
  position: relative;
  overflow: hidden;
}

.spark::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: conic-gradient(
    from 180deg,
    rgba(99, 102, 241, 0.0),
    rgba(99, 102, 241, 0.35),
    rgba(34, 211, 238, 0.25),
    rgba(99, 102, 241, 0.0)
  );
  animation: spin-spark 10s linear infinite;
  opacity: 0.6;
}

@keyframes spin-spark {
  to {
    transform: rotate(360deg);
  }
}

.timeline {
  grid-column: 1 / -1;
}

@media (min-width: 820px) {
  .timeline {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

.timeline-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  color: rgba(226, 232, 240, 0.9);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.chip {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(226, 232, 240, 0.8);
  background: rgba(15, 23, 42, 0.35);
}

.timeline-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: rgba(226, 232, 240, 0.76);
  font-weight: 600;
}

.timeline-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #67e8f9 0%, #a5b4fc 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 0 18px rgba(34, 211, 238, 0.25);
}

.showcase-shadow {
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: min(720px, 92vw);
  height: 56px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.55),
    transparent 65%
  );
  filter: blur(18px);
  opacity: 0.35;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  transform-style: preserve-3d;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-3px) translateZ(0);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
  color: #fff;
  box-shadow:
    0 4px 16px rgba(79, 70, 229, 0.45),
    0 12px 40px rgba(79, 70, 229, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  color: #fff;
  box-shadow:
    0 8px 28px rgba(79, 70, 229, 0.55),
    0 20px 50px rgba(6, 182, 212, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--pending {
  pointer-events: none;
  opacity: 0.85;
  animation: btn-pulse 1.2s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
}

.page-hero .btn-secondary {
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.page-hero .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
}

.section .btn-primary,
.download-card .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.section .btn-primary:hover,
.download-card .btn-primary:hover {
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.section {
  padding: 4rem 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(238, 242, 255, 0.88) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  background: linear-gradient(120deg, #1e1b4b 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  perspective: 1200px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  background: var(--surface-solid);
  border-radius: var(--radius);
  padding: 1.65rem 1.5rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(6, 182, 212, 0.25), transparent 60%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
}

.card:hover {
  transform: translateY(-8px) rotateX(2deg) translateZ(0);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
}

.section-alt .card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.58;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--accent-soft), rgba(6, 182, 212, 0.12));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.card-icon i {
  line-height: 1;
}

.page-hero {
  padding: 3.5rem 0 2.25rem;
  position: relative;
  overflow: hidden;
}

.page-hero--mesh {
  background: var(--brand-hero-grad);
  background-size: var(--brand-hero-grad-size);
  animation: hero-gradient 14s ease infinite;
  padding-bottom: 3rem;
  margin-bottom: 0;
}

.page-hero--mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(79, 70, 229, 0.38), transparent 58%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.3), transparent 52%),
    radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.25), transparent 55%);
  pointer-events: none;
}

.page-hero--mesh .container {
  position: relative;
  z-index: 2;
}

.page-hero--mesh h1 {
  color: #ffffff;
  position: relative;
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.65);
}

.page-hero--mesh .lead {
  color: #e2e8f0;
  font-weight: 500;
  position: relative;
  max-width: 42rem;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
}

.page-hero--mesh .meta-row {
  position: relative;
  z-index: 1;
}

.page-hero--mesh .tag-display {
  color: #e9d5ff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.page-hero--mesh .badge {
  border-color: rgba(255, 255, 255, 0.22);
}

.page-hero--mesh .badge--muted {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(255, 255, 255, 0.14);
}

.page-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.page-hero .lead {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.prose {
  max-width: 42rem;
}

.prose-wide {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.page-block {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.page-block p:last-child {
  margin-bottom: 0;
}

.download-followup {
  margin-top: 3rem;
}

.hero-visual-app-icon {
  margin-left: 0.15rem;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  color: rgba(248, 250, 252, 0.95);
}

.hero-visual-top {
  gap: 0.45rem;
}

.home-intro {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(238, 242, 255, 0.9) 100%);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.home-intro-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .home-intro-grid {
    grid-template-columns: 1fr minmax(260px, 38%);
  }
}

.home-intro-title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.home-intro-lead {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.65;
}

.home-intro-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.7;
}

.home-intro-list li {
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.home-intro-list-icon {
  margin-top: 0.2rem;
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.dashboard-preview {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(155deg, rgba(238, 242, 255, 0.95), rgba(224, 242, 254, 0.75));
  min-height: min(280px, 52vw);
}

.dashboard-preview picture {
  display: block;
  line-height: 0;
}

.dashboard-preview__img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

.dashboard-preview--no-image .dashboard-preview__img {
  display: none;
}

.dashboard-preview__fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.08));
}

.dashboard-preview:not(.dashboard-preview--no-image) .dashboard-preview__fallback {
  display: none;
}

.dashboard-preview__fallback-icon {
  font-size: 2.75rem;
  color: var(--accent);
  opacity: 0.9;
}

.dashboard-preview__fallback-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-tint {
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.88) 0%, rgba(248, 250, 252, 0.9) 100%);
  backdrop-filter: blur(10px);
}

.section-head--left {
  text-align: left;
  margin-bottom: 2.25rem;
}

.section-head--left p {
  margin-left: 0;
  margin-right: 0;
  max-width: 40rem;
}

.pillar-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  background: var(--surface-solid);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: var(--shadow);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}

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

.pillar-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pillar-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

.pillar-card-media {
  height: 120px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pillar-card-media__icon {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.95;
}

.pillar-card-media--a {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(6, 182, 212, 0.14));
}

.pillar-card-media--b {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(99, 102, 241, 0.14));
}

.pillar-card-media--c {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.26), rgba(14, 165, 233, 0.12));
}

.home-cta {
  padding: 4.25rem 0;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(30, 27, 75, 0.85) 42%,
    rgba(14, 116, 144, 0.82) 100%
  );
  backdrop-filter: blur(10px);
  color: #cbd5e1;
}

.home-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 52rem;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  .home-cta-inner {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    max-width: none;
  }

  .home-cta-text {
    flex: 1;
  }

  .home-cta-actions {
    width: auto;
    flex-shrink: 0;
    justify-content: flex-end;
  }
}

.home-cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.35rem;
  color: #e0e7ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.home-cta h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.home-cta p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.88);
}

.home-cta .btn-primary {
  box-shadow:
    0 4px 20px rgba(99, 102, 241, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.home-cta .btn-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.home-cta .btn-cta-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-mark {
  font-size: 1rem;
  color: #94a3b8;
  opacity: 0.95;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose code {
  font-size: 0.9em;
  background: rgba(99, 102, 241, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .download-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.download-card {
  position: relative;
  background: var(--surface-solid);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform-style: preserve-3d;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
  overflow: hidden;
}

.download-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}

.download-card:hover {
  transform: translateY(-6px) translateZ(0);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.download-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.download-card p {
  margin: 0 0 1.35rem;
  font-size: 0.9375rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.58;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.35rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(6, 182, 212, 0.12));
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge--muted {
  background: rgba(148, 163, 184, 0.15);
  color: var(--muted);
  border-color: var(--border);
}

.tag-display {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.note-box {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 242, 255, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.note-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.15), transparent 40%);
  pointer-events: none;
}

.note-box h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  position: relative;
}

.note-box ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  position: relative;
  line-height: 1.65;
}

.note-box .tip {
  margin: 1.15rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  position: relative;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(12, 18, 34, 0.94) 100%);
  backdrop-filter: blur(12px);
  color: #94a3b8;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.35rem;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--surface-solid);
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text);
  font-weight: 700;
  background: rgba(99, 102, 241, 0.06);
}

td {
  color: var(--muted);
}

tbody tr:last-child td {
  border-bottom: none;
}
