@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap");

/* =========================================================
   APOSTLE DARK MATTER
   Core Theme
========================================================= */

:root {
  --bg: #07080a;
  --bg-soft: #101216;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.095);
  --text: #f3f4f6;
  --muted: #9da3ad;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #d9e1ec;
  --shadow: rgba(0, 0, 0, 0.58);
  --chrome: linear-gradient(135deg, #08090b 0%, #1c2027 42%, #090a0d 100%);
  --chrome-soft: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.025));
  --beam: rgba(245, 248, 255, 0.9);
  --beam-soft: rgba(245, 248, 255, 0.2);
}

html[data-theme="fusion"] {
  --bg: #e9eaec;
  --bg-soft: #d5d8dd;
  --panel: rgba(255, 255, 255, 0.58);
  --panel-strong: rgba(255, 255, 255, 0.82);
  --text: #101217;
  --muted: #555d68;
  --line: rgba(0, 0, 0, 0.14);
  --accent: #151a22;
  --shadow: rgba(65, 72, 84, 0.2);
  --chrome: linear-gradient(135deg, #f8f9fb 0%, #bfc5ce 48%, #ffffff 100%);
  --chrome-soft: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.24));
  --beam: rgba(10, 14, 20, 0.9);
  --beam-soft: rgba(10, 14, 20, 0.18);
}

/* =========================================================
   Base
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(174, 187, 209, 0.16), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(95, 108, 132, 0.13), transparent 30%),
    radial-gradient(circle at 50% 92%, rgba(174, 187, 209, 0.08), transparent 38%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  z-index: 0;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 7.8vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

/* =========================================================
   Atmosphere
========================================================= */

.grain,
.scanline,
.orb {
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.18;
  z-index: 1;
  background-image:
    repeating-radial-gradient(circle at 0 0, rgba(255,255,255,0.24) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.12;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.08) 50%,
    transparent 100%
  );
  background-size: 100% 7px;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.2;
  z-index: 0;
}

.orb-one {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 100px;
  background: rgba(190, 205, 230, 0.22);
}

.orb-two {
  width: 300px;
  height: 300px;
  left: -110px;
  bottom: 120px;
  background: rgba(100, 115, 140, 0.22);
}

/* =========================================================
   Layout
========================================================= */

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 42px));
  margin: 0 auto;
}

.trailer-section,
.what-it-is,
.compliance-strip,
.process-section,
.product-surface,
.feature-band,
.anti-spam,
.faq-section,
.modules,
.access,
.pricing-grid,
.pricing-note,
.detail-grid {
  margin: 92px 0;
}

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

.compact-top {
  max-width: 650px;
}

/* =========================================================
   Header / Navigation
========================================================= */

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-image-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 178px;
  height: 46px;
}

.brand-logo {
  position: absolute;
  left: 0;
  max-width: 178px;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.brand-logo-fusion {
  opacity: 0;
}

html[data-theme="fusion"] .brand-logo-matter {
  opacity: 0;
}

html[data-theme="fusion"] .brand-logo-fusion {
  opacity: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.mobile-menu-toggle {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
  flex-direction: column;
}

.mobile-menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--text);
  transition: transform 0.2s ease;
}

.mobile-menu-toggle.is-open span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* =========================================================
   Typography Utilities
========================================================= */

.apostle-word,
.logo-text {
  font-family: Montserrat, sans-serif;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow,
.section-label {
  color: var(--muted);
  font-family: Montserrat, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* =========================================================
   Buttons
========================================================= */

.hero-actions,
.button-row,
.access-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn.primary::after {
  content: "";
  position: absolute;
  inset: -40% -70%;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.28) 50%, transparent 65%);
  transform: translateX(-120%) rotate(8deg);
  animation: buttonSignalSweep 6.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

html[data-theme="fusion"] .btn.primary::after {
  background: linear-gradient(115deg, transparent 35%, rgba(0,0,0,0.16) 50%, transparent 65%);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

/* =========================================================
   Hero
========================================================= */

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 58px;
  align-items: center;
  padding: 38px 0 76px;
}

.hero-copy {
  position: relative;
  padding: 34px 0;
}

.hero-copy::after {
  content: "";
  position: absolute;
  left: -24px;
  bottom: 10px;
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, var(--text), transparent);
  opacity: 0.45;
}

