:root {
  --crimson: #e52b34;
  --crimson-deep: #b91c1c;
  --crimson-bright: #ff4d57;
  --ink: #0a0a0b;
  --muted: #9ca0a8;
  --line: rgba(255, 255, 255, .08);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, ::before, ::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink);
  color: #fff;
  overflow-x: clip;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }

::selection { background: var(--crimson); color: #fff; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0b; }
::-webkit-scrollbar-thumb { background: #26262b; border-radius: 8px; border: 2px solid #0a0a0b; }
::-webkit-scrollbar-thumb:hover { background: var(--crimson); }

.container-x { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container-x { padding-inline: 2rem; } }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--crimson); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 .75rem 0;
}
.skip-link:focus { left: 0; }

.text-gradient {
  background: linear-gradient(100deg, #ff4d57 0%, #e52b34 45%, #ff8a5c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .9rem; padding: .85rem 1.6rem; border-radius: 9999px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn-primary {
  background: linear-gradient(120deg, #ff4d57, #e52b34 55%, #c81e2a); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(229, 43, 52, .65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 42px -12px rgba(229, 43, 52, .85); }
.btn-ghost { border-color: rgba(255, 255, 255, .16); color: #fff; background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.btn-light { background: #fff; color: #0a0a0b; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -18px rgba(255, 255, 255, .6); }
.btn .btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn.loading { pointer-events: none; opacity: .8; }
.btn.loading::after {
  content: ""; width: 1.1em; height: 1.1em; flex: none;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 9999px;
  background: rgba(229, 43, 52, .1); border: 1px solid rgba(229, 43, 52, .32);
  color: #ffb3b8; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}

.tag {
  display: inline-block; padding: .3rem .7rem; border-radius: 9999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .65); font-size: .72rem; font-weight: 500;
}

.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 1.25rem;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

.hover-lift { transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, background .35s; }
.hover-lift:hover {
  transform: translateY(-6px); border-color: rgba(229, 43, 52, .45);
  box-shadow: 0 24px 60px -30px rgba(229, 43, 52, .35);
}

.icon-tile {
  width: 52px; height: 52px; border-radius: 1rem; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(229, 43, 52, .25), rgba(229, 43, 52, .08));
  border: 1px solid rgba(229, 43, 52, .35); color: var(--crimson-bright);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.hover-lift:hover .icon-tile { transform: scale(1.06) rotate(-3deg); box-shadow: 0 10px 26px -10px rgba(229, 43, 52, .5); }

.grid-bg { position: relative; }
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 78%);
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  animation: blob-float 14s ease-in-out infinite alternate;
  background: radial-gradient(circle, var(--blob-c, rgba(229, 43, 52, .3)) 0%, rgba(229, 43, 52, 0) 68%);
}
.glow {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(229, 43, 52, .22) 0%, rgba(229, 43, 52, .08) 50%, transparent 72%);
}
@keyframes blob-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, -40px, 0) scale(1.12); }
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.revealed { opacity: 1; transform: none; }

.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.is-scrolled { background: rgba(10, 10, 11, .75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(255, 255, 255, .07); }

.nav-link {
  position: relative; font-size: .92rem; font-weight: 500;
  color: rgba(255, 255, 255, .7); transition: color .2s; padding: .4rem 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--crimson-bright), var(--crimson));
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); border-radius: 2px;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.burger { display: inline-flex; flex-direction: column; gap: 5px; width: 26px; background: none; border: 0; cursor: pointer; padding: 0; }
.burger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(10, 10, 11, .97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a.menu-link {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: #fff;
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s;
  transition-delay: var(--d, 0s);
}
.mobile-menu.open a.menu-link { opacity: 1; transform: none; }
.mobile-menu a.menu-link:hover { color: var(--crimson-bright); }

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 4rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.project-card {
  position: relative; border-radius: 1.4rem; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08); background: #101012;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.project-card:hover { transform: translateY(-8px); border-color: rgba(229, 43, 52, .5); box-shadow: 0 30px 70px -30px rgba(229, 43, 52, .4); }
.project-media { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.project-media .pm-icon { transition: transform .5s var(--ease); }
.project-card:hover .pm-icon { transform: scale(1.12) rotate(-2deg); }
.project-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 1.25rem;
  background: linear-gradient(to top, rgba(10, 10, 11, .85), transparent 55%);
  opacity: 0; transition: opacity .35s;
}
.project-card:hover .project-overlay { opacity: 1; }

.filter-btn {
  padding: .55rem 1.2rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .65); font-size: .85rem; font-weight: 600; cursor: pointer; background: transparent;
  transition: all .25s;
}
.filter-btn:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.filter-btn.active {
  background: linear-gradient(120deg, #ff4d57, #e52b34); border-color: transparent; color: #fff;
  box-shadow: 0 10px 26px -12px rgba(229, 43, 52, .7);
}

.t-slider { overflow: hidden; }
.t-track { display: flex; transition: transform .55s var(--ease); }
.t-slide { flex: 0 0 100%; padding: .25rem; }
.t-dot { width: 10px; height: 10px; border-radius: 9999px; background: rgba(255, 255, 255, .18); border: 0; cursor: pointer; transition: all .3s; padding: 0; }
.t-dot.active { width: 28px; background: linear-gradient(90deg, var(--crimson-bright), var(--crimson)); }
.t-nav-btn {
  width: 44px; height: 44px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, .15);
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(255, 255, 255, .03); cursor: pointer; transition: all .25s;
}
.t-nav-btn:hover { border-color: var(--crimson); background: rgba(229, 43, 52, .15); }

