/* ============================================================
   Nitaksh — style.css
   Dark, modern, flashy. Violet → cyan accent system.
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-2: #0a0c14;
  --surface: #0f1220;
  --surface-2: #141830;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eceef6;
  --muted: #99a0b8;
  --violet: #7c5cff;
  --cyan: #00e0ff;
  --pink: #ff5ec7;
  --grad: linear-gradient(100deg, var(--violet), var(--cyan));
  --radius: 20px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: rgba(124, 92, 255, 0.45); color: #fff; }

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 100;
  padding: 12px 22px; border-radius: 12px;
  background: var(--grad); color: #05060a; font-weight: 600;
  transition: top 0.25s;
}
.skip-link:focus { top: 12px; }

/* Gradient text — with a slow, continuous shimmer */
.grad {
  font-style: normal;
  background: linear-gradient(100deg, var(--violet), var(--cyan), var(--pink), var(--violet));
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradShift 8s linear infinite;
}
@keyframes gradShift { to { background-position: 250% center; } }

/* Film-grain noise overlay */
.noise {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient background — bold drifting glow orbs + a moving circuit grid,
   fixed site-wide so the page always feels alive, not just in the hero */
.ambient-bg {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.ambient-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(0, 224, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.09) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 40%, transparent 85%);
  animation: gridPan 40s linear infinite;
}
@keyframes gridPan { from { transform: translate(0, 0); } to { transform: translate(64px, 64px); } }

.ambient-orb {
  position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform;
}
.ambient-orb--1 {
  width: 58vw; height: 58vw; min-width: 440px; min-height: 440px; max-width: 720px; max-height: 720px;
  top: -16%; left: -16%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.48), transparent 68%);
  animation: ambientDrift1 15s ease-in-out infinite alternate;
}
.ambient-orb--2 {
  width: 50vw; height: 50vw; min-width: 380px; min-height: 380px; max-width: 640px; max-height: 640px;
  top: 34%; right: -18%;
  background: radial-gradient(circle, rgba(0, 224, 255, 0.4), transparent 68%);
  animation: ambientDrift2 18s ease-in-out infinite alternate-reverse;
}
.ambient-orb--3 {
  width: 46vw; height: 46vw; min-width: 340px; min-height: 340px; max-width: 580px; max-height: 580px;
  bottom: -18%; left: 26%;
  background: radial-gradient(circle, rgba(255, 94, 199, 0.32), transparent 68%);
  animation: ambientDrift3 21s ease-in-out infinite alternate;
}
.ambient-orb--4 {
  width: 34vw; height: 34vw; min-width: 260px; min-height: 260px; max-width: 440px; max-height: 440px;
  top: 8%; right: 12%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.3), transparent 68%);
  animation: ambientDrift2 13s ease-in-out infinite alternate;
}
@keyframes ambientDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(9vw, 10vh) scale(1.22); }
  100% { transform: translate(-6vw, -7vh) scale(0.92); }
}
@keyframes ambientDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-8vw, 9vh) scale(0.9); }
  100% { transform: translate(7vw, -6vh) scale(1.18); }
}
@keyframes ambientDrift3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(7vw, -8vh) scale(1.15); }
  100% { transform: translate(-8vw, 6vh) scale(0.93); }
}

/* Cursor glow that follows the mouse */
.cursor-glow {
  position: fixed; z-index: 1; pointer-events: none;
  width: 560px; height: 560px; border-radius: 50%;
  left: 0; top: 0; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124, 92, 255, 0.10) 0%, rgba(0, 224, 255, 0.05) 40%, transparent 70%);
  transition: opacity 0.4s;
  opacity: 0;
}
body.has-mouse .cursor-glow { opacity: 1; }

/* ============ PRELOADER — crate opening ============ */
.preloader {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: grid; justify-items: center; gap: 34px; }

.crate { position: relative; width: 208px; height: 144px; perspective: 1000px; }

