/* ========== Variables ========== */
:root {
  --bg: #0a0714;
  --bg-2: #120d24;
  --panel: #181233;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f3ff;
  --muted: #a8a3c7;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #22d3ee 55%, #ec4899 100%);
  --radius: 24px;
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; }
.container--narrow { max-width: 780px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px;
  font: 500 .98rem 'Outfit', sans-serif;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn--glow { background: var(--grad); color: #0a0714; font-weight: 600; }
.btn--glow:hover { box-shadow: 0 0 32px rgba(139, 92, 246, .55); }
.btn--line { border-color: rgba(255,255,255,.3); color: var(--text); }
.btn--line:hover { border-color: var(--cyan); color: var(--cyan); }

/* ========== Header ========== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(10,7,20,.75); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.header.scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.logo img { height: 45px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: .95rem; color: var(--muted); transition: color .2s; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--grad); transition: right .25s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { right: 0; }
.header__cta { padding: 10px 22px; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== Hero ========== */
.hero { position: relative; padding: 90px 0 110px; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.orb--1 { width: 460px; height: 460px; background: var(--violet); top: -120px; right: -80px; }
.orb--2 { width: 380px; height: 380px; background: var(--pink); bottom: -160px; left: -100px; opacity: .3; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 22px; }
.eyebrow span { width: 28px; height: 2px; background: var(--cyan); }
.hero h1 { font-size: clamp(2.8rem, 6.2vw, 5rem); margin-bottom: 24px; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Orbit graphic */
.orbit { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; }
.orbit__core { position: absolute; inset: 34%; border-radius: 50%; background: var(--grad); color: #0a0714; display: grid; place-items: center; text-align: center; font: 800 1.2rem/1.1 'Syne', sans-serif; box-shadow: 0 0 60px rgba(139,92,246,.6); }
.orbit__ring { position: absolute; border: 1px dashed rgba(255,255,255,.22); border-radius: 50%; animation: spin linear infinite; }
.orbit__ring--1 { inset: 20%; animation-duration: 18s; }
.orbit__ring--2 { inset: 10%; animation-duration: 26s; animation-direction: reverse; }
.orbit__ring--3 { inset: 2%; animation-duration: 34s; }
.orbit__ring--4 { inset: -6%; animation-duration: 44s; animation-direction: reverse; }
.chip { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 7px 16px; border-radius: 999px; font-size: .82rem; font-weight: 500; background: var(--panel); border: 1px solid var(--line); white-space: nowrap; animation: counter linear infinite; }
.orbit__ring--1 .chip { animation-duration: 18s; } .orbit__ring--2 .chip { animation-duration: 26s; animation-direction: reverse; }
.orbit__ring--3 .chip { animation-duration: 34s; } .orbit__ring--4 .chip { animation-duration: 44s; animation-direction: reverse; }
/* Start each ring (and its label) at a different angle so labels begin spread out */
.orbit__ring--2, .orbit__ring--2 .chip { animation-delay: -6.5s; }
.orbit__ring--3, .orbit__ring--3 .chip { animation-delay: -17s; }
.orbit__ring--4, .orbit__ring--4 .chip { animation-delay: -33s; }
.chip--a { color: var(--violet); border-color: var(--violet); }
.chip--b { color: var(--cyan); border-color: var(--cyan); }
.chip--c { color: var(--pink); border-color: var(--pink); }
.chip--d { color: #fde68a; border-color: #fde68a; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counter { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* ========== Sections ========== */
.section { padding: 100px 0; position: relative; }
.section--panel { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--glow { background: radial-gradient(700px 360px at 80% 0%, rgba(139,92,246,.25), transparent 70%), radial-gradient(600px 360px at 0% 100%, rgba(34,211,238,.14), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head h2, .affiliate h2, .contact h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.section__lead { margin-top: 16px; color: var(--muted); }
.tag { display: inline-block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(34,211,238,.4); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }

/* ========== Services grid ========== */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { grid-column: span 2; background: linear-gradient(160deg, var(--panel), #130e29); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.tile:nth-child(n) { grid-column: span 2; }
.tile::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light; pointer-events: none; }
.tile:hover { transform: translateY(-6px); border-color: rgba(139,92,246,.7); }
.tile:hover::before { opacity: .25; }
.tile--wide { grid-column: span 3 !important; }
.tile:nth-child(2) { grid-column: span 1; }
.tile__num { font: 700 .9rem 'Syne', sans-serif; color: var(--violet); }
.tile h3 { font-size: 1.5rem; margin: 12px 0; }
.tile p { color: var(--muted); font-size: .98rem; }
.tile__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tile__tags li { font-size: .78rem; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.tile--accent { background: var(--grad); color: #0a0714; border: 0; }
.tile--accent .tile__num { color: #0a0714; opacity: .7; }
.tile--accent p { color: rgba(10,7,20,.8); }
.tile--accent .tile__tags li { background: rgba(10,7,20,.12); border-color: rgba(10,7,20,.2); }

/* ========== Approach ========== */
.loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.loop__step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.loop__step::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.loop__step span { font: 700 .85rem 'Syne', sans-serif; color: var(--violet); }
.loop__step h3 { font-size: 1.4rem; margin: 6px 0 8px; }
.loop__step p { color: var(--muted); font-size: .95rem; }

/* ========== Affiliate ========== */
.affiliate { background: var(--panel); border: 1px solid var(--line); border-radius: 32px; padding: 64px; position: relative; overflow: hidden; }
.affiliate::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -140px; background: radial-gradient(circle, rgba(236,72,153,.35), transparent 70%); pointer-events: none; }
.affiliate__copy { position: relative; }
.affiliate__copy > p { color: var(--muted); max-width: 640px; margin: 18px 0 40px; }
.affiliate__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.affiliate__cols > div { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: rgba(10,7,20,.45); }
.affiliate__cols h3 { font-size: 1.35rem; margin-bottom: 14px; }
.affiliate__cols li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-size: .97rem; }
.affiliate__cols li::before { content: "✦"; position: absolute; left: 0; color: var(--cyan); }
.affiliate__cols .btn { margin-top: 22px; }
.affiliate__note { margin-top: 24px !important; font-size: .85rem; color: var(--muted); font-style: italic; }

/* ========== Industries ========== */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pills span { padding: 12px 24px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: all .25s; }
.pills span:hover { border-color: var(--pink); color: var(--pink); transform: translateY(-3px); }

/* ========== Contact ========== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__copy > p { color: var(--muted); margin: 18px 0 28px; }
.contact__list li { padding: 12px 0; border-top: 1px solid var(--line); }
.contact__list strong { display: inline-block; min-width: 70px; color: var(--cyan); font-weight: 500; }
.contact__list a { text-decoration: underline; text-underline-offset: 3px; }
.form { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: grid; gap: 16px; backdrop-filter: blur(10px); }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.form input, .form select, .form textarea { font: 300 1rem 'Outfit', sans-serif; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10,7,20,.7); color: var(--text); width: 100%; }
.form select option { background: var(--bg); }
.form textarea { resize: vertical; }
.form__note { font-size: .85rem; color: var(--muted); }
.form__note--error { color: #fb7185; font-weight: 500; }

/* ========== Footer ========== */
.footer { background: #06040e; border-top: 1px solid var(--line); padding-top: 56px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; }
.footer__brand .logo { display: inline-block; margin-bottom: 12px; }
.footer__brand p { max-width: 320px; font-size: .95rem; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a:hover { color: var(--cyan); }
.footer__bottom { border-top: 1px solid var(--line); padding: 20px 0; font-size: .85rem; }

/* ========== Back to top ========== */
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #0a0714; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s, transform .25s; z-index: 40; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }

/* ========== Reveal ========== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ========== Responsive ========== */
@media (max-width: 980px) {
  .hero__inner, .contact { grid-template-columns: 1fr; }
  .orbit { max-width: 380px; margin-top: 30px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile:nth-child(n), .tile--wide, .tile:nth-child(2) { grid-column: span 1 !important; }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .affiliate { padding: 40px 28px; }
  .affiliate__cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .nav { position: absolute; top: 74px; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .orbit__ring--1 { inset: 29%; }
  .orbit__ring--2 { inset: 22%; }
  .orbit__ring--3 { inset: 16%; }
  .orbit__ring--4 { inset: 11%; }
  .orbit__core { inset: 37%; font-size: 1rem; }
  .grid, .loop { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 70px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit__ring, .chip { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========== Form spam trap ========== */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
