/* =====================================================================
   MassDigital - styles
   1. Fonts & tokens      5. Header / Footer      9.  Ticker
   2. Base                6. Hero                 10. Channels / Process
   3. Utilities           7. Logo marquee         11. About / FAQ / Contact
   4. Shared components   8. Services             12. Legal pages, 404
   ===================================================================== */

/* ---------- 1. Fonts & tokens ---------- */
@font-face {
  font-family: "Unbounded";
  src: url(../fonts/Unbounded.woff2) format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url(../fonts/Geist.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Metric-matched fallbacks: no layout shift while the web fonts load. */
@font-face {
  font-family: "Unbounded Fallback";
  src: local("Arial");
  ascent-override: 73.13%;
  descent-override: 18.01%;
  line-gap-override: 0%;
  size-adjust: 136.07%;
}

@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  ascent-override: 94.56%;
  descent-override: 27.76%;
  line-gap-override: 0%;
  size-adjust: 106.28%;
}

:root {
  --font-display: "Unbounded", "Unbounded Fallback", system-ui, sans-serif;
  --font-sans: "Geist", "Geist Fallback", system-ui, sans-serif;

  --bg: #0b0b0c;
  --bg-raised: #101114;
  --surface: #15161b;
  --surface-2: #1c1e25;
  --border: #23252d;
  --border-strong: #2a2d36;
  --text: #f3f4f7;
  --text-2: #c3c9d5;
  --muted: #a1a8b8;
  --subtle: #8d95a8;

  --blue: #4c7dff;
  --blue-600: #2f5bea;
  --blue-300: #7c9cff;
  --blue-200: #a9beff;
  --navy: #10152a;
  --navy-border: #243055;

  --green: #22c58b;
  --violet: #9b82ff;
  --lilac: #d98bff;
  --sky: #7cd4ff;
  --pink: #ff5c93;
  --cyan: #5ce1e6;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 24px);
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

a:hover {
  color: var(--blue-200);
}

ul {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(76, 125, 255, 0.4);
}

:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus-visible {
  transform: none;
  color: var(--bg);
}

/* Icons from img/icons.svg; stroke width is set per icon with the stroke-width attribute. */
.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Accent helper: sets --accent / --accent-rgb for the element and its children. */
[data-accent="blue"] { --accent: var(--blue-300); --accent-rgb: 76, 125, 255; }
[data-accent="green"] { --accent: #4be0a8; --accent-rgb: 34, 197, 139; }
[data-accent="violet"] { --accent: #b9a4ff; --accent-rgb: 155, 130, 255; }
[data-accent="lilac"] { --accent: var(--lilac); --accent-rgb: 217, 139, 255; }
[data-accent="sky"] { --accent: var(--sky); --accent-rgb: 124, 212, 255; }
[data-accent="pink"] { --accent: #ff7fae; --accent-rgb: 255, 92, 147; }
[data-accent="cyan"] { --accent: var(--cyan); --accent-rgb: 92, 225, 230; }

/* Interactive card: cursor spotlight + lit edge (--mx / --my are set by js/main.js). */
.spot-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: translate 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}

.spot-card::before,
.spot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.spot-card::before {
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 156, 255, 0.16), transparent 45%);
}

.spot-card::after {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 156, 255, 0.85), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@media (hover: hover) {
  .spot-card:hover::before,
  .spot-card:hover::after { opacity: 1; }
  .spot-card[data-lift]:hover {
    translate: 0 -6px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 40px -12px rgba(76, 125, 255, 0.35);
  }
  .spot-card[data-lift]:hover .spot-icon { transform: scale(1.1) rotate(-6deg); }
}

.spot-icon { transition: transform 0.4s var(--ease-out); }

/* Motion */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.reveal-in {
  animation: fade-up 0.9s var(--ease-out) both;
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-in { animation: none !important; }
}

/* ---------- 4. Shared components ---------- */

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 17px;
}

.btn-primary,
.btn-primary:hover {
  color: #fff;
}

.btn-primary { background: var(--blue); }
.btn-primary:hover { background: #5b88ff; }

.btn-secondary {
  border: 1.5px solid #3a3e4a;
  background: rgba(21, 22, 27, 0.7);
  color: var(--text);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--blue-300);
}

.btn-light,
.btn-light:hover {
  color: var(--bg);
}

.btn-light { background: var(--text); }
.btn-light:hover { background: #fff; }

/* Arrow that nudges right on hover (buttons, contact email). */
.nudge {
  transition: transform 0.2s;
}

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { box-shadow: 0 14px 34px -12px rgba(76, 125, 255, 0.75); }
  .btn:hover .nudge { transform: translateX(3px); }
}

@media (max-width: 480px) {
  .btn-lg { width: 100%; }
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
}

.logo-word {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-sm .logo-word {
  font-size: 21px;
}

.logo-word span {
  font-weight: 500;
  color: var(--blue-300);
}

/* Section heading: eyebrow + title (+ intro) */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.title {
  margin-top: 14px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.05;
}

.heading {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 780px;
}

.heading .title {
  font-size: clamp(30px, 3.7vw, 52px);
}

.heading .muted { color: #5c6375; }
.heading .accent { color: var(--blue-300); }

.heading-intro {
  max-width: 560px;
  color: var(--muted);
}

.heading-split {
  max-width: none;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.heading-split > div { max-width: 780px; }
.heading-split .heading-intro { max-width: 400px; }

/* Card + 4-column card grid (Channels, Process) */
.card {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.card-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.cards-4 {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1023px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .cards-4 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
}

/* ---------- 5. Header / Footer ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(11, 11, 12, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color 0.25s, border-color 0.25s;
}

.header.is-solid {
  background: rgba(11, 11, 12, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.header-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.nav a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: #d5d9e2;
  transition: background-color 0.2s, color 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

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

.burger {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
}

/* The burger shows "menu" when closed and "close" when open. */
.burger .icon-close,
.burger[aria-expanded="true"] .icon-menu { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  border-top: 1px solid var(--surface-2);
  padding: 8px 0 24px;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a:not(.btn) {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--surface-2);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 20px;
}

@media (max-width: 1023px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
}

@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

.footer {
  border-top: 1px solid var(--surface-2);
  padding: clamp(56px, 7vw, 80px) 0 32px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  flex: 1 1 300px;
  max-width: 400px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

.footer-contact {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.footer-contact a {
  font-size: 15px;
  color: var(--muted);
}

.footer-contact a:hover {
  color: var(--text);
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
}

.footer-col p {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 15px;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-wordmark {
  margin-top: 64px;
  font-family: var(--font-display);
  font-size: clamp(30px, 9.2vw, 148px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #17181d;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--subtle);
}

@media (max-width: 560px) {
  .footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(760px, calc(100svh - var(--header-h)));
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(56px, 7vw, 88px);
}

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 12, 0) 22%),
    linear-gradient(90deg, rgba(11, 11, 12, 0.92) 0%, rgba(11, 11, 12, 0.6) 38%, rgba(11, 11, 12, 0) 68%);
}

.hero-inner {
  position: relative;
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  pointer-events: auto;
}

.hero-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-spark path {
  fill: none;
  stroke: var(--blue-300);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 90;
  animation: spark 3.2s ease-in-out infinite;
}

.hero-spark circle {
  fill: #fff;
  animation: blink 1.6s infinite;
}

.hero-slash {
  color: var(--blue);
}

.hero-title {
  margin-top: 24px;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-word-box {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  padding: 0 0.24em 0.06em;
  line-height: 1.12;
  border-radius: 0.18em;
  background: var(--blue);
  color: #fff;
}

.hero-word {
  display: inline-block;
  animation: word-in 0.55s var(--ease-out) both;
}

.hero-lead {
  margin-top: 22px;
  max-width: 580px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--muted);
}

.hero-ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Sources -> beam -> customers */
.hero-flow {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}

.hero-sources {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.hero-sources li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 6px 0;
  transition: transform 0.25s;
}

.hero-sources img {
  width: auto;
  height: 15px;
  opacity: 0.85;
  transition: opacity 0.25s;
}

.hero-sources span {
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0.3);
  opacity: 0.45;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

@media (hover: hover) {
  .hero-sources li:hover { transform: translateY(-2px); }
  .hero-sources li:hover img { opacity: 1; }
  .hero-sources li:hover span {
    transform: scaleX(1);
    opacity: 1;
  }
}

.hero-beam {
  position: relative;
  width: 96px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(124, 156, 255, 0), rgba(124, 156, 255, 0.7));
}

.hero-beam::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px 4px rgba(124, 156, 255, 0.85);
  animation: beam 1.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.hero-result {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.hero-result .icon {
  color: var(--blue-300);
}

@keyframes spark {
  0% { stroke-dashoffset: 90; opacity: 1; }
  50%, 85% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes blink {
  50% { opacity: 0.35; }
}

@keyframes word-in {
  from { opacity: 0; transform: translateY(0.55em); }
  to { opacity: 1; transform: none; }
}

@keyframes beam {
  0% { left: 0; opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

@media (max-width: 1023px) {
  .hero { min-height: 0; }
  .hero-veil {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 12, 0) 25%),
      linear-gradient(180deg, rgba(11, 11, 12, 0.6) 0%, rgba(11, 11, 12, 0.45) 60%, rgba(11, 11, 12, 0.8) 100%);
  }
}

@media (max-width: 560px) {
  .hero-beam { display: none; }
  .hero-flow { gap: 14px; }
  .hero-result { width: 100%; }
}

/* ---------- 7. Logo marquee ---------- */
.marquee {
  padding: 24px 0;
  border-top: 1px solid var(--surface-2);
  border-bottom: 1px solid var(--surface-2);
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

/* Shared by the logo marquee and the ticker: two identical groups scroll by -50% in a loop. */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee ul {
  list-style: none;
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

.marquee li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  padding: 0 34px;
  border-radius: 20px;
  background: #121318;
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, background-color 0.3s;
}

.marquee img {
  width: auto;
  height: 26px;
  opacity: 0.55;
  transition: opacity 0.35s;
}

@media (hover: hover) {
  .marquee li:hover {
    transform: translateY(-3px);
    border-color: var(--blue);
    background: #16192a;
  }
  .marquee li:hover img { opacity: 1; }
}

@media (max-width: 560px) {
  .marquee li {
    height: 60px;
    padding: 0 24px;
  }
  .marquee img { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 120s; }
}

/* ---------- 8. Services ---------- */
.services {
  padding: var(--section-y) 0;
}

.services-main {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: 28px;
  border: 1px solid var(--navy-border);
  background: radial-gradient(circle at 85% 15%, rgba(76, 125, 255, 0.32), rgba(76, 125, 255, 0) 60%), var(--navy);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.services-badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(76, 125, 255, 0.16);
  border: 1px solid rgba(124, 156, 255, 0.3);
  color: var(--blue-200);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.services-main h3 {
  margin-top: 20px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
}

.services-main-desc {
  margin-top: 16px;
  max-width: 520px;
  color: var(--text-2);
  font-size: clamp(16px, 1.3vw, 18px);
}

.services-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.services-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s;
}

.services-features .icon {
  margin-top: 3px;
  color: var(--blue-300);
}

@media (hover: hover) {
  .services-features li:hover {
    background: rgba(124, 156, 255, 0.14);
    border-color: rgba(124, 156, 255, 0.4);
    transform: translateX(4px);
  }
}

.services-grid {
  list-style: none;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 270px;
  padding: 32px;
  background: radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0) 55%), var(--surface);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-card-top span {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--bg);
  color: var(--accent);
}

.service-card-top b {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.service-card h3 {
  margin-top: auto;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.15;
}

.service-card p {
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 1023px) {
  .services-main { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .services-features,
  .services-grid { grid-template-columns: 1fr; }
  .service-card {
    min-height: 0;
    padding: 26px;
  }
  .service-card h3 { margin-top: 12px; }
}

/* ---------- 9. Ticker ---------- */
/* .ticker clips the rotated band so it never causes horizontal scrolling. */
.ticker {
  overflow: hidden;
  padding: 28px 0;
}

.ticker-band {
  margin: 0 -20px;
  padding: 24px 0;
  background: #121318;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transform: rotate(-1.5deg);
}

.ticker .marquee-track {
  animation-duration: 30s;
}

.ticker-group {
  display: flex;
}

.ticker-group > span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.ticker-group > span::after {
  content: "✦";
  display: inline-block;
  color: var(--blue);
  animation: spin 5s linear infinite;
}

.ticker-group b {
  font-weight: inherit;
  animation: glow 3.6s ease-in-out infinite;
}

/* Words glow in a wave: every 3rd word shares a delay. */
.ticker-group > span:nth-child(3n + 2) b { animation-delay: 1.2s; }
.ticker-group > span:nth-child(3n + 3) b { animation-delay: 2.4s; }

@keyframes glow {
  0%, 70%, 100% { color: var(--text); text-shadow: none; }
  35% { color: var(--blue-200); text-shadow: 0 0 24px rgba(76, 125, 255, 0.6); }
}

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

@media (prefers-reduced-motion: reduce) {
  .ticker .marquee-track { animation-duration: 120s; }
  .ticker-group b,
  .ticker-group > span::after { animation: none; }
}

/* ---------- 10. Channels / Process ---------- */
.channels {
  padding: calc(var(--section-y) + 16px) 0 var(--section-y);
}

.channel-glow {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.45), rgba(var(--accent-rgb), 0));
  z-index: -1;
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
}

.channel-badge img {
  width: auto;
  height: 24px;
}

.channels h3 {
  margin-top: 28px;
  font-size: clamp(22px, 2vw, 28px);
}

.channels-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--subtle);
}

.process {
  padding: var(--section-y) 0;
}

.process-num {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.process h3 {
  margin-top: 24px;
  font-size: clamp(22px, 2vw, 26px);
}

/* The last step is highlighted. */
.process-highlight {
  border-color: var(--navy-border);
  background: radial-gradient(circle at 100% 0%, rgba(76, 125, 255, 0.3), rgba(76, 125, 255, 0) 60%), var(--navy);
}

.process-highlight .process-num {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.process-highlight .card-desc {
  color: var(--text-2);
}

/* ---------- 11. About / FAQ / Contact ---------- */
.about {
  padding: 0 0 var(--section-y);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}

.about-body {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
}

.about-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-card {
  padding: 28px;
  border-radius: 22px;
}

.about-card > span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
}

.about-card h3 {
  margin-top: 18px;
  font-size: 20px;
}

.about-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 1023px) {
  .about-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { padding: 24px; }
}

.faq {
  padding: var(--section-y) 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--surface-2);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.faq-intro {
  margin-top: 18px;
  color: var(--muted);
}

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

.faq-list details {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.25s;
}

.faq-list details[open] {
  border-color: var(--border-strong);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-radius: inherit;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  color: var(--blue-200);
}

.faq-toggle {
  flex: none;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--blue-300);
  transition: transform 0.3s var(--ease-out), background-color 0.25s;
}

.faq-list details[open] .faq-toggle {
  transform: rotate(45deg);
  background: rgba(76, 125, 255, 0.14);
}

.faq-list details p {
  padding: 0 26px 24px;
  margin-top: -6px;
  color: var(--muted);
  font-size: 16px;
  max-width: 680px;
}

@media (max-width: 1023px) {
  .faq-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .faq-list summary { padding: 18px 20px; }
  .faq-list details p { padding: 0 20px 20px; }
}

.contact {
  padding: clamp(64px, 9vw, 112px) 0;
}

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 40px;
  padding: clamp(32px, 6vw, 88px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--navy-border);
  background-color: #0f1427;
  background-image:
    linear-gradient(rgba(124, 156, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 156, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.contact-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.contact-orb:first-child {
  right: -80px;
  top: -100px;
  width: 360px;
  height: 360px;
  background: rgba(76, 125, 255, 0.45);
}

.contact-orb + .contact-orb {
  left: 30%;
  bottom: -140px;
  width: 300px;
  height: 300px;
  background: rgba(155, 130, 255, 0.3);
  animation-duration: 6s;
  animation-delay: 1.5s;
}

.contact-text {
  flex: 1 1 460px;
  min-width: 0;
}

.contact-text h2 {
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1;
}

.contact-text p {
  margin-top: 20px;
  max-width: 520px;
  color: var(--text-2);
  font-size: clamp(16px, 1.4vw, 19px);
}

.contact-info {
  flex: 0 1 380px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-details {
  list-style: none;
  display: grid;
  gap: 10px;
}

.contact-details a {
  font-size: 15px;
  color: var(--muted);
}

.contact-details a:hover {
  color: var(--text);
}

.contact-email {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 24px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-email span {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.contact-email:hover {
  color: var(--bg);
}

@media (hover: hover) {
  .contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -12px rgba(255, 255, 255, 0.35);
  }
  .contact-email:hover .nudge { transform: translateX(3px); }
}

@media (max-width: 560px) {
  .contact-panel { padding: 28px 22px; }
  .contact-email {
    flex-basis: 100%;
    gap: 10px;
    padding: 0 18px;
    font-size: 15px;
  }
}

@keyframes float {
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-orb { animation: none; }
}

/* ---------- 12. Legal pages, 404 ---------- */
.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  background: var(--bg-raised);
  border-bottom: 1px solid var(--surface-2);
}

.legal-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 125, 255, 0.35), rgba(76, 125, 255, 0));
}

.legal-hero .container {
  position: relative;
}

.legal-hero .title {
  font-size: clamp(30px, 3.8vw, 52px);
}

.legal-updated {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: clamp(32px, 5vw, 64px);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: var(--section-y);
  align-items: start;
}

.legal-toc,
.legal-contact {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.legal-toc .eyebrow {
  font-size: 12px;
}

.legal-toc ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.legal-toc a {
  font-size: 15px;
  color: var(--muted);
}

.legal-toc a:hover {
  color: var(--text);
}

.legal-article {
  line-height: 1.7;
}

.legal-intro {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text-2);
}

.legal-article section {
  margin-top: 40px;
}

.legal-article h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.legal-article section p,
.legal-article section ul {
  margin-top: 12px;
  color: var(--text-2);
}

.legal-article section ul {
  padding-left: 22px;
}

.legal-article li + li {
  margin-top: 6px;
}

.legal-article strong {
  color: var(--text);
}

.legal-contact {
  margin-top: 14px;
  color: var(--text-2);
}

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

.not-found {
  padding: clamp(80px, 14vw, 160px) 0;
}

.not-found .eyebrow {
  font-size: 14px;
}

.not-found h1 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 52px);
}

.not-found p:not(.eyebrow) {
  margin: 16px 0 32px;
  color: var(--muted);
}