.crate-glow {
  position: absolute; inset: -60px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle, rgba(0, 224, 255, 0.5), rgba(124, 92, 255, 0.3) 45%, transparent 72%);
  filter: blur(8px); opacity: 0.22; transform: scale(0.6);
  transition: opacity 0.7s ease, transform 0.9s var(--ease);
}
#crate.opening .crate-glow { opacity: 1; transform: scale(1.7); }

.crate-mark {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 120px; height: auto;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0.85;
  filter: drop-shadow(0 0 10px rgba(0, 224, 255, 0.5));
  transition: transform 0.9s var(--ease), opacity 0.6s ease, filter 0.6s ease;
}
#crate.opening .crate-mark {
  transform: translate(-50%, -50%) scale(1.06);
  opacity: 1;
  filter: drop-shadow(0 0 26px rgba(0, 224, 255, 0.85));
}

.crate-door {
  position: absolute; top: 0; width: 50%; height: 100%; z-index: 3;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #14161f, #05060a 78%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.6);
  transition: transform 0.75s cubic-bezier(0.6, 0.04, 0.15, 1), opacity 0.6s ease 0.1s;
}
.crate-door--left { left: 0; border-radius: 16px 0 0 16px; border-right-color: rgba(0, 224, 255, 0.35); transform-origin: left center; }
.crate-door--right { right: 0; border-radius: 0 16px 16px 0; border-left-color: rgba(124, 92, 255, 0.35); transform-origin: right center; }
#crate.opening .crate-door--left { transform: rotateY(-114deg) translateZ(30px); opacity: 0; }
#crate.opening .crate-door--right { transform: rotateY(114deg) translateZ(30px); opacity: 0; }

.crate-corner { position: absolute; width: 14px; height: 14px; border: 2px solid rgba(0, 224, 255, 0.65); }
.crate-corner--tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.crate-corner--bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.crate-corner--tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.crate-corner--br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.crate-vents {
  position: absolute; top: 50%; left: 14px; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 6px);
}
.crate-door--left .crate-vents { left: auto; right: 14px; }

.crate-scan {
  position: absolute; left: 4px; right: 4px; top: 0; height: 2px; z-index: 4;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.9), transparent);
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.8);
  animation: crateScan 1.8s ease-in-out infinite;
  transition: opacity 0.3s ease;
}
#crate.opening .crate-scan { opacity: 0; }
@keyframes crateScan {
  0%   { top: 6px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: calc(100% - 6px); opacity: 0; }
}

.preloader-status { display: grid; justify-items: center; gap: 10px; }
.preloader-label {
  font-family: "Space Grotesk", sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.preloader-cursor { color: var(--cyan); animation: preloaderBlink 1s step-end infinite; }
@keyframes preloaderBlink { 50% { opacity: 0; } }
.preloader-bar {
  width: 180px; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.08); overflow: hidden;
}
.preloader-bar span {
  display: block; width: 0%; height: 100%;
  background: var(--grad); border-radius: 3px;
  transition: width 0.3s ease-out;
}
.preloader-pct {
  font-family: "Space Grotesk", sans-serif; font-size: 12px; color: var(--muted);
  letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  height: 3px; width: 100%;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.6);
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 10, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1160px, 92vw); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  height: 34px; width: auto; display: block;
  filter: drop-shadow(0 0 10px rgba(124, 92, 255, 0.4));
}
.logo-text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: 20px; letter-spacing: 0.01em;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color 0.25s;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.6);
  background: rgba(124, 92, 255, 0.12);
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s ease-out;
  transform: translate(var(--tx, 0), var(--ty, 0));
}
.nav-cta:hover {
  background: rgba(124, 92, 255, 0.28);
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.35);
}
.nav-toggle { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 4vw 80px;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
  will-change: transform;
}
.hero-glow--1 {
  width: 620px; height: 620px; left: -180px; top: -120px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.22), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-glow--2 {
  width: 560px; height: 560px; right: -160px; bottom: -140px;
  background: radial-gradient(circle, rgba(0, 224, 255, 0.16), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}

.hero-content { position: relative; z-index: 2; max-width: 900px; }

/* Floating badges — fill the empty margins around the headline with
   constant, gentle motion so the hero never reads as static or sparse */
.hero-float { position: absolute; z-index: 2; }
.hero-float-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; white-space: nowrap;
  background: rgba(15, 18, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  font-size: 13.5px; font-weight: 500; color: var(--text);
  animation: heroFloatBob 5.5s ease-in-out infinite;
}
.hero-float-icon { font-size: 16px; line-height: 1; filter: drop-shadow(0 0 6px rgba(0, 224, 255, 0.5)); }
@keyframes heroFloatBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-1.4deg); }
}

