/* =========================================================
   DigitalPlix — main.css
   Styles for the DigitalPlix marketing homepage.
   ========================================================= */

:root {
  --bg: #0a0a12;
  --bg-2: #0f0f1c;
  --surface: #13131f;
  --surface-2: #1a1a2a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9e9f1;
  --muted: #9a9ab0;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --nav-bg: rgba(10, 10, 18, 0.55);
  --nav-bg-scrolled: rgba(10, 10, 18, 0.82);
  --btn-primary-bg: #ffffff;
  --btn-primary-color: #0a0a12;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #fbf8f6;
  --bg-2: #f3eeea;
  --surface: #ffffff;
  --surface-2: #f7f1ee;
  --line: rgba(20, 10, 10, 0.09);
  --text: #15101a;
  --muted: #6b6470;
  --accent: #e11d2e;        /* primary red */
  --accent-2: #ff6a3d;      /* warm coral */
  --accent-3: #ff9aa2;      /* soft pink */
  --nav-bg: rgba(251, 248, 246, 0.7);
  --nav-bg-scrolled: rgba(251, 248, 246, 0.92);
  --btn-primary-bg: #e11d2e;
  --btn-primary-color: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.accent { color: var(--accent); }

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease), width 0.2s var(--ease), height 0.2s var(--ease);
  mix-blend-mode: difference;
}
.cursor {
  width: 36px; height: 36px;
  border: 1px solid currentColor;
  color: var(--text);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--text);
}
.cursor.is-hover { width: 64px; height: 64px; }
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 3vw, 2.5rem);
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.is-scrolled {
  background: var(--nav-bg-scrolled);
  border-bottom-color: var(--line);
}
.nav__logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: -0.01em;
}
.nav__logo-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: conic-gradient(from 220deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 50%, transparent);
}
.nav__links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.92rem;
}
.nav__links a {
  color: var(--muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--text);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 22px; height: 1.5px; background: var(--text); transition: 0.3s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.4s var(--ease);
}
.theme-toggle:hover { border-color: var(--text); transform: rotate(15deg); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 880px) {
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-2);
    padding: 1rem 1.5rem 2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.4s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(225, 29, 46, 0.45);
  background: var(--accent);
  color: #fff;
}
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--text); }
.btn--link { color: var(--muted); padding: 0.85rem 0.5rem; }
.btn--link:hover { color: var(--text); }

/* ---------- Eyebrow / Section heads ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}
.section { padding: clamp(5rem, 10vw, 9rem) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 720px; margin-bottom: 3.5rem; }
.section__head .eyebrow { margin-bottom: 1rem; }
.section__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 0 3rem;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}
.orb--a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -120px; left: -120px;
}
.orb--b {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  bottom: -180px; right: -160px;
  animation-delay: -7s;
}
:root[data-theme="light"] .orb { opacity: 0.28; filter: blur(100px); }
:root[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(rgba(20,10,10,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,10,10,0.06) 1px, transparent 1px);
}
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
}
.hero__content { min-width: 0; }
.hero__inner .eyebrow { margin-bottom: 1.25rem; }
.hero__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.reveal-line {
  display: block;
  overflow: hidden;
}
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.reveal-line.is-in > span { transform: translateY(0); }
.reveal-line:nth-child(2) > span { transition-delay: 0.1s; }
.reveal-line:nth-child(3) > span { transition-delay: 0.2s; }

.hero__sub {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin-bottom: 2.25rem;
}
.hero__cta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.hero__stats {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 720px;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.hero__stats > div { display: flex; flex-direction: column; gap: 0.25rem; }
.hero__stats strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 600;
}
.hero__stats span { color: var(--muted); font-size: 0.85rem; }

/* Reveal base */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Marquee */
.marquee {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.marquee__track {
  display: inline-flex;
  gap: 2rem;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  color: var(--muted);
}
.marquee__track span:nth-child(odd) { color: var(--text); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.service-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%),
              color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.service-card__num {
  font-family: "Space Grotesk", sans-serif;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
}
.service-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.service-card p { color: var(--muted); margin-bottom: 1.25rem; font-size: 0.95rem; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.88rem; color: var(--text); }
.service-card ul li::before { content: "→ "; color: var(--accent); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 880px) { .about { grid-template-columns: 1fr; } }
.about .eyebrow { margin-bottom: 1rem; }
.about .section__title { margin-bottom: 1.5rem; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin-bottom: 2.25rem; }
.about__pillars { display: grid; gap: 1.5rem; }
.about__pillars h4 { font-family: "Space Grotesk", sans-serif; font-weight: 600; margin-bottom: 0.25rem; }
.about__pillars p { color: var(--muted); font-size: 0.95rem; }

.visual-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.visual-card::after {
  content: "";
  position: absolute; inset: -1px;
  background: linear-gradient(120deg, transparent 30%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { transform: rotate(360deg); } }
.visual-card__label { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.bars { display: flex; align-items: flex-end; gap: 0.75rem; height: 180px; margin: 1.5rem 0; }
.bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 8px 8px 4px 4px;
  opacity: 0.85;
  animation: rise 1.2s var(--ease) both;
}
.bars span:nth-child(2) { animation-delay: 0.08s; }
.bars span:nth-child(3) { animation-delay: 0.16s; }
.bars span:nth-child(4) { animation-delay: 0.24s; }
.bars span:nth-child(5) { animation-delay: 0.32s; }
.bars span:nth-child(6) { animation-delay: 0.4s; }
.bars span:nth-child(7) { animation-delay: 0.48s; }
@keyframes rise { from { height: 0; opacity: 0; } }
.visual-card__row { display: flex; gap: 2rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.visual-card__row strong { font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; display: block; }
.visual-card__row span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }
.work {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  isolation: isolate;
}
.work__media {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, var(--c1), transparent 60%),
    radial-gradient(circle at 70% 70%, var(--c2), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.9);
}
:root[data-theme="light"] .work::after {
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55));
}
:root[data-theme="light"] .work__meta span,
:root[data-theme="light"] .work__meta em { color: #fff; }
.work::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.7));
  z-index: 1;
}
.work__meta {
  position: absolute;
  left: 1.5rem; right: 1.5rem; bottom: 1.25rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}
