@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg0: #08090e;
  --bg1: #0c0e17;
  --surface: #111320;
  --surface2: #161929;

  --stroke: rgba(99, 110, 255, 0.14);
  --stroke2: rgba(99, 110, 255, 0.30);
  --stroke3: rgba(255, 255, 255, 0.06);

  --text: #eef0ff;
  --text2: #9499c8;
  --text3: #565b8a;

  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dim: rgba(99, 102, 241, 0.15);
  --accent-glow: rgba(99, 102, 241, 0.20);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 0 0 rgba(255,255,255,.04) inset, 0 12px 40px rgba(0,0,0,.40);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-noise {
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.018;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(99,102,241,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99,102,241,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 55% at 20% 10%, black, transparent 70%);
}
.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
}
.bg-orb.b1 { width: 650px; height: 550px; left: -200px; top: -80px; background: #1c1e4a; opacity: .55; }
.bg-orb.b2 { width: 480px; height: 480px; right: -150px; top: 300px; background: #14163a; opacity: .40; }

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 120px 0 80px;
}

.section { margin-top: 88px; }
.section-head { margin-bottom: 30px; }
.section-kicker {
  font-family: 'Syne', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 7px;
  opacity: .75;
}
.section-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.25px;
  color: var(--text);
}
.section-subtitle {
  margin: 7px 0 0;
  color: var(--text2);
  font-size: 13.5px;
  font-weight: 300;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(24px) saturate(1.4);
  background: rgba(8, 9, 14, .80);
  border-bottom: 1px solid var(--stroke3);
}
.nav-inner {
  width: min(1080px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  position: relative;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.brand-ring {
  position: absolute; inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, .30);
}
.brand-core {
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(99, 102, 241, .50);
  animation: corePulse 3.5s ease-in-out infinite;
}
.brand-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: -.15px;
  color: var(--text);
}
.brand-subtitle { font-size: 11px; color: var(--text3); margin-top: 1px; font-weight: 300; }

.nav-actions { display: flex; gap: 4px; align-items: center; }
.nav-link {
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: color .18s, background .18s;
  letter-spacing: .01em;
}
.nav-link:hover { color: var(--text); background: rgba(99,102,241,.08); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--stroke2);
  background: rgba(17, 19, 32, .60);
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .17s ease, background .17s ease, border-color .17s ease, box-shadow .17s ease, color .17s ease;
  user-select: none;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, .55);
  background: rgba(17, 19, 32, .85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}
.btn:active { transform: translateY(0) scale(.98); }

.card-media {
  position: relative;
  overflow: hidden;
}

.card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.card-thumb.hidden {
  opacity: 0;
  pointer-events: none;
}

.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-shade,
.card-actions {
  z-index: 2;
}

.btn-primary {
  background: var(--accent-dim);
  border-color: rgba(99, 102, 241, .55);
  color: var(--accent-light);
}
.btn-primary:hover {
  background: rgba(99, 102, 241, .22);
  border-color: rgba(129, 140, 248, .75);
  color: #c7d2fe;
  box-shadow: 0 6px 24px rgba(99, 102, 241, .18);
}
.btn-ghost {
  background: transparent;
  border-color: var(--stroke3);
  color: var(--text2);
}
.btn-ghost:hover { color: var(--text); border-color: var(--stroke); }
.btn-small { padding: 7px 12px; font-size: 12px; border-radius: 7px; gap: 5px; }

.hero { margin-top: 20px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text2);
  letter-spacing: .015em;
  margin-bottom: 24px;
  padding: 6px 13px;
  border: 1px solid var(--stroke3);
  border-radius: 999px;
  background: rgba(17, 19, 32, .45);
}
.dot-live {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
  animation: corePulse 2.2s ease-in-out infinite;
}

.hero-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-size: clamp(38px, 5.8vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.04em;
  color: var(--text);
}
.hero-accent {
  background: linear-gradient(120deg, #a5b4fc 0%, var(--accent) 55%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  margin: 20px 0 0;
  color: var(--text2);
  font-size: 15px;
  font-weight: 300;
  max-width: 52ch;
  line-height: 1.70;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px solid var(--stroke3);
  border-radius: var(--radius);
  background: rgba(17, 19, 32, .40);
  width: fit-content;
}
.stat { text-align: center; }
.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}
.stat-label {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
  white-space: nowrap;
}
.stat-div {
  width: 1px;
  height: 28px;
  background: var(--stroke3);
}