.hero-float--1 { top: 20%; left: 3%; }
.hero-float--2 { top: 26%; right: 4%; }
.hero-float--3 { bottom: 22%; left: 6%; }
.hero-float--4 { bottom: 30%; right: 2%; }
.hero-float--1 .hero-float-inner { animation-duration: 5.2s; }
.hero-float--2 .hero-float-inner { animation-duration: 6.4s; animation-delay: 0.3s; }
.hero-float--3 .hero-float-inner { animation-duration: 5.8s; animation-delay: 0.6s; }
.hero-float--4 .hero-float-inner { animation-duration: 6s; animation-delay: 0.9s; }

@media (max-width: 1140px) {
  .hero-float { display: none; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 30px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 224, 255, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 224, 255, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 224, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 224, 255, 0); }
}

.hero-title {
  font-size: clamp(44px, 7.4vw, 88px);
  margin-bottom: 28px;
}
.hero-title .line { display: block; }

/* Split-text animation: words rise out of an overflow mask */
.js .hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.js .hero-title .wi {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: transform;
}
.js .hero-title.split-in .wi { transform: translateY(0) rotate(0deg); }

.hero-sub {
  max-width: 620px; margin: 0 auto 40px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 15.5px;
  padding: 15px 30px; border-radius: 999px;
  transition: transform 0.2s ease-out, box-shadow 0.3s, background 0.3s;
  transform: translate(var(--tx, 0), var(--ty, 0));
  will-change: transform;
}
.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn-primary {
  background: var(--grad); color: #05060a;
  box-shadow: 0 6px 30px rgba(124, 92, 255, 0.4);
}
/* shine sweep across primary buttons */
.btn-primary::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%;
  width: 50%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s var(--ease) infinite;
}
@keyframes shine {
  0%, 60% { left: -80%; }
  100% { left: 160%; }
}
.btn-primary:hover {
  box-shadow: 0 12px 44px rgba(124, 92, 255, 0.55);
}
.btn-ghost {
  border: 1px solid var(--line); color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-lg { padding: 19px 38px; font-size: 17px; }

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 44px; border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-hint-line {
  width: 3px; height: 9px; border-radius: 3px; background: var(--cyan);
  animation: scrollhint 1.8s var(--ease) infinite;
}
@keyframes scrollhint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0; overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}
.marquee-track {
  display: flex; align-items: center; gap: 42px; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 17px;
  color: var(--muted); white-space: nowrap;
}
.marquee-track i { color: var(--violet); font-style: normal; font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: 130px 0; position: relative; }
.section--tight { padding: 90px 0; }

.section-head { margin-bottom: 64px; }
.section-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
  min-height: 1.4em;
}
.section-head h2, .story-text h2, .contact-title {
  font-size: clamp(32px, 4.6vw, 56px);
}

/* ============ SERVICE CARDS ============ */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.card {
  position: relative;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, 0.14), transparent 45%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card:hover { transform: translateY(-8px); border-color: rgba(124, 92, 255, 0.45); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5); }
.card:hover::before { opacity: 1; }

.card--featured::after {
  content: "Most requested";
  position: absolute; top: 20px; right: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan);
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(0, 224, 255, 0.35);
  background: rgba(0, 224, 255, 0.08);
}