.hero-text {
  max-width: 560px;
  font-size: 1rem;
}

.status-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.status-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,0.13), rgba(255,255,255,0.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09);
  color: var(--text);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}

/* =========================================================
   Hero Device
========================================================= */

.hero-device {
  min-height: 560px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.13), transparent 42%),
    var(--chrome);
  box-shadow: 0 28px 80px var(--shadow);
  transform: perspective(1000px) rotateY(-3deg);
  transition: transform 0.18s ease;
}

.signal-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.78;
  filter: blur(0.15px);
}

.device-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--beam-soft), transparent 68%);
  z-index: 2;
  animation: coreGlow 5s ease-in-out infinite;
}

.device-top,
.core-mark,
.data-stack {
  position: relative;
  z-index: 3;
}

.device-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
}

.device-top span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--muted);
  opacity: 0.65;
}

.device-top p {
  margin: 0 0 0 auto;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}

.core-mark {
  min-height: 316px;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  transform: translateY(-58px);
}

.core-logo {
  max-width: 255px;
  width: 72%;
  height: auto;
  display: block;
  opacity: 0.94;
  filter: drop-shadow(0 0 18px rgba(245, 248, 255, 0.08));
}

.core-logo-fusion {
  display: none;
}

html[data-theme="fusion"] .core-logo-matter {
  display: none;
}

html[data-theme="fusion"] .core-logo-fusion {
  display: block;
}

.core-mark small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.data-stack {
  display: grid;
  gap: 10px;
}

.data-stack div {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
}

.data-stack b {
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-weight: 900;
}

.data-stack span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================================
   Shared Panels
========================================================= */

.video-frame,
.feature-band,
.modules,
.access,
.pricing-hero,
.pricing-note,
.tier-card,
.price-card,
.mock-dashboard,
.detail-grid article,
.process-flow article {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: 0 28px 80px var(--shadow);
  border-radius: 36px;
}

.what-it-is,
.anti-spam,
.split-section {
  padding: 42px;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 42px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: 0 28px 80px var(--shadow);
  border-radius: 36px;
}

.what-it-is p:last-child,
.anti-spam p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Compliance Strip
========================================================= */

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

.compliance-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 16px;
  text-align: center;
  color: var(--text);
  background: rgba(255,255,255,0.035);
  font-family: Montserrat, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

html[data-theme="fusion"] .compliance-strip span {
  background: rgba(0,0,0,0.035);
}

/* =========================================================
   Video Player
========================================================= */

.video-frame {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.1), transparent 40%),
    var(--chrome);
}

.trailer-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  cursor: pointer;
}

.video-center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.34);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

html[data-theme="fusion"] .video-center-play {
  background: rgba(255,255,255,0.48);
  color: #101217;
}

.video-center-play.is-playing {
  opacity: 0;
  pointer-events: none;
}

.video-frame:hover .video-center-play.is-playing,
.video-frame:focus-within .video-center-play.is-playing {
  opacity: 0.55;
  pointer-events: auto;
}

.video-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto auto 110px auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.video-frame:hover .video-controls,
.video-frame.is-paused .video-controls,
.video-frame:focus-within .video-controls {
  opacity: 1;
  pointer-events: auto;
}

.video-frame.is-idle,
.video-frame.is-idle .trailer-video {
  cursor: none;
}

.video-frame.is-idle:not(.is-paused) .video-controls,
.video-frame.is-idle:not(.is-paused) .video-center-play {
  opacity: 0 !important;
  pointer-events: none !important;
}

.video-frame.is-idle:hover .video-controls,
.video-frame.is-idle:hover .video-center-play {
  opacity: 0 !important;
  pointer-events: none !important;
}

html[data-theme="fusion"] .video-controls {
  background: rgba(255,255,255,0.62);
}

.video-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

html[data-theme="fusion"] .video-btn {
  color: #101217;
  background: rgba(0,0,0,0.05);
}