.avatar {
  width: 48px; height: 48px; border-radius: 9999px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display); color: #fff; font-size: .95rem;
}

.float-slow { animation: floaty 6s ease-in-out infinite; }
.float-slow-rev { animation: floaty 7s ease-in-out infinite reverse; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .5rem; color: rgba(255, 255, 255, .85); }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: .9rem;
  padding: .85rem 1rem; color: #fff; font-family: var(--font-body); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .35); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--crimson);
  box-shadow: 0 0 0 4px rgba(229, 43, 52, .15); background: rgba(255, 255, 255, .06);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca0a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem;
}
.field select option { background: #141416; color: #fff; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #f87171; }
.field-err { color: #fca5a5; font-size: .78rem; margin-top: .35rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translate(-50%, 140%); z-index: 90;
  display: flex; gap: .75rem; align-items: center; max-width: calc(100vw - 2rem);
  background: #141416; border: 1px solid rgba(255, 255, 255, .12); border-radius: 1rem;
  padding: .95rem 1.3rem; font-size: .9rem;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85);
  transition: transform .4s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }
.toast-dot { width: .6rem; height: .6rem; border-radius: 50%; background: #22c55e; flex: none; }
.toast.error .toast-dot { background: #ef4444; }

.cta-panel {
  background: linear-gradient(125deg, #ff5b66, #e52b34 55%, #a3121d);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 80px -30px rgba(229, 43, 52, .55);
}
.cta-ring { position: absolute; border: 1px solid rgba(255, 255, 255, .18); border-radius: 9999px; pointer-events: none; }

.site-footer { border-top: 1px solid rgba(255, 255, 255, .07); background: #070708; }
.footer-link { color: rgba(255, 255, 255, .6); transition: color .2s; display: inline-block; }
.footer-link:hover { color: #fff; }

.social-btn {
  width: 40px; height: 40px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .03);
  transition: all .25s;
}
.social-btn:hover { border-color: var(--crimson); color: #fff; background: rgba(229, 43, 52, .15); transform: translateY(-3px); }

.float-wa {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .55);
  transition: transform .3s var(--ease);
}
.float-wa:hover { transform: scale(1.08) rotate(4deg); }
.float-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: 9999px;
  border: 2px solid rgba(37, 211, 102, .6); animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

.brand-word { color: rgba(255, 255, 255, .32); font-family: var(--font-display); font-size: 1.3rem; transition: color .3s; white-space: nowrap; }
.brand-word:hover { color: rgba(255, 255, 255, .85); }

.team-avatar {
  width: 88px; height: 88px; border-radius: 1.4rem; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
}

.timeline-item { position: relative; padding-left: 2.75rem; }
.timeline-item::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: -14px; width: 2px;
  background: linear-gradient(180deg, var(--crimson), rgba(229, 43, 52, .15));
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 9999px;
  background: #141416; border: 2px solid var(--crimson);
  display: flex; align-items: center; justify-content: center;
}
.timeline-dot::after { content: ""; width: 8px; height: 8px; border-radius: 9999px; background: var(--crimson); }

.stat-number { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1; }

@media (min-width: 768px) { .stat-number { font-size: 3rem; } }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