/* Rotating gradient border on the featured card */
.border-glow {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 10%, var(--violet) 35%, var(--cyan) 50%, var(--pink) 65%, transparent 90%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderSpin 5s linear infinite;
}
@keyframes borderSpin { to { --angle: 360deg; } }

.card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 26px;
  color: var(--cyan);
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.3);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.card:hover .card-icon {
  transform: translateY(-4px) rotate(-4deg) scale(1.06);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 22px; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.card-list li {
  position: relative; padding-left: 22px; margin-bottom: 9px;
  font-size: 14px; color: var(--muted);
}
.card-list li::before {
  content: "✦"; position: absolute; left: 0; top: 0;
  color: var(--violet); font-size: 11px;
}

/* ============ STATS ============ */
.stats {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.05), rgba(0, 224, 255, 0.03));
  padding: 70px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num, .stat-plus {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(40px, 5vw, 60px); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* ============ WORK ============ */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.work-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
}
.work-card:hover { border-color: rgba(0, 224, 255, 0.4); box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55); }

.work-visual {
  height: 260px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 34px 34px 0;
}

.work-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-img { transform: scale(1.05); }
/* clip-path wipe reveal for work visuals */
.js .work-visual { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease) 0.15s; }
.js .reveal.in .work-visual { clip-path: inset(0 0 0% 0); }

.wv-1 { background: radial-gradient(120% 120% at 20% 0%, rgba(124, 92, 255, 0.35), rgba(5, 6, 10, 0.2)), var(--surface-2); }
.wv-2 { background: radial-gradient(120% 120% at 80% 0%, rgba(0, 224, 255, 0.28), rgba(5, 6, 10, 0.2)), var(--surface-2); }
.wv-3 { background: radial-gradient(120% 120% at 50% 0%, rgba(255, 94, 199, 0.25), rgba(5, 6, 10, 0.2)), var(--surface-2); }

.wv-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.wv-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.wv-dots i:first-child { background: rgba(255, 94, 199, 0.6); }
.wv-dots i:nth-child(2) { background: rgba(124, 92, 255, 0.6); }
.wv-dots i:nth-child(3) { background: rgba(0, 224, 255, 0.6); }

.wv-chip {
  position: absolute; right: -12px; top: 52px;
  font-family: "Space Grotesk", sans-serif; font-size: 12.5px; font-weight: 600;
  color: #05060a; background: var(--grad);
  padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 8px 26px rgba(124, 92, 255, 0.5);
  animation: chipFloat 3.6s ease-in-out infinite alternate;
}
@keyframes chipFloat { to { transform: translateY(-7px); } }
.wv-chip--alt { top: auto; bottom: 26px; }

.work-info { padding: 28px 32px 34px; }
.work-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.work-tags span {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cyan);
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(0, 224, 255, 0.3);
  background: rgba(0, 224, 255, 0.06);
}
.work-info h3 { font-size: 23px; margin-bottom: 12px; }
.work-info p { color: var(--muted); font-size: 15px; }
.work-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; transition: opacity 0.2s; }
.work-link:hover { opacity: 0.75; }

.work-card--cta {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(124, 92, 255, 0.18), transparent 70%),
    linear-gradient(160deg, var(--surface), var(--bg-2));
  border-style: dashed; border-color: rgba(124, 92, 255, 0.4);
  min-height: 380px; text-align: center;
}
.work-cta-inner { padding: 40px; }
.work-cta-inner h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.work-cta-inner p { color: var(--muted); margin-bottom: 28px; }

/* ============ PROCESS ============ */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.process li {
  position: relative; padding: 30px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.process li:hover { transform: translateY(-6px); border-color: rgba(0, 224, 255, 0.35); }
.process-num {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 15px;
  color: var(--cyan); letter-spacing: 0.1em;
  display: inline-block; margin-bottom: 16px;
}
.process h3 { font-size: 19px; margin-bottom: 10px; }
.process p { font-size: 14px; color: var(--muted); }

/* ============ STORY ============ */
.story-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 70px; align-items: center;
}
.story-text h2 { margin: 0 0 26px; }
.story-text p { color: var(--muted); margin-bottom: 18px; font-size: 16px; }