.video-progress,
.video-volume {
  width: 100%;
  accent-color: var(--text);
  cursor: pointer;
}

.video-time {
  color: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
}

html[data-theme="fusion"] .video-time {
  color: #101217;
}

/* =========================================================
   Process
========================================================= */

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

.process-flow article {
  min-height: 230px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}

.process-flow article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--chrome-soft);
  opacity: 0.45;
  pointer-events: none;
}

.process-flow article > * {
  position: relative;
  z-index: 1;
}

.process-flow article:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.065);
}

html[data-theme="fusion"] .process-flow article:hover {
  background: rgba(0,0,0,0.045);
}

.process-flow span,
.module-row span,
.feature-band span,
.detail-grid span,
.mock-panel span {
  display: block;
  margin-bottom: 30px;
  color: var(--muted);
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* =========================================================
   Product Surface / Mock UI
========================================================= */

.product-surface {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 28px;
  align-items: center;
}

.surface-copy p {
  max-width: 460px;
}

.mock-dashboard {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent),
    var(--panel);
}

.mock-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.mock-topbar b {
  color: var(--text);
}

.mock-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
}

.mock-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255,255,255,0.035);
}

.mock-panel p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.control-panel {
  display: grid;
  gap: 10px;
}

.control-panel button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 12px;
  font-weight: 800;
}

.profile-panel {
  grid-column: span 2;
}

/* =========================================================
   Feature Band
========================================================= */

.feature-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
}

.feature-band article {
  min-height: 230px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  transition: background 0.2s ease, transform 0.2s ease;
}

.feature-band article:last-child {
  border-right: none;
}

.feature-band article:hover {
  background: rgba(255,255,255,0.06);
}

html[data-theme="fusion"] .feature-band article:hover {
  background: rgba(0,0,0,0.055);
}

.feature-band span {
  margin-bottom: 36px;
  font-weight: 900;
}

/* =========================================================
   Modules
========================================================= */

.modules {
  padding: 42px;
}

.module-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.module-row article {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: rgba(255,255,255,0.035);
  transition: transform 0.2s ease, background 0.2s ease;
}

.module-row article:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.065);
}

html[data-theme="fusion"] .module-row article:hover {
  background: rgba(0,0,0,0.045);
}


/* =========================================================
   FAQ Accordion
========================================================= */

.faq-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 28px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: 0 22px 70px var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 68px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  text-align: left;
  font-family: Montserrat, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-question b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s ease;
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
  padding: 0 20px;
  color: var(--muted);
}

.faq-item.is-open {
  background: var(--panel-strong);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer p {
  padding-bottom: 20px;
}

.faq-item.is-open .faq-question b {
  transform: rotate(45deg);
  color: var(--text);
  background: rgba(255,255,255,0.055);
}

html[data-theme="fusion"] .faq-item.is-open .faq-question b {
  background: rgba(0,0,0,0.045);
}

/* =========================================================
   Access / CTA
========================================================= */

.access {
  padding: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.access p {
  max-width: 620px;
}

.final-cta {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent),
    var(--panel);
}

/* =========================================================
   Detail Page
========================================================= */

.detail-hero,
.sub-hero {
  padding: 80px 0 20px;
}

.detail-hero h1 {
  max-width: 920px;
}

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

.detail-grid article {
  padding: 26px;
  min-height: 230px;
  background: rgba(255,255,255,0.035);
}

/* =========================================================
   Pricing / Access Matrix
========================================================= */

.pricing-hero {
  margin: 52px 0 60px;
  padding: clamp(34px, 6vw, 70px);
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.13), transparent 30%),
    var(--chrome);
}

.pricing-grid {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 20px 4px 34px;
  scroll-snap-type: x mandatory;
}

.pricing-grid::-webkit-scrollbar {
  height: 8px;
}

.pricing-grid::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.tier-card,
.price-card {
  min-width: 310px;
  max-width: 340px;
  min-height: 475px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.tier-card::before,
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--chrome-soft);
  opacity: 0.5;
  pointer-events: none;
}

