/* ==========================================================
   B Stories - shared stylesheet (used by every page)
   Brand colours live in :root. Change them here once and the
   whole website updates.
   ========================================================== */

:root {
  --ink: #060A1C;
  --navy: #07122F;
  --navy-2: #0D1838;
  --blue: #4B8CFF;
  --violet: #7B5CFF;
  --violet-deep: #5A3FE0;
  --lavender: #C77DFF;
  --white: #FFFFFF;
  --mist: #F6F5FF;
  --line: #E6E4F5;
  --text: #131A33;
  --muted: #5C6584;
  --muted-dark: #AEB8D8;
  --grad-btn: linear-gradient(90deg, #2F6FEA 0%, #6C4DF5 100%);
  --grad-text: linear-gradient(90deg, #4B8CFF 0%, #8C6CFF 100%);
  --font: "Poppins", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --shadow: 0 8px 30px rgba(40, 30, 120, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 .95rem/1 var(--font); padding: 15px 26px; border-radius: 12px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad-btn); color: var(--white); box-shadow: 0 8px 24px rgba(108, 77, 245, .35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(108, 77, 245, .5); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-black { background: #05070F; color: var(--white); }
.btn-black:hover { background: #000; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-wa { background: #1F8F5F; color: var(--white); }
.btn-wa:hover { background: #187450; }
.btn-sm { padding: 12px 22px; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(6,10,28,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.brand img { height: 40px; width: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link { display: block; padding: 10px 16px; color: #E7EAF7; text-decoration: none; font-weight: 500; font-size: .9rem; transition: color .2s; }
.nav-link:hover { color: var(--white); }
.nav-link[aria-current="page"] { color: #9C86FF; }
.nav-cta { margin-left: 14px; }

.menu {
  position: absolute; left: 50%; top: 100%; width: 640px; transform: translate(-50%, 8px);
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 26px 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu h3 { font-size: .8rem; color: var(--lavender); margin-bottom: 6px; letter-spacing: .04em; text-transform: uppercase; }
.menu a { display: block; padding: 4px 0; color: var(--muted-dark); text-decoration: none; font-size: .92rem; }
.menu a:hover { color: var(--white); }
.menu .menu-all { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; color: var(--white); font-weight: 600; }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; position: relative; margin: 0 auto; transition: transform .2s, background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Dark hero (home + inner pages) ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(55% 75% at 88% 18%, rgba(123, 92, 255, .38), transparent 62%),
    radial-gradient(40% 55% at 5% 105%, rgba(75, 140, 255, .18), transparent 65%),
    var(--ink);
}
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 72px); align-items: center; }

.chip {
  display: inline-block; font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); color: #D6DBF0; background: rgba(255,255,255,.05); margin-bottom: 22px;
}
.chip.light { border-color: var(--line); background: var(--mist); color: var(--violet-deep); }

.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); font-weight: 700; line-height: 1.12; margin-bottom: .5em; }
.hero-lead { font-size: 1rem; color: #D5DAF0; max-width: 46ch; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Orbit visual */
.orbit { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto; }
.orbit .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(160,170,255,.22); }
.orbit .ring.r1 { inset: 4%; }
.orbit .ring.r2 { inset: 18%; border-style: dashed; border-color: rgba(160,170,255,.16); }
.orbit .core { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 40px rgba(108, 92, 255, .55)); }
.orbit .core svg { width: 100%; height: auto; display: block; }
.node {
  position: absolute; width: clamp(40px, 11%, 58px); aspect-ratio: 1; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  animation: float 6s ease-in-out infinite;
}
.node svg { width: 56%; height: 56%; }
.node.n1 { left: 18%; top: 8%; }
.node.n2 { left: 66%; top: 2%; animation-delay: -1s; }
.node.n3 { left: 86%; top: 36%; animation-delay: -2s; }
.node.n4 { left: 74%; top: 74%; animation-delay: -3s; }
.node.n5 { left: 38%; top: 88%; animation-delay: -4s; }
.node.n6 { left: 4%; top: 48%; animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Clients marquee ---------- */
.trusted { background: var(--mist); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trusted-inner { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 28px; }
.trusted-label { font-weight: 500; font-size: .95rem; line-height: 1.35; color: var(--text); margin: 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: slide 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; width: 96px; height: 96px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.marquee-track img { width: 100%; height: 100%; object-fit: cover; }
@keyframes slide { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section.tint { background: var(--mist); }
.section-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head { max-width: 640px; }
.section-head .chip { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; margin-bottom: .4em; }
.section-head p { color: var(--muted); margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px 28px;
  text-decoration: none; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.card { position: relative; overflow: hidden; transform: perspective(900px) translateY(var(--ty,0)) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition: transform .15s ease-out, box-shadow .25s, border-color .25s; will-change: transform; }
a.card:hover { --ty: -4px; border-color: #CFC6FF; box-shadow: 0 16px 40px rgba(80, 60, 200, .16); }
a.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(260px circle at var(--mx,50%) var(--my,50%), rgba(123,92,255,.14), transparent 65%); }
a.card:hover::before { opacity: 1; }
.icon-tile { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, #ECE7FF 0%, #E3EEFF 100%); color: var(--violet-deep); }
.icon-tile svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.02rem; margin-bottom: .45em; }
.card p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.6; }
.card-group-title { font-size: 1.3rem; margin: 48px 0 18px; }
.card-group-title:first-of-type { margin-top: 0; }

/* Stats strip */
.stats { background: var(--ink); background: radial-gradient(40% 200% at 100% 50%, rgba(123,92,255,.3), transparent 70%), var(--ink); color: var(--white); padding: 40px 0; }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { text-align: center; padding: 8px 16px; border-left: 1px solid rgba(255,255,255,.14); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 600; line-height: 1.1; background: linear-gradient(90deg, #6BA2FF, #A48DFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: .88rem; color: var(--muted-dark); }

/* Process */
.process { display: grid; grid-template-columns: 1fr 1.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 32px; border-top: 2px dotted #CFC6FF; }
.steps li { position: relative; text-align: center; }
.step-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; color: var(--white); background: linear-gradient(135deg, #7B5CFF, #4B8CFF); box-shadow: 0 10px 24px rgba(108, 77, 245, .3); position: relative; font-weight: 600; font-size: 1.3rem; }
.step-icon svg { width: 28px; height: 28px; }
.step-no { display: block; font-size: .85rem; font-weight: 600; color: var(--violet-deep); }
.steps h3 { font-size: 1rem; margin: 2px 0 6px; }
.steps p { font-size: .85rem; color: var(--muted); margin: 0; }
.section.dark .steps p { color: var(--muted-dark); }
.section.dark .step-no { color: var(--lavender); }
.section.dark { background: var(--ink); color: var(--white); }
.section.dark .section-head p { color: var(--muted-dark); }
.section.dark .steps::before { border-color: rgba(255,255,255,.2); }

/* CTA card */
.cta { padding: 0 0 clamp(60px, 8vw, 104px); }
.cta.on-tint { padding-top: clamp(60px, 8vw, 104px); }
.cta-card {
  background: linear-gradient(100deg, #3F7BEF 0%, #7B5CFF 55%, #8F65E6 100%); color: var(--white);
  border-radius: 22px; padding: clamp(28px, 5vw, 48px) clamp(24px, 5vw, 56px);
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px clamp(24px, 5vw, 56px); align-items: center;
}
.cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; margin: 0; max-width: 11ch; }
.cta-card p { margin: 0; font-size: .95rem; max-width: 36ch; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(52px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; max-width: 20ch; margin-bottom: .45em; }
.page-hero .lead { font-size: 1.05rem; color: #D5DAF0; max-width: 58ch; margin-bottom: 1.8em; }
.breadcrumb { font-size: .85rem; color: var(--muted-dark); margin-bottom: 20px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 8px; opacity: .6; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.split h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.prose p { color: var(--muted); max-width: 58ch; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list li:first-child { border-top: 1px solid var(--line); }
.link-list a { display: block; padding: 16px 0; text-decoration: none; font-weight: 600; }
.link-list a:hover { color: var(--violet-deep); }
.link-list small { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }

.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--white); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--violet-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 22px 20px; margin: 0; font-size: .95rem; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: .92rem; font-weight: 500; background: var(--white); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.contact-details li { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-details li:last-child { border-bottom: 1px solid var(--line); }
.contact-details small { display: block; color: var(--muted); font-size: .85rem; }
.contact-details a, .contact-details strong { font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.contact-details a:hover { color: var(--violet-deep); }
.form { background: var(--mist); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 38px); }
.form h2 { font-size: 1.5rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--white); border: 1.5px solid #D4D1EC; border-radius: 12px; padding: 13px 14px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-note { margin: 16px 0 0; font-size: .88rem; color: var(--muted); }
.form-error { color: #B3261E; font-weight: 600; margin-top: 12px; min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 64px 0 26px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-grid h3 { font-size: .95rem; color: var(--white); margin-bottom: 16px; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-grid .btn { margin-top: 10px; color: var(--white); }
.footer-grid .btn:hover { text-decoration: none; }
.footer-bottom { padding-top: 22px; font-size: .85rem; }

/* ---------- Floating WhatsApp button (added by js/main.js after 2s) ---------- */
.wa-float {
  position: fixed; z-index: 250; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  width: 62px; height: 62px; border-radius: 50%; background: #25D366; color: var(--white);
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,0,0,.35);
  animation: pop .55s cubic-bezier(.3,1.6,.5,1) both;
}
.wa-float svg { width: 34px; height: 34px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: "Chat with us"; position: absolute; right: 74px; white-space: nowrap; background: var(--navy); color: var(--white); font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.wa-float:hover::after, .wa-float:focus-visible::after { opacity: 1; }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .orbit { width: min(100%, 420px); margin-top: 8px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .trusted-inner { grid-template-columns: 1fr; gap: 14px; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-card h2 { max-width: none; }
  .stats ul { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .stats li:nth-child(3) { border-left: 0; }

  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 80px; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.12); padding: 12px 24px 24px; display: none; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 14px 8px; font-size: 1.05rem; }
  .menu { display: none; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .cards, .cards.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .marquee-track li { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .wa-float, .node { animation: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .btn, .card, .menu { transition: none; }
}

/* ==========================================================
   Extra animations
   (all switched off automatically for visitors who prefer
   reduced motion)
   ========================================================== */

/* Scroll reveal: elements fade and slide up as they enter the screen */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Page fade-in */
body { animation: pagein .6s ease both; }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }

/* Scroll progress bar */
.scroll-bar { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 400; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #4B8CFF, #7B5CFF, #C77DFF); pointer-events: none; }

/* Header gets a stronger look once you scroll */
.site-header { transition: background-color .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(6,10,28,.97); box-shadow: 0 8px 30px rgba(0,0,0,.35); }

/* Hero: slowly turning rings, pulsing glow, shimmering gradient text */
.orbit .ring.r1 { animation: spin 90s linear infinite; border-style: dashed; border-color: rgba(160,170,255,.2); }
.orbit .ring.r2 { animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit .core { animation: glow 4.5s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 28px rgba(108,92,255,.45)); transform: translate(-50%, -50%) scale(1); }
  50% { filter: drop-shadow(0 0 55px rgba(108,92,255,.8)); transform: translate(-50%, -50%) scale(1.035); }
}
.hero h1 .grad-text { background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite alternate; }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Buttons: light sweep on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); }
.btn-primary:hover::after { left: 130%; transition: left .7s ease; }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }

/* Cards: icon tile pops on hover */
.icon-tile { transition: transform .3s cubic-bezier(.3,1.5,.5,1), background .3s; }
a.card:hover .icon-tile { transform: scale(1.12) rotate(-5deg); }

/* Process: dotted line draws itself, icons pulse softly */
.js .steps::before { transform-origin: left; transform: scaleX(0); transition: transform 1.2s .2s cubic-bezier(.3,.7,.2,1); }
.js .steps.in-view::before { transform: scaleX(1); }
.step-icon { animation: pulse 3.2s ease-in-out infinite; }
.steps li:nth-child(2) .step-icon { animation-delay: .4s; }
.steps li:nth-child(3) .step-icon { animation-delay: .8s; }
.steps li:nth-child(4) .step-icon { animation-delay: 1.2s; }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 24px rgba(108,77,245,.3); } 50% { box-shadow: 0 10px 34px rgba(108,77,245,.6), 0 0 0 8px rgba(123,92,255,.12); } }

/* CTA card: slow drifting gradient */
.cta-card { background-size: 160% 100%; animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

@media (prefers-reduced-motion: reduce) {
  body, .orbit .ring, .orbit .core, .hero h1 .grad-text, .step-icon, .cta-card { animation: none; }
  .scroll-bar { display: none; }
  .btn-primary::after { display: none; }
}


/* ==========================================================
   Illustrations, interactive sections and effects
   ========================================================== */
.ill { width: 100%; height: auto; display: block; overflow: visible; }
.ill .fl { animation: bob 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bob { 50% { transform: translateY(-8px); } }
.ill .spin { transform-origin: 280px 220px; animation: spin 50s linear infinite; }
.ill .blink { animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ill .ring-pulse { transform-origin: 280px 220px; animation: ringp 3s ease-out infinite; }
@keyframes ringp { from { transform: scale(.9); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
.ill .drop { animation: drop 3.2s linear infinite; animation-delay: var(--d, 0s); }
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(240px); opacity: 0; } }
.ill .pulse-h { transform-box: fill-box; transform-origin: center; animation: heart 1.8s ease-in-out infinite; }
@keyframes heart { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.35); } 30% { transform: scale(1); } }
.ill .draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ill .draw2 { stroke-dashoffset: 0; }
.js .ill .grow { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .ill.in .grow { transform: scaleY(1); }
.js .ill .draw { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s .5s ease; }
.js .ill.in .draw { stroke-dashoffset: 0; }
.js .ill .draw2 { stroke-dasharray: 0 214; transition: stroke-dasharray 1.6s .4s ease; }
.js .ill.in .draw2 { stroke-dasharray: 140 214; }

.ill-frame {
  position: relative; border-radius: 28px; padding: 14px;
  background: radial-gradient(80% 80% at 75% 15%, rgba(123,92,255,.32), transparent 70%), linear-gradient(160deg, #0F1A45, #070C20);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(60,40,200,.28); overflow: hidden;
}
.hero-visual { transform: translate(calc(var(--px,0) * -12px), calc(var(--py,0) * -8px)); transition: transform .25s ease-out; }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .75; }
.orbit { transform: translate(calc(var(--px,0) * -10px), calc(var(--py,0) * -8px)); transition: transform .25s ease-out; }
.orbit .nodes { position: absolute; inset: 0; transform: translate(calc(var(--px,0) * 20px), calc(var(--py,0) * 16px)); transition: transform .25s ease-out; }

.cursor-glow { position: fixed; left: 0; top: 0; width: 380px; height: 380px; margin: 0; border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s; background: radial-gradient(circle, rgba(123,92,255,.17), transparent 65%); will-change: transform; }

.btn { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* Service explorer (home) */
.explorer { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.ex-tabs { display: grid; gap: 12px; }
.ex-tab { display: flex; align-items: center; gap: 16px; text-align: left; width: 100%; font: inherit; color: var(--text); background: var(--white); border: 1.5px solid var(--line); border-radius: 18px; padding: 18px 20px; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s, background .2s; }
.ex-tab:hover { transform: translateX(6px); border-color: #CFC6FF; }
.ex-tab .icon-tile { margin: 0; flex: none; }
.ex-tab strong { display: block; font-size: 1.05rem; font-weight: 600; }
.ex-tab small { color: var(--muted); font-size: .85rem; }
.ex-tab[aria-selected="true"] { background: linear-gradient(120deg, #3F7BEF, #7B5CFF); color: var(--white); border-color: transparent; box-shadow: 0 14px 34px rgba(108,77,245,.35); transform: translateX(10px); }
.ex-tab[aria-selected="true"] small { color: rgba(255,255,255,.85); }
.ex-tab[aria-selected="true"] .icon-tile { background: rgba(255,255,255,.2); color: var(--white); }
.ex-panel { display: none; }
.ex-panel.is-active { display: block; animation: panel .5s cubic-bezier(.2,.7,.2,1); }
@keyframes panel { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.ex-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ex-links a { text-decoration: none; font-weight: 500; font-size: .9rem; padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); transition: background .2s, color .2s, transform .2s; }
.ex-links a:hover { background: var(--violet-deep); color: var(--white); transform: translateY(-2px); }

/* Goal picker (home) */
.goals .section-head { margin-bottom: 36px; }
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.goal { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; font-weight: 500; color: var(--white); background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.14); border-radius: 16px; padding: 16px 18px; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.goal:hover { transform: translateY(-3px); border-color: rgba(199,125,255,.6); background: rgba(255,255,255,.09); }
.goal .icon-tile { margin: 0; width: 44px; height: 44px; border-radius: 12px; flex: none; background: rgba(255,255,255,.1); color: #C9BBFF; }
.goal .icon-tile svg { width: 22px; height: 22px; }
.goal[aria-checked="true"] { background: linear-gradient(120deg, rgba(63,123,239,.55), rgba(123,92,255,.55)); border-color: #A58BFF; }
.goal-result { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: clamp(22px, 4vw, 36px); min-height: 150px; }
.goal-result h3 { font-size: 1.4rem; }
.goal-result p { color: var(--muted-dark); max-width: 56ch; }
.goal-result.pop > * { animation: panel .5s cubic-bezier(.2,.7,.2,1) both; }
.goal-result.pop > *:nth-child(2) { animation-delay: .06s; } .goal-result.pop > *:nth-child(3) { animation-delay: .12s; }
.goal-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.goal-links a { text-decoration: none; font-weight: 500; font-size: .92rem; padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); transition: background .2s, transform .2s; }
.goal-links a:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

/* Why us (home) */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.why-list { display: grid; gap: 18px; margin-top: 26px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-list .icon-tile { margin: 0; flex: none; width: 46px; height: 46px; border-radius: 12px; }
.why-list h3 { font-size: 1.02rem; margin: 0 0 2px; }
.why-list p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Industry ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--white); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: slide 60s linear infinite reverse; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track li { flex: none; font-weight: 500; font-size: .95rem; padding: 10px 22px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); color: var(--violet-deep); }

/* 404 */
.nf { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.nf h1 { font-size: clamp(4rem, 12vw, 8rem); margin: 0; }

@media (max-width: 1080px) { .goal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) {
  .page-hero-grid, .explorer, .why { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 8px auto 0; }
  .cursor-glow { display: none; }
}
@media (max-width: 640px) { .goal-grid { grid-template-columns: 1fr; } }
@media (hover: none) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ill *, .ticker-track, .ex-panel, .goal-result > * { animation: none !important; }
  .cursor-glow, .fx-canvas { display: none; }
}

/* ==========================================================
   v2: 3D hero, 3D carousel, portfolio, project pages, markdown
   ========================================================== */
.menu { width: 780px; grid-template-columns: repeat(3, 1fr); }
.section-head.center { margin-inline: auto; text-align: center; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.social-links a { text-decoration: none; font-size: .88rem; }
.svc-photo { width: 100%; border-radius: 22px; box-shadow: 0 30px 80px rgba(60,40,200,.28); aspect-ratio: 4/3; object-fit: cover; }

/* 3D hero stage */
.hero-stage { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin: 0 auto; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; touch-action: pan-y; }
.hero-stage.has-3d canvas { display: block; animation: pagein 1.2s ease both; }
.hero-stage.has-3d .orbit { display: none; }
.hero-stage .orbit { width: 100%; }
.hero-3d::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, transparent, rgba(6,10,28,.6)); pointer-events: none; }

/* 3D carousel */
.c3d-section { background: radial-gradient(60% 80% at 50% 0%, rgba(123,92,255,.28), transparent 70%), var(--ink); color: #fff; overflow: hidden; }
.c3d-section .section-head p { color: var(--muted-dark); }
.c3d { position: relative; height: 430px; perspective: 1500px; margin-top: 10px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.c3d.dragging { cursor: grabbing; }
.c3d-ring { position: absolute; left: 50%; top: 46%; width: 260px; height: 330px; margin: -165px 0 0 -130px; transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)) rotateY(var(--rot, 0deg)); }
.c3d-ring.smooth { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.c3d-item {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 26px 22px; border-radius: 22px; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, rgba(123,92,255,.55), rgba(20,32,90,.92) 60%);
  border: 1px solid rgba(255,255,255,.2); box-shadow: 0 30px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.18);
  transform: rotateY(calc(var(--i) * (360deg / var(--n)))) translateZ(var(--r)); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.c3d-item .icon-tile { background: rgba(255,255,255,.14); color: #fff; }
.c3d-item h3 { font-size: 1.15rem; }
.c3d-item p { color: rgba(255,255,255,.78); font-size: .9rem; flex: 1; }
.c3d-more { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .88rem; }
.c3d-more svg { width: 16px; height: 16px; }
.c3d-nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 14px; }
.c3d-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 1.3rem; cursor: pointer; transition: background .2s, transform .2s; }
.c3d-btn:hover { background: rgba(255,255,255,.2); transform: scale(1.08); }

/* Portfolio */
.pf-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.pf-filter { font: inherit; font-weight: 500; font-size: .9rem; cursor: pointer; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--text); transition: all .2s; }
.pf-filter:hover { border-color: #CFC6FF; transform: translateY(-2px); }
.pf-filter[aria-pressed="true"] { background: linear-gradient(120deg, #3F7BEF, #7B5CFF); color: var(--white); border-color: transparent; box-shadow: 0 10px 24px rgba(108,77,245,.3); }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pf-card { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.pf-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(80,60,200,.18); }
.pf-card.is-hidden { display: none; }
.pf-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #1B2A6B, #4B2FC0 60%, #7B5CFF); overflow: hidden; display: grid; place-items: center; }
.pf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pf-card:hover .pf-media img { transform: scale(1.07); }
.pf-ph { color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pf-ph svg { width: 34px; height: 34px; }
.pf-play { position: absolute; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92); color: #5A3FE0; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .3s; }
.pf-play svg { width: 30px; height: 30px; }
.pf-card:hover .pf-play { transform: scale(1.12); }
.pf-body { padding: 22px 22px 26px; }
.pf-tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-deep); background: var(--mist); border-radius: 999px; padding: 5px 12px; margin-bottom: 12px; }
.pf-body h3 { font-size: 1.15rem; margin-bottom: .4em; color: var(--text); }
.pf-body p { color: var(--muted); font-size: .92rem; margin: 0 0 .7em; }
.pf-body p.pf-result { color: var(--text); font-weight: 600; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.pf-note { color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.pf-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pf-quote { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; box-shadow: var(--shadow); margin: 0; }
.pf-quote .stars { color: #F5B301; letter-spacing: 3px; margin-bottom: 12px; }
.pf-quote blockquote { margin: 0 0 20px; font-size: .98rem; }
.pf-who { display: flex; align-items: center; gap: 12px; }
.pf-avatar { position: relative; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #7B5CFF, #4B8CFF); color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; overflow: hidden; }
.pf-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-who strong { display: block; font-size: .95rem; }
.pf-who small { color: var(--muted); }
.pf-lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(4,7,20,.92); display: none; place-items: center; padding: 24px; }
.pf-lightbox.open { display: grid; animation: pagein .25s ease; }
.pf-lightbox img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 14px; }
.pf-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.6rem; background: rgba(255,255,255,.14); color: #fff; }
.zoomable { cursor: zoom-in; }

/* Project page */
.pj-grid { display: grid; grid-template-columns: 1fr 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.pj-media { width: 100%; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 32px; background: #000; }
.pj-side { position: sticky; top: 100px; display: grid; gap: 14px; }
.pj-box { background: var(--mist); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.pj-box small { display: block; color: var(--muted); font-size: .82rem; }
.pj-box strong { font-size: 1.05rem; }
.pj-result { background: linear-gradient(135deg, #3F7BEF, #7B5CFF); border: 0; color: #fff; }
.pj-result small { color: rgba(255,255,255,.85); }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.proof { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.proof img { width: 100%; display: block; }
.proof figcaption { padding: 12px 16px; font-size: .9rem; color: var(--muted); }

/* Markdown content */
.md h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.md h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.md p, .md li { color: #3C4566; max-width: 70ch; }
.md ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.md a { color: var(--violet-deep); text-decoration: underline; }
.md img { border-radius: 14px; margin: 1em 0; max-width: 100%; }
.md-embed { position: relative; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; margin: 0 0 32px; background: #000; }
.md-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.page-body { max-width: 820px; }

@media (max-width: 1080px) { .menu { width: 640px; grid-template-columns: 1fr 1fr; } }
@media (max-width: 1000px) { .pf-grid, .pf-quotes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) { .pj-grid { grid-template-columns: 1fr; } .pj-side { position: static; } .c3d { height: 380px; } .c3d-ring { transform: scale(.82) translateZ(calc(var(--r) * -1)) rotateY(var(--rot, 0deg)); } }
@media (max-width: 640px) { .pf-grid, .pf-quotes, .proof-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .c3d-ring.smooth { transition: none; } }
