/* ============ TOKENS ============ */
:root {
  --bg: #060609;
  --bg-soft: #0c0c12;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-brd: rgba(255, 255, 255, 0.09);
  --text: #f4f4f7;
  --muted: #9a9aa8;
  --muted-2: #6e6e7e;
  --accent: #8b5cff;
  --accent-2: #c08bff;
  --accent-3: #5b8bff;
  --grad: linear-gradient(100deg, #8b5cff 0%, #c08bff 45%, #5b8bff 100%);
  --radius: 18px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ============ AMBIENT BACKGROUND ============ */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-1 { width: 520px; height: 520px; background: #5b2bd6; top: -160px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: #2b4bd6; top: 30%; right: -160px; opacity: 0.35; }
.orb-3 { width: 600px; height: 600px; background: #6b2bd6; bottom: -260px; left: 30%; opacity: 0.28; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 6, 9, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 30px; height: 30px; object-fit: contain; }
.brand-name { font-size: 16px; letter-spacing: -0.02em; }
.brand-name span { color: var(--muted); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 4px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14.5px; padding: 11px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(139, 92, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 12px 38px rgba(139, 92, 255, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--panel-brd); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn.lg { padding: 15px 30px; font-size: 16px; }
.btn.full { width: 100%; }

/* ============ HERO ============ */
.hero { position: relative; z-index: 1; padding: 120px 0 90px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--muted); font-weight: 500;
  border: 1px solid var(--panel-brd); background: var(--panel);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.hero-title {
  font-size: clamp(44px, 8vw, 92px); line-height: 1.02; letter-spacing: -0.04em;
  font-weight: 800; font-family: "Space Grotesk", "Inter", sans-serif;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); max-width: 560px; margin: 26px auto 0; }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }

/* ============ MARQUEE ============ */
.marquee-wrap { position: relative; z-index: 1; padding: 30px 0 70px; }
.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: 64px; width: max-content; animation: scroll 38s linear infinite; }
.marquee-track img { height: 30px; width: auto; opacity: 0.55; filter: grayscale(1) brightness(1.6); transition: opacity 0.2s; }
.marquee-track img:hover { opacity: 1; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ WHO ARE WE ============ */
.who { position: relative; z-index: 1; padding: 70px 0 90px; }
.big-statement {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(28px, 5vw, 56px); line-height: 1.18; letter-spacing: -0.03em;
  font-weight: 600; max-width: 980px;
}
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator-word { grid-area: 1 / 1; animation: wordIn 0.5s var(--ease); }
@keyframes wordIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wave { display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%,60%,100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 30% { transform: rotate(14deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
.spark { display: inline-block; animation: spark 2.2s ease-in-out infinite; }
@keyframes spark { 0%,100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.25) rotate(18deg); opacity: 0.8; } }

/* ============ SECTIONS ============ */
.section { position: relative; z-index: 1; padding: 80px 0; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.kicker { display: block; font-size: 14px; color: var(--accent-2); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 12px; font-family: "Space Grotesk", monospace; }
.section-title { font-size: clamp(30px, 4.5vw, 50px); letter-spacing: -0.03em; font-weight: 700; line-height: 1.05; font-family: "Space Grotesk", "Inter", sans-serif; }
.section-title.big { font-size: clamp(34px, 5vw, 58px); }

/* ============ SERVICE CARDS ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--panel-brd);
  border-radius: var(--radius); padding: 32px 28px 30px; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(420px 200px at 50% -20%, rgba(139, 92, 255, 0.18), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(139, 92, 255, 0.45); }
.card:hover::before { opacity: 1; }
.card-num { font-family: "Space Grotesk", monospace; font-size: 14px; color: var(--accent-2); margin-bottom: 18px; }
.card-title { font-size: 23px; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 22px; font-weight: 700; font-family: "Space Grotesk", "Inter", sans-serif; }
.card-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.card-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; }
.card-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ============ PROCESS ============ */
.process { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 130px 1fr; gap: 30px; align-items: start;
  padding: 34px 0; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.step:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.step-num { font-family: "Space Grotesk", sans-serif; font-size: clamp(30px, 4vw, 46px); font-weight: 700; color: transparent; -webkit-text-stroke: 1.4px rgba(192, 139, 255, 0.55); letter-spacing: -0.02em; }
.step-body h3 { font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -0.02em; margin-bottom: 10px; font-weight: 700; font-family: "Space Grotesk", "Inter", sans-serif; }
.step-body p { color: var(--muted); font-size: 16px; max-width: 720px; }

/* ============ CLIENTS ============ */
.clients { display: flex; flex-wrap: wrap; gap: 30px 50px; align-items: center; justify-content: center; }
.client img { height: 42px; width: auto; opacity: 0.6; filter: grayscale(1) brightness(1.5); transition: opacity 0.25s; }
.client img:hover { opacity: 1; }

/* ============ CTA BAND ============ */
.cta-band {
  margin: 20px auto; max-width: var(--maxw); width: calc(100% - 48px);
  border: 1px solid var(--panel-brd); border-radius: 28px;
  background: radial-gradient(900px 400px at 50% 0%, rgba(139, 92, 255, 0.18), transparent 60%), var(--bg-soft);
  padding: 70px 24px;
}
.cta-band .kicker { text-align: center; }
.cta-sub { color: var(--muted); font-size: 18px; max-width: 520px; margin: 18px auto 32px; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-lead { color: var(--muted); font-size: 17px; margin-top: 20px; max-width: 380px; }
.contact-form { background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--panel-brd); border-radius: 12px;
  padding: 13px 15px; color: var(--text); font-family: inherit; font-size: 15px; resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(139, 92, 255, 0.06); }
.form-note { font-size: 14px; color: var(--accent-2); min-height: 18px; text-align: center; }

/* ============ FOOTER ============ */
.footer { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 36px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.copy { color: var(--muted-2); font-size: 14px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .nav-links {
    position: fixed; inset: 64px 12px auto 12px; flex-direction: column; gap: 4px;
    background: var(--bg-soft); border: 1px solid var(--panel-brd); border-radius: 16px;
    padding: 14px; margin: 0; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 0.25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 10px; border-radius: 10px; }
  .nav-links a:hover { background: rgba(255, 255, 255, 0.05); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .step { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