.tier-card > *,
.price-card > * {
  position: relative;
  z-index: 1;
}

.tier-code {
  display: inline-flex;
  width: fit-content;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-family: Montserrat, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.tier-card h2,
.price-card h2 {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 22px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.065);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tier-card .price,
.price-card .price {
  margin: 28px 0 24px;
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
}

.price span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
}

.tier-card ul,
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}

.tier-card li,
.price-card li {
  color: var(--muted);
  line-height: 1.5;
}

.tier-card li::before,
.price-card li::before {
  content: "— ";
  color: var(--text);
}

.tier-card .btn,
.price-card .btn {
  margin-top: auto;
}


.price-card:hover,
.tier-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.28);
  background: var(--panel-strong);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 32px 95px var(--shadow);
}

html[data-theme="fusion"] .price-card:hover,
html[data-theme="fusion"] .tier-card:hover {
  border-color: rgba(0,0,0,0.2);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 32px 95px var(--shadow);
}

.tier-card.featured,
.price-card.featured {
  border-color: rgba(255,255,255,0.34);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.16),
    0 28px 90px var(--shadow);
}

/* =========================================================
   Footer
========================================================= */

footer {
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left p,
.footer-right p,
.footer-right span {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.footer-right {
  text-align: right;
}

/* =========================================================
   Animations
========================================================= */

.reveal {
  animation: revealUp 0.8s ease both;
}

.reveal-slow {
  animation-duration: 1.05s;
}

.process-flow article:nth-child(2),
.module-row article:nth-child(2),
.detail-grid article:nth-child(2) {
  animation-delay: 0.08s;
}

.process-flow article:nth-child(3),
.module-row article:nth-child(3),
.detail-grid article:nth-child(3) {
  animation-delay: 0.14s;
}

.process-flow article:nth-child(4),
.detail-grid article:nth-child(4) {
  animation-delay: 0.2s;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coreGlow {
  0%, 100% {
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(0.96);
  }

  50% {
    opacity: 0.48;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes buttonSignalSweep {
  0%, 68% {
    transform: translateX(-120%) rotate(8deg);
    opacity: 0;
  }

  74% {
    opacity: 1;
  }

  88%, 100% {
    transform: translateX(120%) rotate(8deg);
    opacity: 0;
  }
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1080px) {
  .hero-device {
    transform: none;
  }

  .product-surface,
  .what-it-is,
  .anti-spam,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .process-flow,
  .feature-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    backdrop-filter: blur(20px);
    margin-bottom: 16px;
  }

  .mobile-nav.is-open {
    display: grid;
    gap: 10px;
  }

  .mobile-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  html[data-theme="fusion"] .mobile-nav a {
    background: rgba(0,0,0,0.035);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-device {
    min-height: 470px;
  }

  .module-row {
    grid-template-columns: 1fr;
  }

  .feature-band article {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .feature-band article:last-child {
    border-bottom: none;
  }

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

  .video-controls {
    grid-template-columns: auto 1fr auto auto;
    border-radius: 24px;
  }

  .video-time,
  .video-volume {
    display: none;
  }
}

@media (max-width: 660px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 74px;
  }

  .brand-image-wrap {
    width: 138px;
    height: 38px;
  }

  .brand-logo {
    max-width: 138px;
    max-height: 38px;
  }

  #themeLabel {
    display: none;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-device {
    min-height: 390px;
  }

  .status-strip span {
    flex: 1 1 100%;
  }

  .what-it-is,
  .anti-spam,
  .faq-section,
  .modules,
  .access,
  .price-card,
  .pricing-note,
  .mock-dashboard,
  .detail-grid article,
  .process-flow article {
    padding: 24px;
  }

  .process-flow,
  .feature-band,
  .detail-grid,
  .mock-grid,
  .compliance-strip {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    grid-column: auto;
  }

  .tier-card,
  .price-card {
    min-width: 82vw;
  }

  .device-top p {
    font-size: 0.58rem;
  }

  .data-stack div {
    align-items: flex-start;
  }

  .core-logo {
    width: 82%;
  }

  .video-controls {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  footer {
    flex-direction: column;
  }
}