/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:     #6366f1;
  --primary-dark:#4f46e5;
  --accent:      #06b6d4;
  --dark:        #0f0f1a;
  --dark-2:      #16162a;
  --dark-3:      #1e1e35;
  --surface:     #23233d;
  --border:      rgba(255,255,255,.08);
  --text:        #e2e2f0;
  --text-muted:  #9090b0;
  --radius:      14px;
  --radius-sm:   8px;
  --transition:  .25s ease;
  --shadow:      0 8px 32px rgba(0,0,0,.35);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ── Typography helpers ───────────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-accent { color: var(--primary); font-weight: 700; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(99,102,241,.5);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--primary);
}
.btn--sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(15,15,26,.85);
  backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}
.nav__logo {
  font-size: 1.25rem;
  font-weight: 600;
  margin-right: auto;
}
.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__links a {
  font-size: .9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--text); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(15,15,26,.95);
}
.nav__mobile.open { display: flex; }
.nav__mobile a { color: var(--text-muted); font-size: .95rem; }
.nav__mobile a:hover { color: var(--text); }

@media (max-width: 768px) {
  .nav__links, .nav__inner > .btn { display: none; }
  .nav__burger { display: flex; }
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .25;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: var(--primary);
}
.hero__glow--2 {
  width: 500px; height: 500px;
  top: -100px; right: -150px;
  background: var(--accent);
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 760px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  color: #a5b4fc;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
}
.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.hero__sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(120deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat__unit { font-size: 1.2rem; font-weight: 700; color: var(--primary); line-height: 1; margin-left: 1px; }
.stat__label { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }
.stat { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0; }
.stat__label { width: 100%; }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
}
.hero__scroll svg { width: 18px; height: 18px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── SECTIONS ─────────────────────────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.section__tag {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.section__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── SERVICES ─────────────────────────────────────────────────────────────── */
.services { background: var(--dark-2); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.services__grid .card:nth-child(3) { grid-column: 1; }
.services__grid .card:nth-child(4) { grid-column: 2; }
.services__grid .card:nth-child(5) { grid-column: 1 / 3; max-width: 480px; margin: 0 auto; }

.card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card:hover {
  border-color: rgba(99,102,241,.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.card--featured {
  border-color: rgba(99,102,241,.2);
  background: linear-gradient(135deg, var(--dark-3) 60%, rgba(99,102,241,.07));
}
.card__icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(6,182,212,.15));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.card__icon svg { width: 28px; height: 28px; }
.card__icon--sm { width: 48px; height: 48px; }
.card__icon--sm svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; font-weight: 700; }
.card p { color: var(--text-muted); font-size: .95rem; line-height: 1.65; }
.card__list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .25rem;
}
.card__list li {
  font-size: .875rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.card__link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  transition: color var(--transition);
}
.card__link:hover { color: var(--accent); }

/* ── ABOUT ────────────────────────────────────────────────────────────────── */
.about { background: var(--dark); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about__visual {
  position: relative;
  height: 380px;
}
.about__card {
  position: absolute;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all var(--transition);
}
.about__card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,.4); }

.about__card--main {
  width: 220px; height: 220px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  gap: .75rem;
  background: linear-gradient(135deg, var(--dark-3), rgba(99,102,241,.1));
  font-weight: 600;
  font-size: 1rem;
}
.about__card--main small { color: var(--text-muted); font-size: .8rem; font-weight: 400; }
.about__icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__icon svg { width: 36px; height: 36px; }

.about__card--sm {
  width: 140px; height: 100px;
  gap: .25rem;
  font-size: .8rem;
  color: var(--text-muted);
  padding: .75rem;
}
.about__card-num {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.about__card--sm1 { top: 2rem; left: 0; }
.about__card--sm2 { bottom: 2rem; right: 0; }

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about__text p { color: var(--text-muted); line-height: 1.75; font-size: .975rem; }
.about__pillars {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: .75rem;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .875rem 1rem;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pillar__icon { font-size: 1.25rem; }
.pillar div { display: flex; flex-direction: column; }
.pillar strong { font-size: .9rem; }
.pillar span { font-size: .8rem; color: var(--text-muted); }

/* ── CONTACT ──────────────────────────────────────────────────────────────── */
.contact { background: var(--dark-2); }
.contact__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form__group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form__group input,
.form__group select,
.form__group textarea {
  background: var(--dark-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  padding: .7rem 1rem;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--text-muted); opacity: .6; }
.form__group select option { background: var(--dark-2); }
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus { border-color: var(--primary); }
.form__group textarea { resize: vertical; min-height: 110px; }

.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.form__captcha input[type="number"] { max-width: 140px; }

.form__feedback {
  font-size: .875rem;
  text-align: center;
  min-height: 1.2em;
}
.form__feedback.success { color: #4ade80; }
.form__feedback.error   { color: #f87171; }

.contact__info-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact__info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.contact__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact__item svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: .15rem;
}
.contact__item div {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.contact__item strong { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.contact__item a { font-size: .95rem; transition: color var(--transition); }
.contact__item a:hover { color: var(--accent); }
.contact__item span { font-size: .95rem; }
.contact__note {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1rem;
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--text-muted);
}
.contact__note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__brand {
  font-size: 1.1rem;
  font-weight: 600;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}
.footer__brand p { font-size: .8rem; color: var(--text-muted); font-weight: 400; margin-top: .15rem; }
.footer__nav {
  display: flex;
  gap: 1.5rem;
  font-size: .875rem;
  color: var(--text-muted);
}
.footer__nav a:hover { color: var(--text); }
.footer__copy { font-size: .8rem; color: var(--text-muted); }

/* ── Reveal animations ────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__grid .card:nth-child(3),
  .services__grid .card:nth-child(4),
  .services__grid .card:nth-child(5) { grid-column: 1; max-width: 100%; margin: 0; }

  .about__inner { grid-template-columns: 1fr; gap: 3rem; }
  .about__visual { height: 260px; }
  .about__card--main { width: 180px; height: 180px; }
  .about__card--sm { width: 120px; height: 88px; }

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

@media (max-width: 600px) {
  .hero__stats { gap: 1.5rem; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer__brand { margin-right: 0; }
}
