/* ---------- Tokens ---------- */
:root {
  --orange: #ff7a45;
  --blue: #1f6feb;
  --teal: #13b5a6;
  --slate: #3a4150;

  --bg: #070a12;
  --bg-2: #0c1120;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef1f7;
  --muted: #9aa3b5;

  --grad: linear-gradient(90deg, var(--orange) 0%, var(--blue) 50%, var(--teal) 100%);
  --radius: 20px;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1180px;
  --gutter: 20px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  width: 100%;
  position: relative;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
@supports (overflow: clip) { html, body { overflow-x: clip; } }
main, section { max-width: 100%; }
.grid > *, .hero > *, .about-grid > *, .cta-panel > *, .footer-inner > * { min-width: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; animation: drift 18s ease-in-out infinite alternate; }
.glow-orange { width: 520px; height: 520px; background: var(--orange); top: -160px; left: -140px; }
.glow-blue { width: 620px; height: 620px; background: var(--blue); top: 10%; right: -220px; animation-delay: -6s; }
.glow-teal { width: 480px; height: 480px; background: var(--teal); bottom: -200px; left: 30%; animation-delay: -12s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 10, 18, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(7, 10, 18, 0.85); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand-logo { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.nav-links a:not(.btn) { position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-small { padding: 10px 18px; font-size: 0.875rem; }
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--blue) 55%, var(--teal));
  background-size: 200% 100%;
  box-shadow: 0 10px 30px -10px rgba(31, 111, 235, 0.6);
}
.btn-primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(255, 122, 69, 0.55); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: var(--surface-2); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); background: var(--surface); margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(19,181,166,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(19,181,166,.6); } 70% { box-shadow: 0 0 0 10px rgba(19,181,166,0); } 100% { box-shadow: 0 0 0 0 rgba(19,181,166,0); } }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px;
  min-height: min(calc(100vh - 72px), 820px); padding: 60px 0 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 28px; color: var(--muted); font-size: 0.9rem; }
.hero-trust strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); }

.hero-visual { position: relative; height: 480px; width: 100%; max-width: 100%; }
.orbit { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1000px; }
.cube {
  position: absolute; width: 150px; height: 150px; border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.35);
  animation: float 6s ease-in-out infinite;
}
.cube::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 60%); }
.cube-orange { background: var(--orange); transform: translate(-110px, -120px) rotate(-8deg); animation-delay: 0s; }
.cube-blue { background: var(--blue); transform: translate(0, 10px) rotate(6deg); animation-delay: -2s; width: 180px; height: 180px; }
.cube-teal { background: var(--teal); transform: translate(120px, 130px) rotate(-5deg); animation-delay: -4s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -18px; }
}
.ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.15); animation: spin 40s linear infinite; }
.ring-1 { width: min(380px, 80%); aspect-ratio: 1; }
.ring-2 { width: min(520px, 100%); aspect-ratio: 1; animation-direction: reverse; animation-duration: 60s; border-style: solid; border-color: rgba(255,255,255,.06); }
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; font-size: 0.8rem; font-weight: 500;
  background: rgba(12, 17, 32, 0.8); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: float 7s ease-in-out infinite;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.chip-1 { top: 8%; right: 0; } .chip-1 i { background: var(--teal); }
