/* ═══════════════════════════════════════════════
   GlowX — Premium agency site
   Palette from logo: #820263 (magenta) / #000 / #fff
   ═══════════════════════════════════════════════ */

:root {
  --bg: #060407;
  --bg-2: #0c0710;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --ink: #f6f2f7;
  --muted: #a89ca9;
  --brand: #820263;
  --brand-bright: #c81d9d;
  --brand-soft: #e058c4;
  --glow: rgba(130, 2, 99, 0.5);
  --grid-line: rgba(255, 255, 255, 0.025);
  --frame-border: rgba(255, 255, 255, 0.1);
  --marquee-ink: rgba(246, 242, 247, 0.55);
  --list-ink: rgba(246, 242, 247, 0.85);
  --nav-bg: rgba(6, 4, 7, 0.72);
  --menu-bg: rgba(6, 4, 7, 0.97);
  --overlay: rgba(6, 4, 7, 0.93);
  --btn-nav-text: #0a0510;
  --stepnum-a: rgba(246, 242, 247, 0.25);
  --stepnum-b: rgba(246, 242, 247, 0.04);
  --heading-dim: rgba(246, 242, 247, 0.5);
  --manifesto-dim: rgba(246, 242, 247, 0.16);
  --font-display: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f7f3f8;
  --bg-2: #efe8f2;
  --surface: rgba(25, 10, 20, 0.035);
  --border: rgba(25, 10, 20, 0.1);
  --ink: #190a14;
  --muted: #6d5a6c;
  --brand: #820263;
  --brand-bright: #a8137f;
  --brand-soft: #8f0f74;
  --glow: rgba(130, 2, 99, 0.22);
  --grid-line: rgba(25, 10, 20, 0.04);
  --frame-border: rgba(25, 10, 20, 0.12);
  --marquee-ink: rgba(25, 10, 20, 0.55);
  --list-ink: rgba(25, 10, 20, 0.85);
  --nav-bg: rgba(247, 243, 248, 0.8);
  --menu-bg: rgba(247, 243, 248, 0.97);
  --overlay: rgba(247, 243, 248, 0.95);
  --btn-nav-text: #f7f3f8;
  --stepnum-a: rgba(25, 10, 20, 0.3);
  --stepnum-b: rgba(25, 10, 20, 0.06);
  --heading-dim: rgba(25, 10, 20, 0.5);
  --manifesto-dim: rgba(25, 10, 20, 0.14);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
}

/* light mode uses the original black+purple logo */
[data-theme="light"] .logo-img,
[data-theme="light"] .preloader-logo img { content: url("../assets/img/logo-dark.png"); }

::selection { background: var(--brand); color: #fff; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { position: relative; padding: 140px 0; }

/* ─────────── Space background ─────────── */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─────────── Smooth scroll wrapper ─────────── */
.smooth-wrapper { position: relative; z-index: 1; }
body.smooth-on .smooth-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
body.smooth-on .smooth-content { will-change: transform; }

/* ─────────── Preloader ─────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-logo img {
  width: clamp(220px, 32vw, 340px);
  height: auto;
  clip-path: inset(0 100% 0 0);
  animation: plWipe 1s 0.15s var(--ease-out) forwards;
  filter: drop-shadow(0 0 34px rgba(200, 29, 157, 0.35));
}
@keyframes plWipe { to { clip-path: inset(0 0 0 0); } }
.preloader-bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  animation: plBar 1s 0.3s var(--ease-out) forwards;
}
@keyframes plBar { to { width: 100%; } }

/* ─────────── Custom cursor ─────────── */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--brand-bright);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(200, 29, 157, 0.5);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              background 0.3s, border-color 0.3s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  background: rgba(200, 29, 157, 0.08);
  border-color: rgba(200, 29, 157, 0.9);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ─────────── Navigation ─────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s, border-color 0.4s,
              transform 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px 0;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo-x { width: 30px; height: 25px; color: var(--ink); }
