/* ─────────────────────────────────────────
   Variables & Reset
───────────────────────────────────────── */
:root {
  --bg:           #06080f;
  --bg-2:         #0c0f1d;
  --card:         rgba(255, 255, 255, 0.035);
  --card-border:  rgba(255, 255, 255, 0.08);
  --text:         #e8eaf2;
  --muted:        #6b7590;
  --primary:      #00c98d;
  --gradient:     linear-gradient(130deg, #00c98d 0%, #0ea5e9 100%);
  --font:         'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────
   Layout
───────────────────────────────────────── */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ─────────────────────────────────────────
   Reveal animation
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* Hero stagger */
.hero__content .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero__content .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero__content .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero__content .reveal:nth-child(4) { transition-delay: 0.35s; }

/* Cards stagger */
.services-grid .reveal:nth-child(1) { transition-delay: 0.00s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.21s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.28s; }

/* Pillars stagger */
.pillars .reveal:nth-child(1) { transition-delay: 0.00s; }
.pillars .reveal:nth-child(2) { transition-delay: 0.10s; }
.pillars .reveal:nth-child(3) { transition-delay: 0.20s; }

/* ─────────────────────────────────────────
   Utilities
───────────────────────────────────────── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 201, 141, 0.35);
  background: rgba(0, 201, 141, 0.07);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   Buttons
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  border: none;
  white-space: nowrap;
}

.btn--sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn--sm:hover { background: rgba(255, 255, 255, 0.11); }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 28px rgba(0, 201, 141, 0.28);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 36px rgba(0, 201, 141, 0.42);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--card-border);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn--lg {
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  border-radius: 11px;
}

/* ─────────────────────────────────────────
   Navigation
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(6, 8, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--card-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
}
.nav__logo-text {
  line-height: 1;
}
.nav__logo span { color: var(--primary); }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
}
.lang-switch__btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.34rem 0.56rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s ease;
}
.lang-switch__btn:hover {
  color: var(--text);
}
.lang-switch__btn.is-active {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 16px rgba(0, 201, 141, 0.24);
}

/* ─────────────────────────────────────────
   Hero
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 6rem;
  overflow: hidden;
}

/* Animated blobs */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
  animation: floatBlob 10s ease-in-out infinite;
}
.hero__blob--1 {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, #00c98d, transparent 65%);
  top: -120px;
  right: -80px;
  animation-duration: 10s;
}
.hero__blob--2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #0ea5e9, transparent 65%);
  bottom: -80px;
  left: 5%;
  animation-duration: 13s;
  animation-delay: -5s;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(24px, -28px) scale(1.06); }
  66%       { transform: translate(-16px, 18px) scale(0.96); }
}

/* Dot-grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, black 0%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 740px;
}

.hero__title {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent);
  animation: scrollDrop 2.2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  45%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  46%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─────────────────────────────────────────
   Sections
───────────────────────────────────────── */
.section { padding: 7rem 0; }

.section--dark { background: var(--bg-2); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.section-sub {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 440px;
  text-align: center;
}

/* ─────────────────────────────────────────
   Service Cards
───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.9rem;
  transition:
    border-color 0.3s ease,
    transform   0.3s ease,
    box-shadow  0.3s ease;
}
.card:hover {
  border-color: rgba(0, 201, 141, 0.28);
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(0, 201, 141, 0.07);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: rgba(0, 201, 141, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--primary);
  transition: background 0.3s ease;
}
.card:hover .card__icon { background: rgba(0, 201, 141, 0.16); }

.card__icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 0.97rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   Pillars
───────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3rem 2rem;
}

.pillar { display: flex; flex-direction: column; gap: 0.7rem; }

.pillar__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.pillar h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pillar p { color: var(--muted); font-size: 0.9rem; line-height: 1.75; }

/* ─────────────────────────────────────────
   CTA section
───────────────────────────────────────── */
.section--contact { background: var(--bg); }

.cta-box {
  background: linear-gradient(
    135deg,
    rgba(0, 201, 141, 0.05) 0%,
    rgba(14, 165, 233, 0.05) 100%
  );
  border: 1px solid rgba(0, 201, 141, 0.14);
  border-radius: 28px;
  padding: 5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 1.75rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */
@media (max-width: 600px) {
  .nav__actions { gap: 0.45rem; }
  .lang-switch__btn { padding: 0.3rem 0.5rem; }
  .hero { padding-top: 7rem; }
  .hero__actions  { flex-direction: column; align-items: flex-start; }
  .cta-box        { padding: 3rem 1.5rem; }
  .footer__inner  { flex-direction: column; align-items: center; text-align: center; }
}
