:root {
  --bg: #0b0824;
  --bg-soft: #171041;
  --surface: rgba(33, 25, 88, 0.74);
  --line: rgba(146, 122, 255, 0.35);
  --text: #f5f1ff;
  --muted: #cbc2ef;
  --primary: #7f5cf6;
  --primary-strong: #2d1c80;
  --accent: #ad95ff;
  --max-width: 1120px;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 9% 10%, rgba(122, 92, 244, 0.34), transparent 48%),
    radial-gradient(circle at 90% 16%, rgba(52, 31, 136, 0.38), transparent 40%),
    linear-gradient(165deg, #07051a 0%, #0d0a28 45%, #151041 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.orb-a {
  background: #8e74ff;
  top: -120px;
  right: -120px;
  animation: driftA 16s ease-in-out infinite;
}

.orb-b {
  background: #2d1c80;
  bottom: -160px;
  left: -150px;
  animation: driftB 20s ease-in-out infinite;
}

@keyframes driftA {
  0%,
  100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 30px); }
}

@keyframes driftB {
  0%,
  100% { transform: translate(0, 0); }
  50% { transform: translate(35px, -25px); }
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
  position: sticky;
  top: 0.7rem;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(244, 238, 255, 0.9), rgba(222, 210, 255, 0.62));
  border: 1px solid rgba(43, 26, 121, 0.2);
  border-radius: 18px;
  padding-left: 1rem;
  padding-right: 1rem;
  box-shadow: 0 10px 28px rgba(9, 5, 31, 0.28);
  z-index: 10;
}

.brand img {
  height: clamp(70px, 8vw, 94px);
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 1.1rem;
}

nav a {
  color: #2d1c80;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #120a34;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-grid > * {
  grid-column: 1 / -1;
}

.eyebrow {
  font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #baa7ff;
  margin-bottom: 0.8rem;
  font-weight: 700;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  max-width: 900px;
}

.lead {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.65;
  margin-top: 1.2rem;
}

.hero-grid .lead {
  max-width: none;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #9f83ff);
  color: #170f44;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 0.7rem;
  margin-top: 2rem;
  padding-left: 1rem;
  color: #f2ebff;
}

.hero-pillars li {
  line-height: 1.5;
}

.section {
  padding: 3.5rem 0;
}

.section h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.section > p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.section > p + p {
  margin-top: 0.85rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.9rem;
}

.span-all {
  grid-column: 1 / -1;
}

.section-grid p.span-all {
  max-width: none;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.cards {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.timeline {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.areas-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1rem;
}

.area-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.95rem;
  box-shadow: var(--shadow);
}

.area-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(173, 149, 255, 0.25);
  background: rgba(255, 255, 255, 0.02);
}

.area-card h3 {
  font-size: 1.06rem;
  margin-bottom: 0.4rem;
}

.area-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.institutional {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.process-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 1rem;
}

.process-card {
  position: relative;
  padding-top: 2.9rem;
}

.step {
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #d4c7ff;
  background: rgba(121, 94, 246, 0.18);
  border: 1px solid rgba(173, 149, 255, 0.35);
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
}

.process-card h3 {
  margin-top: 0.35rem;
}

.ai-focus {
  position: relative;
}

.ai-focus::before {
  content: "";
  position: absolute;
  inset: 1rem 0 auto 0;
  height: 140px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(127, 92, 246, 0.18), rgba(173, 149, 255, 0.06));
  z-index: -1;
}

.ai-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.ai-grid .card {
  min-width: 0;
  height: 100%;
}

.ai-grid .card h3,
.ai-grid .card p {
  overflow-wrap: normal;
  word-break: keep-all;
}

.contact {
  text-align: center;
  padding-bottom: 4.2rem;
}

.contact p {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.contact .btn {
  margin-top: 0.8rem;
}

.city {
  color: var(--muted);
  margin-top: 1.2rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 2.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .institutional {
    grid-template-columns: 1fr;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero-pillars {
    grid-template-columns: 1fr;
  }

  .areas-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .ai-grid {
    grid-template-columns: 1fr;
  }

  .area-card {
    grid-template-columns: 1fr;
  }

  .brand img {
    height: 72px;
  }
}