.hero-cta {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.preview-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  margin-top: 52px;
  transform: translateY(10px);
  opacity: 0;
  animation: riseIn .65s ease forwards .05s;
}
.preview-video {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transform: scale(1.015);
  transition: transform .5s ease;
}
.preview-card:hover .preview-video { transform: scale(1.04); }
.preview-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,14,.0) 45%, rgba(8,9,14,.55));
  pointer-events: none;
}
.preview-label {
  position: absolute;
  top: 14px; left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 9, 14, .70);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
}
.label-dot {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--accent-light);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .preview-video { height: 220px; }
}

.card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke3);
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0,0,0,.30);
  transform: translateY(6px);
  opacity: 0;
  animation: riseIn .5s ease forwards;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.card:hover {
  border-color: var(--stroke);
  box-shadow: 0 12px 36px rgba(0,0,0,.40), 0 0 0 1px rgba(99,102,241,.10);
  transform: translateY(-2px);
}
.card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3) { animation-delay: .09s; }
.card:nth-child(4) { animation-delay: .13s; }
.card:nth-child(5) { animation-delay: .17s; }
.card:nth-child(6) { animation-delay: .21s; }
.card:nth-child(7) { animation-delay: .25s; }
.card:nth-child(8) { animation-delay: .29s; }
.card:nth-child(9) { animation-delay: .33s; }

.card-media {
  position: relative;
  height: 195px;
  background: var(--surface2);
}
.card video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform .4s ease;
}
.card:hover video { transform: scale(1.08); }
.card-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.0) 40%, rgba(8,9,14,.70));
  opacity: .80;
  transition: opacity .22s;
  pointer-events: none;
}
.card:hover .card-shade { opacity: 1; }
.card-actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .20s ease, transform .20s ease;
}
.card:hover .card-actions { opacity: 1; transform: translateY(0); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke3);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover {
  border-color: var(--stroke);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.service-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light);
  margin-bottom: 14px;
}
.service-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}
.service-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.65;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--stroke3);
  background: rgba(17, 19, 32, .35);
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: transform .17s, border-color .17s, background .17s, color .17s;
}
.link-pill:hover {
  transform: translateY(-2px);
  border-color: var(--stroke);
  background: rgba(17, 19, 32, .70);
  color: var(--text);
}

.about-card {
  border-radius: 18px;
  border: 1px solid var(--stroke3);
  background: var(--surface);
  padding: 28px 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}
@media (max-width: 560px) { .about-card { flex-direction: column; gap: 18px; } }

.about-avatar {
  position: relative;
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-light);
  background: var(--accent-dim);
  border-radius: 14px;
  border: 1px solid rgba(99,102,241,.25);
}
.avatar-ring {
  position: absolute; inset: -4px;
  border-radius: 18px;
  border: 1px dashed rgba(99,102,241,.18);
}
.about-body { flex: 1; }
.about-name {
  margin: 0 0 10px;
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.about-body p {
  margin: 0 0 20px;
  color: var(--text2);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.72;
  max-width: 62ch;
}
.about-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.about-email {
  font-size: 13px;
  color: var(--text3);
  font-weight: 300;
  letter-spacing: .01em;
}

.modal {
  position: fixed; inset: 0;
  display: none; z-index: 50;
}
.modal[aria-hidden="false"] { display: block; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 5, 10, .82);
  backdrop-filter: blur(16px);
}
.modal-panel {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.97);
  width: min(980px, 92vw);
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(8, 9, 14, .92);
  box-shadow: 0 40px 120px rgba(0,0,0,.70);
  overflow: hidden;
  animation: popIn .20s ease forwards;
}
.modal-video {
  width: 100%; height: auto;
  display: block;
  background: #000;
}
.modal-close {
  position: absolute;
  right: 12px; top: 12px;
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1px solid var(--stroke3);
  background: rgba(17, 19, 32, .75);
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .17s, border-color .17s, color .17s;
}
.modal-close:hover {
  transform: translateY(-1px);
  border-color: var(--stroke);
  color: var(--text);
}

.footer {
  border-top: 1px solid var(--stroke3);
  background: rgba(8, 9, 14, .60);
  margin-top: 88px;
}
.footer-inner {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text3);
  font-size: 12px;
  font-weight: 300;
}
.footer-brand {
  display: flex; align-items: center; gap: 7px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
}
.footer-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .65;
}
.footer-mail {
  color: var(--text3);
  text-decoration: none;
  font-size: 12px;
  transition: color .17s;
}
.footer-mail:hover { color: var(--text2); }

@keyframes riseIn { to { transform: translateY(0); opacity: 1; } }
@keyframes popIn { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes corePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