.chip-2 { bottom: 14%; left: 0; animation-delay: -3s; } .chip-2 i { background: var(--orange); }
.chip-3 { top: 48%; right: 0; animation-delay: -5s; } .chip-3 i { background: var(--blue); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; max-width: 100%; border-block: 1px solid var(--border); padding: 18px 0; background: rgba(255,255,255,0.02); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-weight: 600; color: var(--muted); white-space: nowrap; font-size: 0.95rem; letter-spacing: 0.04em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.services-grid { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s, border-color .3s, background .3s;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.2); background: var(--surface-2); }
.service::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--accent, var(--grad)); opacity: .9;
}
.service[data-accent="blue"] { --accent: var(--blue); }
.service[data-accent="orange"] { --accent: var(--orange); }
.service[data-accent="teal"] { --accent: var(--teal); }
.service[data-accent="multi"] { --accent: var(--grad); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 20px; color: #fff; background: var(--accent); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6);
}
.service-icon svg { width: 26px; height: 26px; }
.service p { color: var(--muted); font-size: 0.95rem; }
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.72rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 5%; right: 5%; height: 1px; background: var(--grad); opacity: .35; }
.step { position: relative; padding: 0 8px; }
.step-num {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 20px;
  background: var(--bg-2); border: 1px solid var(--border); position: relative;
}
.step:nth-child(1) .step-num { color: var(--orange); box-shadow: 0 0 30px -8px var(--orange); }
.step:nth-child(2) .step-num { color: var(--blue); box-shadow: 0 0 30px -8px var(--blue); }
.step:nth-child(3) .step-num { color: var(--teal); box-shadow: 0 0 30px -8px var(--teal); }
.step:nth-child(4) .step-num { background: var(--grad); color: #fff; border: 0; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Work ---------- */
.work-grid { grid-template-columns: repeat(3, 1fr); }
.work-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: transform .3s, border-color .3s; display: block; }
.work-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.22); }
.work-cover {
  aspect-ratio: 16 / 10; position: relative; display: flex; align-items: flex-end; padding: 18px;
  background: radial-gradient(120% 120% at 0% 0%, var(--c1), transparent 60%), radial-gradient(120% 120% at 100% 100%, var(--c2), transparent 60%), var(--bg-2);
}
.work-cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px; mix-blend-mode: overlay;
}
.work-tag { position: relative; font-size: .75rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(7,10,18,.65); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(6px); }
.work-body { padding: 22px; }
.work-body p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--text); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; background: var(--grad);
}
.stat-stack { display: grid; gap: 16px; }
.stat {
  display: flex; align-items: baseline; gap: 18px; padding: 24px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
}
.stat strong { font-family: var(--font-head); font-size: 2.6rem; color: var(--accent); line-height: 1; }
.stat span { color: var(--muted); }

/* ---------- Testimonials ---------- */
.testi-grid { grid-template-columns: repeat(3, 1fr); }
.testi { margin: 0; display: flex; flex-direction: column; }
.testi p { color: var(--text); font-size: 1rem; flex: 1; }
.testi footer { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.testi footer b { color: var(--text); }
.testi::before { content: "“"; font-family: var(--font-head); font-size: 4rem; line-height: 0.6; display: block; margin-bottom: 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- CTA / Contact ---------- */
.cta-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: clamp(32px, 5vw, 64px);
  border-radius: 28px; border: 1px solid var(--border); position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,122,69,.12), rgba(31,111,235,.12) 50%, rgba(19,181,166,.12));
}
.cta-panel::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; pointer-events: none; }
.cta-copy p { color: var(--muted); }
.contact-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; color: var(--muted); font-size: .95rem; }
.contact-lines a { color: var(--text); font-weight: 600; }
.contact-form { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; font: inherit; color: var(--text);
  background: rgba(7,10,18,.6); border: 1px solid var(--border); outline: none; transition: border-color .2s, box-shadow .2s;
}
.contact-form select option { background: var(--bg-2); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,.25); }
.contact-form textarea { resize: vertical; }
.form-note { margin: 0; font-size: .85rem; color: var(--teal); min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; background: rgba(0,0,0,.25); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding: 56px 0 32px; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: .9rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--text); font-size: .95rem; margin-bottom: 10px; opacity: .85; transition: opacity .2s; }
.footer-cols a:hover { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.footer-squares { display: flex; gap: 4px; }
.footer-squares i { width: 10px; height: 10px; border-radius: 2px; }
.footer-squares i:nth-child(1) { background: var(--orange); }
.footer-squares i:nth-child(2) { background: var(--blue); }
.footer-squares i:nth-child(3) { background: var(--teal); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .work-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 48px; }
  .hero-visual { height: 420px; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 16px var(--gutter) 24px; background: rgba(7,10,18,.96); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .nav-links a:not(.btn) { padding: 12px 0; font-size: 1.05rem; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 12px; }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-toggle { display: flex; }
  .brand-logo { height: 36px; }

  .hero-visual { height: 340px; overflow: hidden; }
  .cube { width: 110px; height: 110px; border-radius: 18px; }
  .cube-blue { width: 130px; height: 130px; }
  .cube-orange { transform: translate(-80px, -90px) rotate(-8deg); }
  .cube-teal { transform: translate(85px, 95px) rotate(-5deg); }
  .ring-1 { width: min(270px, 80%); }
  .ring-2 { width: min(360px, 100%); }
  .chip-3 { display: none; }

  .about-grid, .cta-panel, .footer-inner { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 520px) {
  .services-grid, .steps, .work-grid, .testi-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 18px; }
  .hero-trust li { flex: 1 1 40%; }
  .stat strong { font-size: 2.1rem; }
}
