/* ===== Design tokens ===== */
:root {
  --bg: #08080a;
  --bg-alt: #0d0d11;
  --surface: #131318;
  --surface-2: #1a1a21;
  --border: #24242e;
  --text: #f2f2f5;
  --muted: #a2a2ae;
  --muted-2: #6d6d78;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-3: #a855f7;
  --accent-grad: linear-gradient(115deg, #818cf8 0%, #22d3ee 55%, #a855f7 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
::selection { background: rgba(129,140,248,.35); color: #fff; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Scroll progress ===== */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 100;
  background: var(--accent-grad); box-shadow: 0 0 12px rgba(129,140,248,.7);
  transition: width .1s linear;
}

/* ===== Cursor spotlight ===== */
.spotlight {
  position: fixed; top: 0; left: 0; width: 480px; height: 480px; border-radius: 50%;
  pointer-events: none; z-index: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(99,102,241,.10), transparent 65%);
  opacity: 0; transition: opacity .4s ease; will-change: transform;
}
body.has-cursor .spotlight { opacity: 1; }

/* ===== Film grain ===== */
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .035;
  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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Buttons ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; overflow: hidden; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px -10px rgba(99,102,241,.8); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; background: var(--accent-grad);
  opacity: 0; transition: opacity .3s ease; z-index: -1;
}
.btn--primary:hover { box-shadow: 0 12px 40px -8px rgba(129,140,248,.9); }
.btn--primary:hover::before { opacity: 1; }
.btn--ghost { background: rgba(255,255,255,.02); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--muted); background: rgba(255,255,255,.05); }
.btn--sm { padding: 11px 18px; font-size: .875rem; }
.btn--lg { padding: 19px 30px; font-size: 1.05rem; }
.btn--wa { background: #25d366; color: #06251a; }
.btn--wa:hover { background: #22c35e; box-shadow: 0 12px 40px -8px rgba(37,211,102,.7); }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25d366;
  box-shadow: 0 10px 30px -6px rgba(37,211,102,.6);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: wa-pop 3.2s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 14px 40px -6px rgba(37,211,102,.8); }
@keyframes wa-pop { 0%,100% { box-shadow: 0 10px 30px -6px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 10px 30px -6px rgba(37,211,102,.6), 0 0 0 14px rgba(37,211,102,0); } }
@media (max-width: 640px) { .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; } }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(8,8,10,.7);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(8,8,10,.85); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--display); }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-grad); color: #08080a; font-weight: 700; font-size: .85rem; letter-spacing: -.03em;
  box-shadow: 0 4px 16px -4px rgba(129,140,248,.6);
}
.brand__photo {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); box-shadow: 0 4px 14px -4px rgba(0,0,0,.6);
  transition: border-color .25s ease, transform .25s ease;
}
.brand:hover .brand__photo { border-color: var(--accent); transform: scale(1.05); }
.footer__inner .brand__photo { width: 34px; height: 34px; }
.brand__name { font-size: .98rem; }
.nav__links { display: flex; gap: 30px; margin-left: auto; margin-right: 8px; }
.nav__links a { position: relative; color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .18s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent-grad); border-radius: 2px; transition: width .25s ease;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a.active::after, .nav__links a:hover::after { width: 100%; }

/* Language toggle */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.02); }
.lang button { font-family: var(--font); font-size: .78rem; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 5px 11px; border-radius: 999px; transition: color .18s, background .18s; }
.lang button:hover { color: var(--text); }
.lang button.active { color: #fff; background: var(--accent); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .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); }
.nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.nav__mobile a { padding: 13px 4px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.nav__mobile a.btn { margin-top: 12px; border: 0; color: #fff; justify-content: center; }

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1), filter .7s ease; }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ===== Hero ===== */
.hero { position: relative; padding: 120px 0 90px; overflow: hidden; }
.hero__aurora {
  position: absolute; inset: -20% -10% auto -10%; height: 700px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 45% at 20% 20%, rgba(99,102,241,.28), transparent 60%),
    radial-gradient(35% 40% at 80% 10%, rgba(34,211,238,.20), transparent 60%),
    radial-gradient(40% 45% at 60% 60%, rgba(168,85,247,.18), transparent 60%);
  filter: blur(20px); animation: aurora 16s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-4%, -2%, 0) scale(1); }
  50%  { transform: translate3d(3%, 3%, 0) scale(1.08); }
  100% { transform: translate3d(5%, -3%, 0) scale(1.02); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 25%, transparent 72%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--muted); background: rgba(255,255,255,.03);
  border: 1px solid var(--border); padding: 8px 15px; border-radius: 999px; margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } }
.hero__title { font-size: clamp(2.4rem, 6.5vw, 4.4rem); font-weight: 700; letter-spacing: -.03em; }
.hero__title .line { display: block; }
.hero__rotator { display: inline-flex; align-items: baseline; min-height: 1.15em; }
.grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
.caret { color: var(--accent-2); font-weight: 300; animation: blink 1s step-end infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { max-width: 620px; margin-top: 28px; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border: 2px solid var(--border); border-radius: 14px; display: grid; place-items: start center; padding-top: 7px; z-index: 1; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 3px; background: var(--muted); animation: scrolldot 1.6s ease-in-out infinite; }
@keyframes scrolldot { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(10px); opacity: 0; } }

/* ===== Marquee ===== */
.marquee { border-block: 1px solid var(--border); background: var(--bg-alt); overflow: hidden; padding: 20px 0; -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: inline-flex; align-items: center; gap: 26px; white-space: nowrap; animation: scroll-x 32s linear infinite; }
.marquee__track span { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--muted); }
.marquee__track i { color: var(--accent); font-style: normal; font-size: .8rem; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ===== Stats band ===== */
.stats-band { padding: 64px 0; }
.stats-band__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ===== Sections ===== */
.section { padding: 92px 0; position: relative; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 640px; margin-bottom: 52px; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--accent-2); margin-bottom: 14px; }
.section__head h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
.section__sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ===== Grid / cards ===== */
.grid { display: grid; gap: 20px; }
.grid--services { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease;
  transform-style: preserve-3d;
}
.card:hover { border-color: #3a3a48; }
.card__glow { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx,50%) var(--my,0%), rgba(99,102,241,.16), transparent 60%); }
.card:hover .card__glow { opacity: 1; }
.card__icon { font-size: 1.9rem; margin-bottom: 16px; display: inline-block; transition: transform .3s ease; }
.card:hover .card__icon { transform: scale(1.15) rotate(-6deg); }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card__list { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.card__list li { position: relative; padding-left: 22px; color: var(--muted); font-size: .93rem; }
.card__list li::before { content: "→"; position: absolute; left: 0; color: var(--accent-2); }

/* ===== Stack ===== */
.stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.stack__group h4 { font-family: var(--font); color: var(--muted-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 9px 15px; border-radius: 11px; font-size: .9rem; font-weight: 500;
  transition: border-color .18s, transform .18s, color .18s;
}
.chips span:hover { border-color: var(--accent); transform: translateY(-3px); color: #fff; }

/* ===== Steps ===== */
.grid--steps { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: transform .25s ease, border-color .25s ease; }
.step:hover { transform: translateY(-5px); border-color: #3a3a48; }
.step__num { font-family: var(--display); font-size: 2.4rem; font-weight: 700; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 12px 0 8px; font-size: 1.25rem; }
.step p { color: var(--muted); }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.about__text h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin-bottom: 20px; }
.about__text p { color: var(--muted); margin-bottom: 16px; }
.about__text strong { color: var(--text); }
.about__cta { margin-top: 26px; }
.about__facts { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.about__facts li {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 17px 22px; font-weight: 500;
  transition: transform .2s ease, border-color .2s ease;
}
.about__facts li:hover { transform: translateX(6px); border-color: var(--accent); }
.about__facts span { font-size: 1.3rem; }

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2), transparent); }
.tl__item { position: relative; padding: 0 0 34px 40px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__dot { position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.tl__date { display: inline-block; font-family: var(--display); font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--accent-2); margin-bottom: 6px; }
.tl__body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tl__body p { color: var(--muted); font-size: .96rem; }
.tl__body strong { color: var(--text); }

/* ===== Contact ===== */
.contact { overflow: hidden; }
.contact__aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(45% 60% at 50% 120%, rgba(99,102,241,.25), transparent 60%); }
.contact__inner { position: relative; z-index: 1; text-align: center; max-width: 660px; margin: 0 auto; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.1rem); margin-top: 4px; }
.contact__lead { color: var(--muted); font-size: 1.15rem; margin-top: 16px; }
.contact__actions { margin-top: 34px; }
.contact__links { display: flex; gap: 24px; justify-content: center; margin-top: 30px; }
.contact__links a { color: var(--muted); font-weight: 500; border-bottom: 1px solid transparent; transition: .18s; }
.contact__links a:hover { color: var(--text); border-color: var(--accent); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 34px 0; background: var(--bg-alt); }
.footer__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__inner p { color: var(--muted-2); font-size: .9rem; }
.footer__top { margin-left: auto; color: var(--muted); font-size: .9rem; }
.footer__top:hover { color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__inner > .btn--primary.btn--sm { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile.open { display: flex; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .stats-band__inner { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .spotlight { display: none; }
}
@media (max-width: 640px) {
  .grid--services, .stack, .grid--steps { grid-template-columns: 1fr; }
  .hero { padding: 84px 0 70px; }
  .section { padding: 68px 0; }
}

/* ===== Motion preference ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