.work__meta span { font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; font-weight: 600; }
.work__meta em { color: var(--muted); font-style: normal; font-size: 0.85rem; }
.work:hover .work__media { transform: scale(1.06); filter: saturate(1.15); }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.quote:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.quote blockquote {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  line-height: 1.45;
}
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--muted); font-size: 0.88rem; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.cta__inner { text-align: center; max-width: 760px; margin-inline: auto; }
.cta h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.cta p { color: var(--muted); margin-bottom: 2.5rem; }
.cta__form {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem;
}
.cta__form input {
  background: transparent;
  border: 0;
  padding: 0.85rem 1.25rem;
  color: var(--text);
  font: inherit;
  outline: none;
  min-width: 0;
}
.cta__form input::placeholder { color: var(--muted); }
.cta__form input:not(:last-of-type) { border-right: 1px solid var(--line); }
@media (max-width: 760px) {
  .cta__form { grid-template-columns: 1fr; border-radius: var(--radius); padding: 1rem; }
  .cta__form input { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .cta__form .btn { justify-content: center; }
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 4rem; }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
@media (max-width: 720px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__tag { color: var(--muted); margin-top: 0.75rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__cols h5 { font-family: "Space Grotesk", sans-serif; font-size: 0.95rem; margin-bottom: 1rem; }
.footer__cols a { display: block; color: var(--muted); padding: 0.3rem 0; transition: color 0.2s var(--ease); }
.footer__cols a:hover { color: var(--text); }
.footer__base {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-line > span { opacity: 1; transform: none; }
  .sphere, .rings .ring, .orbit, .core, .chip { animation: none !important; }
}

/* =========================================================
   Hero 3D Scene — interactive marketing sphere
   ========================================================= */
.hero__scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-inline: auto;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}
@media (max-width: 980px) {
  .hero__scene { max-width: 380px; margin-top: 2rem; }
}

.scene__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, -8deg)) rotateY(var(--ry, 14deg));
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

/* --- Glowing rings (orbital planes) --- */
.rings { position: absolute; inset: 0; transform-style: preserve-3d; }
.ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 360px; height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow:
    inset 0 0 40px color-mix(in srgb, var(--accent) 25%, transparent),
    0 0 30px color-mix(in srgb, var(--accent) 20%, transparent);
}
.ring--1 { transform: rotateX(75deg) rotateZ(0deg); animation: ringSpin 22s linear infinite; }
.ring--2 {
  width: 280px; height: 280px; margin: -140px 0 0 -140px;
  border-color: color-mix(in srgb, var(--accent-2) 50%, transparent);
  box-shadow:
    inset 0 0 30px color-mix(in srgb, var(--accent-2) 30%, transparent),
    0 0 25px color-mix(in srgb, var(--accent-2) 20%, transparent);
  transform: rotateX(60deg) rotateY(45deg);
  animation: ringSpin 16s linear infinite reverse;
}
.ring--3 {
  width: 440px; height: 440px; margin: -220px 0 0 -220px;
  border-color: color-mix(in srgb, var(--accent-3) 40%, transparent);
  border-style: dashed;
  transform: rotateX(85deg) rotateZ(30deg);
  animation: ringSpin 36s linear infinite;
}
@keyframes ringSpin { to { transform: rotateX(75deg) rotateZ(360deg); } }

/* --- Sphere of tag nodes --- */
.sphere {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  animation: sphereSpin 28s linear infinite;
}
@keyframes sphereSpin {
  from { transform: rotateY(0deg) rotateX(15deg); }
  to   { transform: rotateY(360deg) rotateX(15deg); }
}

