:root {
  --bg: #07090f;
  --text: #eef2ff;
  --muted: #8b95b3;
  --c1: #6366f1;
  --c2: #22d3ee;
  --c3: #a855f7;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Animated aurora background */
.aurora {
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 40% at 20% 25%, rgba(99, 102, 241, 0.45), transparent 60%),
    radial-gradient(35% 35% at 80% 20%, rgba(34, 211, 238, 0.35), transparent 60%),
    radial-gradient(45% 45% at 65% 80%, rgba(168, 85, 247, 0.40), transparent 60%);
  filter: blur(60px) saturate(140%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.12); }
}

/* Subtle film grain / vignette */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 120% at 50% 0%, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.2rem, 5vw, 4rem);
}
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo span {
  background: linear-gradient(90deg, var(--c2), var(--c1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-link {
  color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.cta-link:hover { color: var(--text); }

main { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 2rem); }

/* Hero */
.hero {
  text-align: center;
  padding: clamp(3.5rem, 12vh, 8rem) 0 clamp(2.5rem, 8vh, 5rem);
  animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(6px);
}
h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.grad {
  background: linear-gradient(100deg, var(--c2), var(--c1) 45%, var(--c3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin: 1.4rem auto 0;
  max-width: 32ch;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 0.8rem; justify-content: center; margin-top: 2.2rem; flex-wrap: wrap; }
.btn {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s;
  border: 1px solid var(--border);
}
.btn.primary {
  color: #fff;
  background: linear-gradient(100deg, var(--c1), var(--c3));
  box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.6);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(168, 85, 247, 0.7); }
.btn.ghost { color: var(--text); background: var(--card); backdrop-filter: blur(8px); }
.btn.ghost:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.25); }

/* Services grid */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0 3rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem 1.5rem;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s, background 0.25s;
  animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: var(--d, 0s);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}
.card .ic {
  font-size: 1.8rem;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(34,211,238,0.18));
  border: 1px solid var(--border);
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.9rem; font-weight: 300; margin-top: 0.35rem; }

/* Pillars */
.pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 4rem);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.pillars div { display: flex; flex-direction: column; }
.pillars b {
  font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--c2), var(--c1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pillars span { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; margin-top: 0.3rem; }

/* Contact */
.contact { text-align: center; padding: clamp(3rem, 10vh, 6rem) 0 3rem; }
.contact h2 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.6rem; }

/* Footer */
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  max-width: 1100px; margin: 0 auto;
  padding: 2rem clamp(1.2rem, 5vw, 2rem);
  color: var(--muted); font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 760px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .services { grid-template-columns: 1fr 1fr; }
  .card { padding: 1.4rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
  .hero, .card { animation: none; }
}