.logo-img { height: 34px; width: auto; display: block; }
.logo-img-footer { height: 42px; }
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--brand-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Pill-style dark/light switch */
.theme-toggle {
  position: relative;
  width: 64px;
  height: 34px;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.theme-toggle:hover { border-color: var(--brand-bright); background: rgba(200, 29, 157, 0.08); }
.theme-toggle svg {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  transition: opacity 0.4s;
}
.theme-toggle .icon-sun { left: 10px; opacity: 1; }
.theme-toggle .icon-moon { right: 10px; opacity: 0.4; }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 0.4; }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; }
.tt-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  box-shadow: 0 2px 10px rgba(130, 2, 99, 0.5);
  transform: translateX(30px); /* dark: knob rests on the moon side */
  transition: transform 0.45s var(--ease-out);
  z-index: 1;
}
[data-theme="light"] .tt-knob { transform: translateX(0); } /* light: knob over the sun */

/* Center the main menu in the header (desktop) */
@media (min-width: 861px) {
  .nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .nav-inner { position: relative; }
}

/* Smooth theme cross-fade: applied only while switching */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease,
              box-shadow 0.5s ease, fill 0.5s ease, stroke 0.5s ease, opacity 0.5s ease !important;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { transition: color 0.3s; }
.mobile-menu a:hover, .mobile-menu .mm-cta { color: var(--brand-bright); }

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 100px;
  position: relative;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.35s,
              border-color 0.35s, color 0.35s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand) 70%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(130, 2, 99, 0.45);
}
.btn-primary:hover {
  box-shadow: 0 12px 48px rgba(200, 29, 157, 0.55);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--ink);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: rgba(200, 29, 157, 0.6);
  background: rgba(200, 29, 157, 0.06);
}
.btn-nav { padding: 11px 24px; font-size: 14px; background: var(--ink); color: var(--btn-nav-text); }
.btn-nav:hover { background: var(--brand-bright); color: #fff; }
.btn-lg { padding: 19px 40px; font-size: 17px; }

/* ─────────── Hero ─────────── */
.hero {
  position: relative;
  padding: 190px 0 100px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(130, 2, 99, 0.5), transparent 65%);
  top: -260px; right: -180px;
}
.hero-glow-2 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(200, 29, 157, 0.22), transparent 65%);
  bottom: 0; left: -220px;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 9px 20px;
  border-radius: 100px;
  margin-bottom: 36px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 12px var(--brand-bright);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8.2vw, 96px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 30px;
}
.ht-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.ht-word {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s var(--ease-out);
}
body.loaded .ht-word { transform: translateY(0); }
.ht-line:nth-child(1) .ht-word:nth-child(1) { transition-delay: 0.10s; }
.ht-line:nth-child(1) .ht-word:nth-child(2) { transition-delay: 0.18s; }
.ht-line:nth-child(1) .ht-word:nth-child(3) { transition-delay: 0.26s; }
.ht-line:nth-child(2) .ht-word:nth-child(1) { transition-delay: 0.34s; }
.ht-line:nth-child(2) .ht-word:nth-child(2) { transition-delay: 0.42s; }
.ht-line:nth-child(2) .ht-word:nth-child(3) { transition-delay: 0.50s; }
/* ── "glow." — realistic neon sign startup ── */
:root {
  --neon-dim: brightness(0.35) saturate(0.5);
  --neon-lit: brightness(1.14) saturate(1.05) drop-shadow(0 0 6px rgba(255, 120, 225, 0.85)) drop-shadow(0 0 22px rgba(200, 29, 157, 0.6)) drop-shadow(0 0 55px rgba(130, 2, 99, 0.45));
  --neon-lit-peak: brightness(1.17) saturate(1.08) drop-shadow(0 0 7px rgba(255, 120, 225, 0.92)) drop-shadow(0 0 25px rgba(200, 29, 157, 0.66)) drop-shadow(0 0 60px rgba(130, 2, 99, 0.5));
}
.ht-glow {
  position: relative;
  background: linear-gradient(100deg, #ff6fd8 0%, var(--brand-bright) 45%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.3;
  filter: var(--neon-dim);
}
.ht-glow::after {
  content: "";
  position: absolute;
  inset: -45% -30%;
  background: radial-gradient(ellipse at 50% 55%, rgba(200, 29, 157, 0.28), rgba(130, 2, 99, 0.1) 45%, transparent 72%);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}
body.hero-done .ht-line { overflow: visible; }
body.loaded .ht-glow {
  animation: neonStartup 1.15s linear 1.18s forwards,
             neonBreathe 3.4s ease-in-out 2.5s infinite alternate;
}
body.loaded .ht-glow::after {
  animation: neonSpillOn 0.5s ease-out 2.02s forwards,
             neonSpillBreathe 3.4s ease-in-out 2.5s infinite alternate;
}
@keyframes neonStartup {
  0%   { opacity: 0.28; filter: var(--neon-dim); }
  13%  { opacity: 0.28; filter: var(--neon-dim); }
  14%  { opacity: 1;    filter: var(--neon-lit); }
  17%  { opacity: 1;    filter: var(--neon-lit); }
  18%  { opacity: 0.22; filter: var(--neon-dim); }
  23%  { opacity: 0.22; filter: var(--neon-dim); }
  24%  { opacity: 0.9;  filter: var(--neon-lit); }
  26%  { opacity: 0.9;  filter: var(--neon-lit); }
  27%  { opacity: 0.18; filter: var(--neon-dim); }
  35%  { opacity: 0.18; filter: var(--neon-dim); }
  36%  { opacity: 1;    filter: var(--neon-lit); }
  41%  { opacity: 1;    filter: var(--neon-lit); }
  42%  { opacity: 0.3;  filter: var(--neon-dim); }
  47%  { opacity: 0.3;  filter: var(--neon-dim); }
  48%  { opacity: 0.95; filter: var(--neon-lit); }
  53%  { opacity: 0.55; filter: brightness(0.7) saturate(0.8) drop-shadow(0 0 10px rgba(200, 29, 157, 0.35)); }
  56%  { opacity: 1;    filter: var(--neon-lit); }
  62%  { opacity: 1;    filter: var(--neon-lit); }
  63%  { opacity: 0.42; filter: var(--neon-dim); }
  66%  { opacity: 0.42; filter: var(--neon-dim); }
  67%  { opacity: 1;    filter: var(--neon-lit); }
  100% { opacity: 1;    filter: var(--neon-lit); }
}
@keyframes neonBreathe {
  from { filter: var(--neon-lit); }
  to   { filter: var(--neon-lit-peak); }
}
@keyframes neonSpillOn { from { opacity: 0; } to { opacity: 1; } }
@keyframes neonSpillBreathe { from { opacity: 1; } to { opacity: 0.85; } }

.ht-grow { color: var(--ink); }

.hero-sub {
  max-width: 620px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  margin-bottom: 44px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 90px; }

.hero-visual { width: 100%; max-width: 1040px; perspective: 1200px; }
.hero-visual-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--frame-border);
  box-shadow: 0 40px 120px rgba(130, 2, 99, 0.35), 0 20px 60px rgba(0, 0, 0, 0.6);
}
.hero-visual-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 4, 7, 0.75));
  pointer-events: none;
}
.hv-caption {
  position: absolute;
  left: 28px; right: 28px; bottom: 22px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 242, 247, 0.85);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1040px;
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--ink) 30%, var(--brand-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* ─────────── Marquee ─────────── */
.marquee-section {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marquee-ink);
}
.marquee-track i { color: var(--brand-bright); font-style: normal; font-size: 11px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─────────── Section heads ─────────── */
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(100deg, #ff6fd8, var(--brand-bright) 50%, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head { margin-bottom: 80px; }
.section-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 2, 99, 0.28), transparent 65%);
  filter: blur(130px);
  top: 10%; left: -260px;
  pointer-events: none;
}
.sg-right { left: auto; right: -260px; top: 30%; }