.node {
  position: absolute;
  top: 0; left: 0;
  transform: translate3d(var(--x), var(--y), var(--z)) translate(-50%, -50%);
  transform-style: preserve-3d;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.85rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow:
    0 6px 20px -8px color-mix(in srgb, var(--accent) 50%, transparent),
    inset 0 0 12px color-mix(in srgb, var(--accent) 12%, transparent);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.node i { font-style: normal; }
.node:hover {
  background: var(--accent);
  color: #fff;
  box-shadow:
    0 12px 36px -6px color-mix(in srgb, var(--accent) 70%, transparent),
    0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
  transform: translate3d(var(--x), var(--y), var(--z)) translate(-50%, -50%) scale(1.25);
  z-index: 10;
}

/* --- Orbiting dots --- */
.orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
}
.dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  top: -7px; left: -7px;
  box-shadow: 0 0 24px currentColor;
}
.dot--a {
  background: var(--accent);
  color: var(--accent);
  animation: orbitA 6s linear infinite;
}
.dot--b {
  background: var(--accent-2);
  color: var(--accent-2);
  animation: orbitB 9s linear infinite;
}
.dot--c {
  background: var(--accent-3);
  color: var(--accent-3);
  animation: orbitC 12s linear infinite;
}
@keyframes orbitA {
  from { transform: rotateY(0deg)   translateX(180px) rotateY(0deg); }
  to   { transform: rotateY(360deg) translateX(180px) rotateY(-360deg); }
}
@keyframes orbitB {
  from { transform: rotateX(60deg) rotateY(0deg)   translateX(140px) rotateY(0deg); }
  to   { transform: rotateX(60deg) rotateY(360deg) translateX(140px) rotateY(-360deg); }
}
@keyframes orbitC {
  from { transform: rotateZ(45deg) rotateY(0deg)   translateX(220px) rotateY(0deg); }
  to   { transform: rotateZ(45deg) rotateY(-360deg) translateX(220px) rotateY(360deg); }
}

/* --- Glowing core --- */
.core {
  position: absolute;
  top: 50%; left: 50%;
  width: 70px; height: 70px;
  margin: -35px 0 0 -35px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--accent) 80%, #000) 55%, color-mix(in srgb, var(--accent) 30%, #000) 100%);
  box-shadow:
    0 0 40px color-mix(in srgb, var(--accent) 70%, transparent),
    0 0 90px color-mix(in srgb, var(--accent-2) 40%, transparent),
    inset -6px -8px 16px rgba(0,0,0,0.4);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.08); filter: brightness(1.2); }
}

/* --- Floating metric chips (parallax via JS) --- */
.chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.chip {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0.6rem 0.9rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px -16px rgba(0,0,0,0.5);
  font-family: "Space Grotesk", sans-serif;
  transition: transform 0.3s var(--ease);
  will-change: transform;
}
.chip b { font-size: 1.05rem; color: var(--text); }
.chip i { font-style: normal; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.chip--ctr  { top: 8%;  left: -4%;  --pf: 1.6; animation: floatY 5s ease-in-out infinite; }
.chip--roas { top: 42%; right: -8%; --pf: -1.2; animation: floatY 6.5s ease-in-out infinite 0.4s; }
.chip--conv { bottom: 6%; left: 12%; --pf: 2; animation: floatY 5.5s ease-in-out infinite 0.8s; }
@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

@media (max-width: 980px) {
  .ring--1 { width: 260px; height: 260px; margin: -130px 0 0 -130px; }
  .ring--2 { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
  .ring--3 { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
  .node { font-size: 0.7rem; padding: 0.35rem 0.7rem; }
}

/* =========================================================
   DigitalPlix — additional homepage components
   ========================================================= */

/* ---------- Growth metrics ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 880px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .metrics { grid-template-columns: 1fr; } }
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.metric:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.metric strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Process (5 steps) ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  position: relative;
}

/* ---------- Paid marketing process (8 steps) ---------- */
.paid-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 980px) { .paid-process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .paid-process { grid-template-columns: 1fr; } }
.paid-process .service-card { padding: 1.5rem 1.35rem; }
.paid-process .service-card__num { margin-bottom: 1.25rem; }
.paid-process .service-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.paid-process .service-card p { font-size: 0.88rem; margin-bottom: 0; }

/* ---------- Why choose ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.why-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.why-card__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--accent-2) 20%, transparent));
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}
.why-card h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.why-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Industries ---------- */
.industries {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
}
.industries li {
  padding: 0.85rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  cursor: default;
}
.industries li:hover {
  transform: translateY(-3px);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- FAQ accordion ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 860px;
  margin-inline: auto;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.5rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  color: var(--muted);
  padding: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 70ch;
}