.code-window {
  background: #0a0d18;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(124, 92, 255, 0.12);
  transform: rotate(1.5deg);
  transition: transform 0.5s var(--ease);
}
.code-window:hover { transform: rotate(0deg) scale(1.02); }
.code-window pre {
  font-family: "SF Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13.5px; line-height: 1.85; color: #c8cede;
  overflow-x: auto;
}
/* staggered line-by-line reveal, applied by JS */
.code-window .code-line {
  display: block;
  opacity: 0; transform: translateX(-14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.code-window.typed .code-line { opacity: 1; transform: translateX(0); }
.c-key { color: var(--violet); }
.c-var { color: var(--cyan); }
.c-prop { color: #e0b3ff; }
.c-str { color: #7ee8a2; }
.c-fn  { color: #ffd479; }
.c-cmt { color: #5a6178; }

/* ============ FAQ ============ */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.faq-item[open] { border-color: rgba(124, 92, 255, 0.45); background: rgba(124, 92, 255, 0.05); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 17.5px; font-weight: 600; }
.faq-icon {
  position: relative; flex: none; width: 22px; height: 22px;
  border-radius: 50%;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 2px; border-radius: 2px;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 26px 24px; }
.faq-body p { color: var(--muted); font-size: 15.5px; }

/* ============ CONTACT ============ */
.contact { overflow: hidden; text-align: center; }
.contact-glow {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(124, 92, 255, 0.16), rgba(0, 224, 255, 0.06) 45%, transparent 70%);
  filter: blur(50px);
}
.contact-inner { position: relative; }
.contact-title { margin-bottom: 22px; }
.contact-sub { max-width: 560px; margin: 0 auto 44px; color: var(--muted); font-size: 17px; }
.contact-actions { margin-bottom: 70px; }

.contact-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 760px; margin: 0 auto;
  border-top: 1px solid var(--line); padding-top: 44px;
}
.contact-meta h4 {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 8px;
}
.contact-meta p { color: var(--muted); font-size: 15px; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 54px 0; }
.footer-inner { text-align: center; display: grid; gap: 16px; justify-items: center; }
.footer-tag { color: var(--muted); font-size: 14px; }
.footer-copy { color: #5a6178; font-size: 13px; }

/* ============ 404 ============ */
.error-page {
  min-height: 100svh; display: grid; place-items: center;
  text-align: center; padding: 40px 5vw; position: relative; overflow: hidden;
}
.error-code {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(110px, 22vw, 220px); line-height: 1;
}
.error-page h1 { font-size: clamp(22px, 3vw, 32px); margin: 10px 0 14px; }
.error-page p { color: var(--muted); margin-bottom: 34px; }

/* ============ REVEAL ANIMATIONS ============ */
/* gated behind .js so content stays visible without JavaScript; */
/* the entrance motion itself comes from animate.css classes added in main.js */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; }
.js .reveal.animate__animated { animation-duration: 0.9s; }
/* hold any above-the-fold reveals frozen at their first frame until the
   crate opens, so the page visibly bursts open in sync with it */
body.loading .reveal.animate__animated { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-title .wi { transform: none; }
  .js .work-visual { clip-path: none; }
  .code-window .code-line { opacity: 1; transform: none; }
  .preloader { display: none; }
  body.loading { overflow: auto; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .work-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; gap: 50px; }
  .section { padding: 96px 0; }
}

@media (max-width: 680px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span {
    width: 24px; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 6, 10, 0.96);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px 4vw 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 6px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 12px; border-radius: 14px; }

  .process { grid-template-columns: 1fr; }
  .contact-meta { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cursor-glow { display: none; }
}
