:root {
  --bg: #07090f;
  --bg-soft: #0e1422;
  --surface: #121a2b;
  --surface-2: #172238;
  --line: #263552;
  --text: #ecf1ff;
  --muted: #97a6c7;
  --blue: #42a5ff;
  --cyan: #28d3ff;
  --violet: #7e7bff;
  --ok: #52f0b5;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(66, 165, 255, 0.18), transparent 38%),
    radial-gradient(circle at 86% 15%, rgba(126, 123, 255, 0.16), transparent 34%),
    linear-gradient(160deg, #05070c 0%, #080d16 38%, #0b1321 100%);
  overflow-x: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #132443 0%, #060a12 62%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #cce6ff;
  text-transform: uppercase;
  animation: loaderPulse 1.1s ease-in-out infinite alternate;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000 42%, transparent 95%);
}

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

.glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(65px);
  z-index: -2;
  opacity: 0.34;
}

.glow.a {
  background: #2f8cff;
  top: -130px;
  left: -120px;
  animation: floatA 12s ease-in-out infinite;
}

.glow.b {
  background: #5f51ff;
  bottom: -160px;
  right: -150px;
  animation: floatB 14s ease-in-out infinite;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: linear-gradient(135deg, #0e1525 0%, #05070c 100%);
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}

body.transition-in .page-transition {
  animation: wipeIn 0.62s ease forwards;
}

body.transition-out .page-transition {
  animation: wipeOut 0.62s ease forwards;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(8, 13, 22, 0.76);
  border-bottom: 1px solid rgba(38, 53, 82, 0.75);
}

.nav-wrap {
  width: min(1180px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 0.2rem 0.35rem 0.2rem 0.2rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #2f5187;
  box-shadow:
    0 0 12px rgba(66, 165, 255, 0.45),
    0 0 28px rgba(40, 211, 255, 0.25);
  animation: logoPulse 2.4s ease-in-out infinite alternate;
}

.brand::after {
  content: "";
  position: absolute;
  left: -40%;
  top: -40%;
  width: 30%;
  height: 180%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.14) 45%,
    rgba(255, 255, 255, 0.48) 50%,
    rgba(255, 255, 255, 0.14) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(18deg);
  animation: brandShimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

.brand span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #dbe7ff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-cta {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), #2fd6ff);
  padding: 0.62rem 1rem;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 0 0 0.8rem;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(150deg, rgba(18, 26, 43, 0.94), rgba(13, 21, 36, 0.72));
  font-weight: 700;
}

body.menu-open .mobile-menu {
  display: grid;
}

.page {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 4.6rem 0 1.2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: center;
}

.hero-logo {
  width: min(100%, 540px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #0d1423, #0a1020);
  box-shadow: var(--shadow);
}

.brand-panel {
  padding: 1.3rem;
  position: relative;
  overflow: hidden;
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 173, 255, 0.28), transparent 70%);
}

.brand-panel h3 {
  margin: 0.6rem 0 0.8rem;
  font-size: 1.4rem;
}

.brand-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  position: relative;
  z-index: 1;
}

.brand-panel li {
  margin: 0.38rem 0;
}

.eyebrow {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
}

h1 {
  margin-top: 0.65rem;
  font-size: clamp(2.3rem, 6.2vw, 4.5rem);
  max-width: 13ch;
}

.lead {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions,
.stack-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.12rem;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(130deg, #2b9fff, #31d7ff);
  box-shadow: 0 16px 30px rgba(28, 128, 255, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.metric {
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(16, 26, 43, 0.84), rgba(11, 20, 36, 0.62));
  border-radius: 16px;
  padding: 1rem;
}

.metric strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  color: var(--ok);
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  margin-top: 3rem;
}

.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.9rem);
  max-width: 19ch;
}

.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(18, 26, 43, 0.94), rgba(13, 21, 36, 0.72));
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(64, 197, 255, 0.7);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p,
li,
.meta {
  color: var(--muted);
}

.card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.project-tag {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cyan);
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline .card {
  position: relative;
  padding-left: 2.7rem;
}

.timeline .card::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(130deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(40, 211, 255, 0.8);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-item {
  display: grid;
  gap: 0.45rem;
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--cyan);
}

.footer {
  margin-top: 4rem;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid rgba(38, 53, 82, 0.7);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  text-decoration: none;
  color: #00190f;
  background: linear-gradient(135deg, #63ffbf, #15d46f);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.78rem 1.05rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes wipeIn {
  from {
    transform: scaleY(0);
    transform-origin: top;
  }
  to {
    transform: scaleY(1);
    transform-origin: top;
  }
}

@keyframes wipeOut {
  from {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  to {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes floatA {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(22px, 14px);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-18px, -16px);
  }
}

@keyframes loaderPulse {
  from {
    opacity: 0.58;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes logoPulse {
  from {
    filter: saturate(1) brightness(1);
  }
  to {
    filter: saturate(1.15) brightness(1.16);
  }
}

@keyframes brandShimmer {
  0% {
    left: -48%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  45% {
    left: 120%;
    opacity: 0;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .hero,
  .grid-2,
  .grid-3,
  .grid-4,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .page {
    padding-top: 4rem;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding: 0.7rem 0.95rem;
    font-size: 0.9rem;
  }
}
