:root {
  --black: #0a0a0d;
  --black-soft: #111116;
  --surface: #16161d;
  --white: #f5f5f7;
  --muted: #9a9aa8;
  --purple: #8b5cf6;
  --purple-bright: #a78bfa;
  --purple-deep: #6d28d9;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: "Space Grotesk", sans-serif; line-height: 1.1; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--purple-bright); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 13, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(10, 10, 13, 0.85); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-size: 1.18rem; font-weight: 700; letter-spacing: -.3px; }
.logo-mark { flex: 0 0 auto; display: block; }
.logo-text { color: var(--white); }
.logo-text b { color: var(--purple-bright); font-weight: 700; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: .95rem; color: var(--muted); font-weight: 500; transition: color .2s; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--purple-bright); transition: width .25s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, rgba(109, 40, 217, 0.12) 35%, transparent 70%);
  filter: blur(20px); pointer-events: none; z-index: 0;
  animation: float 12s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(30px); } }
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: .8rem;
  color: var(--purple-bright); font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; letter-spacing: -1.5px; margin-bottom: 24px; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 620px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  transition: transform .2s, box-shadow .25s, background .25s, border-color .25s;
}
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35); }
.btn-primary:hover { background: var(--purple-bright); transform: translateY(-2px); box-shadow: 0 12px 38px rgba(139, 92, 246, 0.5); }
.btn-ghost { border: 1px solid var(--border); color: var(--white); }
.btn-ghost:hover { border-color: var(--purple-bright); color: var(--purple-bright); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--black-soft); }
.section-label {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: .78rem;
  color: var(--purple-bright); font-weight: 600; margin-bottom: 14px;
}
.section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -1px; margin-bottom: 24px; max-width: 760px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin-bottom: 16px; }
.section p { color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.about-grid p { margin-bottom: 16px; }
.stats { display: grid; gap: 20px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px;
  transition: border-color .3s, transform .3s;
}
.stat:hover { border-color: rgba(139,92,246,.4); transform: translateY(-3px); }
.stat-num { font-family: "Space Grotesk", sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--white); }
.stat-plus { font-family: "Space Grotesk", sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--purple-bright); }
.stat-label { width: 100%; color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 30px; transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(400px circle at top right, rgba(139,92,246,.12), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,.4); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  font-size: 1.4rem; color: #fff; margin-bottom: 22px; position: relative; z-index: 1;
}
.card h3 { font-size: 1.35rem; margin-bottom: 12px; position: relative; z-index: 1; }
.card p { position: relative; z-index: 1; margin-bottom: 20px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.tags li {
  font-size: .78rem; padding: 5px 12px; border-radius: 999px;
  background: rgba(139,92,246,.12); color: var(--purple-bright); border: 1px solid rgba(139,92,246,.25);
}

/* ---------- Carousel ---------- */
.carousel { position: relative; margin: 44px auto 0; max-width: 460px; }
.carousel-viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -ms-overflow-style: none; scrollbar-width: none; border-radius: var(--radius);
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; }
.slide {
  flex: 0 0 100%; scroll-snap-align: center;
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); aspect-ratio: 3/4;
}
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.slide:hover img { transform: scale(1.06); }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  background: linear-gradient(to top, rgba(10,10,13,.92), transparent);
  display: flex; flex-direction: column;
}
.slide figcaption span { font-weight: 600; font-family: "Space Grotesk", sans-serif; }
.slide figcaption small { color: var(--purple-bright); font-size: .78rem; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; padding: 0;
  background: rgba(16,16,22,.85); border: 1px solid var(--border); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: background .2s, border-color .2s, transform .2s, opacity .2s;
}
.carousel-btn svg {
  width: 20px; height: 20px; display: block;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.carousel-btn:hover { background: var(--purple); border-color: var(--purple); }
.carousel-prev { left: -66px; }
.carousel-next { right: -66px; }
.carousel-btn:disabled { opacity: .3; cursor: default; }
.carousel-btn:disabled:hover { background: rgba(16,16,22,.85); border-color: var(--border); }

.carousel-dots { display: flex; justify-content: center; gap: 9px; margin-top: 26px; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.22); transition: background .2s, width .2s;
}
.carousel-dots button.active { background: var(--purple-bright); width: 26px; border-radius: 999px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-intro h2 { margin-bottom: 20px; }
.contact-meta { list-style: none; margin-top: 32px; border-top: 1px solid var(--border); }
.contact-meta li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.cm-label { color: var(--muted); font-size: .92rem; }
.cm-value { font-weight: 600; font-size: .95rem; text-align: right; }

.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; transition: transform .25s, border-color .25s, box-shadow .25s;
}
a.contact-card:hover {
  transform: translateY(-3px); border-color: rgba(139,92,246,.45);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.contact-card--static { cursor: default; }
.contact-card-icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
}
.contact-card-body { display: flex; flex-direction: column; min-width: 0; }
.contact-card-label { font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--purple-bright); font-weight: 600; }
.contact-card-value { font-weight: 600; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; }
.contact-card-arrow { margin-left: auto; color: var(--muted); font-size: 1.2rem; transition: transform .25s, color .25s; }
a.contact-card:hover .contact-card-arrow { color: var(--purple-bright); transform: translateX(4px); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { color: var(--muted); font-size: .88rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 40px;
  background: rgba(5,5,8,.92); backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; animation: fade .25s ease; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-close {
  position: absolute; top: 24px; right: 32px; font-size: 2.4rem; line-height: 1;
  background: none; border: 0; color: var(--white); cursor: pointer; transition: color .2s;
}
.lightbox-close:hover { color: var(--purple-bright); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--black-soft);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 6px 0; box-shadow: 0 22px 44px rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden; transform: translateY(-14px); pointer-events: none;
    transition: opacity .26s ease, transform .26s ease, visibility .26s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .nav-links a {
    padding: 15px 24px; width: 100%; font-size: 1.02rem; color: var(--white);
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .section { padding: 70px 0; }
}
@media (max-width: 600px) {
  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