/* ─────────── Manifesto (scroll-lit statement) ─────────── */
.manifesto { padding: 150px 0 120px; }
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 980px;
  margin-top: 26px;
}
.manifesto-text .mw {
  color: var(--manifesto-dim);
  transition: color 0.35s ease;
}
.manifesto-text .mw.lit { color: var(--ink); }
.manifesto-text .mw-glow.lit {
  background: linear-gradient(100deg, #ff6fd8, var(--brand-bright) 55%, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─────────── Light mode fine-tuning ─────────── */
[data-theme="light"] .hero-glow, [data-theme="light"] .section-glow, [data-theme="light"] .cta-glow { opacity: 0.45; }
[data-theme="light"] .ht-glow,
[data-theme="light"] .section-title em {
  background: linear-gradient(100deg, #c81d9d, #820263 55%, #56013f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(130, 2, 99, 0.2));
}
[data-theme="light"] .hero-visual-frame,
[data-theme="light"] .browser-frame,
[data-theme="light"] .visual-card {
  box-shadow: 0 24px 70px rgba(60, 20, 55, 0.18), 0 8px 30px rgba(130, 2, 99, 0.1);
}
[data-theme="light"] .footer-bottom { color: rgba(109, 90, 108, 0.85); }
[data-theme="light"] .cta-mail { border-color: rgba(109, 90, 108, 0.4); }
[data-theme="light"] .stat-num { background: linear-gradient(120deg, var(--ink) 30%, var(--brand)); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .btn-primary { box-shadow: 0 8px 28px rgba(130, 2, 99, 0.3); }

/* ─────────── Services ─────────── */
.service-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  padding: 70px 0;
  border-top: 1px solid var(--border);
}
.service-card:last-child { border-bottom: 1px solid var(--border); }
.sc-flip .sc-content { order: 2; }
.sc-flip .sc-visual { order: 1; }
.sc-index {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-soft);
}
.sc-content h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 14px 0 18px;
}
.sc-content p { color: var(--muted); margin-bottom: 26px; max-width: 460px; }
.sc-list { display: grid; gap: 12px; margin-bottom: 32px; }
.sc-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--list-ink);
}
.sc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--brand-bright);
  border-bottom: 2px solid var(--brand-bright);
  transform: rotate(-45deg) scale(0.8);
}
.sc-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sc-link span { transition: transform 0.35s var(--ease-out); color: var(--brand-bright); }
.sc-link:hover span { transform: translateX(6px); }

.sc-visual { perspective: 1000px; }
.visual-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--frame-border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 10px 50px rgba(130, 2, 99, 0.25);
}
.visual-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Browser frame */
.browser-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121016;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 10px 50px rgba(130, 2, 99, 0.22);
}
.bf-bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}
.bf-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.bf-bar i:first-child { background: rgba(200, 29, 157, 0.75); }
.browser-frame img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; object-position: top; }

/* ─────────── Work ─────────── */
.work { background: var(--bg-2); overflow: hidden; }
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.work-card { display: block; }
.wc-media { transition: transform 0.6s var(--ease-out), box-shadow 0.6s; }
.wc-media img { transition: transform 1.1s var(--ease-out); }
.work-card:hover .wc-media img { transform: scale(1.05); }
.work-card:hover .wc-media {
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.65), 0 14px 60px rgba(200, 29, 157, 0.35);
}
.wc-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 6px 0;
}
.wc-meta h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wc-meta p { color: var(--muted); font-size: 14.5px; margin-top: 3px; }
.wc-tag {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-soft);
  border: 1px solid rgba(200, 29, 157, 0.35);
  background: rgba(130, 2, 99, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
}
.work-note {
  margin-top: 70px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
.work-note a {
  color: var(--brand-soft);
  font-weight: 600;
  border-bottom: 1px solid rgba(224, 88, 196, 0.4);
  transition: border-color 0.3s, color 0.3s;
}
.work-note a:hover { color: #ff6fd8; border-color: #ff6fd8; }

/* ─────────── Process ─────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step {
  position: relative;
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: transform 0.5s var(--ease-out), border-color 0.5s, background 0.5s;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(200, 29, 157, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.step:hover { transform: translateY(-8px); border-color: rgba(200, 29, 157, 0.4); }
.step:hover::before { opacity: 1; }
.step-num {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--stepnum-a), var(--stepnum-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin: 16px 0 10px;
}
.step p { color: var(--muted); font-size: 14.5px; }

/* ─────────── FAQ ─────────── */
.faq-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.faq .section-head { margin-bottom: 0; position: sticky; top: 120px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.4s, background 0.4s;
  overflow: hidden;
}
.faq-item[open] { border-color: rgba(200, 29, 157, 0.4); background: rgba(130, 2, 99, 0.05); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  padding: 24px 28px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--brand-soft);
  transition: transform 0.4s var(--ease-out);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-body { padding: 0 28px 26px; }
.faq-body p { color: var(--muted); font-size: 15.5px; max-width: 560px; }

/* ─────────── CTA ─────────── */
.cta {
  position: relative;
  padding: 180px 0;
  overflow: hidden;
  text-align: center;
}
.cta-glow {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(130, 2, 99, 0.4), transparent 60%);
  filter: blur(120px);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.cta-sub {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 520px;
  margin: 0 auto 46px;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.cta-mail {
  color: var(--muted);
  font-size: 15px;
  border-bottom: 1px solid rgba(168, 156, 169, 0.35);
  transition: color 0.3s, border-color 0.3s;
}
.cta-mail:hover { color: var(--brand-soft); border-color: var(--brand-soft); }

/* ─────────── Footer ─────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 80px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--heading-dim);
  margin-bottom: 8px;
}
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color 0.3s, transform 0.3s; }
.footer-col a:hover { color: var(--brand-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: rgba(168, 156, 169, 0.65);
  font-size: 13px;
}

/* ─────────── Reveal animations ─────────── */
[data-reveal], [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(48px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out),
              filter 0.9s var(--ease-out);
}
[data-reveal].in, [data-reveal-group].in > * {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
[data-reveal-group].in > *:nth-child(1) { transition-delay: 0.00s; }
[data-reveal-group].in > *:nth-child(2) { transition-delay: 0.10s; }
[data-reveal-group].in > *:nth-child(3) { transition-delay: 0.20s; }
[data-reveal-group].in > *:nth-child(4) { transition-delay: 0.30s; }
[data-reveal-group].in > *:nth-child(5) { transition-delay: 0.40s; }

/* ─────────── Lightbox ─────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 74vh;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  transform: scale(0.95);
  transition: transform 0.45s var(--ease-out);
}
.lightbox.open img { transform: scale(1); }
.lightbox-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.lightbox-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.lightbox-close:hover { background: rgba(200, 29, 157, 0.15); border-color: var(--brand-bright); transform: rotate(90deg); }
.lightbox-hint { color: var(--muted); font-size: 13px; }

/* ─────────── Phones & tablets: lighter, smoother motion ─────────── */
@media (max-width: 1024px), (hover: none) {
  [data-reveal], [data-reveal-group] > * {
    filter: none;
    transform: translateY(26px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  }
  .hero-glow, .section-glow, .cta-glow { filter: none; opacity: 0.65; }
  .hero-visual-frame, .browser-frame, .visual-card {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], [data-reveal-group] > * { opacity: 1; transform: none; filter: none; }
  .ht-word { transform: none; }
}

/* ─────────── Responsive ─────────── */
@media (max-width: 1024px) {
  .section { padding: 100px 0; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-container { grid-template-columns: 1fr; }
  .faq .section-head { position: static; margin-bottom: 48px; }
}

@media (max-width: 860px) {
  .nav-links, .btn-nav { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 150px 0 80px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .service-card { grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  .sc-flip .sc-content { order: 1; }
  .sc-flip .sc-visual { order: 2; }
  .work-grid { grid-template-columns: 1fr; }
  .footer { padding: 72px 0 44px; }
  .footer .footer-inner { grid-template-columns: 1fr; gap: 46px; padding-bottom: 64px; }
  .footer-col { gap: 16px; }
  .footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 30px;
  }
}

/* ─────────── Phones only ─────────── */
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .section { padding: 84px 0; }
  .hero { padding: 128px 0 64px; }
  .hero-stats { margin-top: 50px; padding-top: 40px; }
  .section-head { margin-bottom: 52px; }
  .work-grid { gap: 44px; }
  .marquee-track { font-size: 13px; gap: 26px; }
  .hv-caption { font-size: 11px; letter-spacing: 0.06em; left: 18px; right: 18px; bottom: 14px; }
  .browser-frame img { aspect-ratio: 1280 / 956; }
  .hero-badge { font-size: 10.5px; padding: 8px 14px; letter-spacing: 0.05em; margin-bottom: 28px; }
  .hero-title { font-size: clamp(38px, 11.5vw, 60px); }
  .hero-sub { font-size: 15.5px; margin-bottom: 34px; }
  .hero-cta { margin-bottom: 64px; gap: 12px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stat-num { font-size: 30px; }
  .stat-label { font-size: 12.5px; }
  .logo-img { height: 30px; }
  .sc-content p { font-size: 15px; }
  .wc-meta { padding-top: 16px; }
  .wc-meta h4 { font-size: 18px; }
  .step { padding: 30px 24px; }
  .step-num { font-size: 38px; }
  .process-grid { grid-template-columns: 1fr; gap: 18px; }
  .faq-item summary { font-size: 15.5px; padding: 20px 22px; }
  .faq-body { padding: 0 22px 22px; }
  .faq-body p { font-size: 14.5px; }
  .cta { padding: 120px 0; }
  .cta .btn-lg { width: 100%; justify-content: center; }
  .work-note { margin-top: 48px; font-size: 15px; }
}
