:root {
  --bg: #080a12;
  --panel: #0b0f1a;
  --text: #ecf0ff;
  --muted: #9aa3c7;
  --primary: #6c8cff;
  --primary-600: #5576ff;
  --accent: #8ef7ce;
  --ring: rgba(108, 140, 255, 0.35);
  --border: #141a2e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(108,140,255,0.12), transparent 60%),
              radial-gradient(800px 600px at 0% 10%, rgba(155,255,209,0.08), transparent 50%),
              var(--bg);
  line-height: 1.6;
}
/* Animated gradient overlay for subtle motion */
body::before {
  content: "";
  position: fixed;
  inset: -10% -10% -10% -10%;
  z-index: -1;
  pointer-events: none;
  background: conic-gradient(from 0deg at 70% 20%, rgba(108,140,255,0.15), rgba(155,255,209,0.12), rgba(108,140,255,0.15));
  filter: blur(60px) saturate(120%);
  animation: bg-rotate 48s linear infinite;
  opacity: 0.06;
}
@keyframes bg-rotate { to { transform: rotate(360deg); } }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: clamp(14px, 4vw, 28px);
  padding-right: clamp(14px, 4vw, 28px);
}
/* Extra breathing room for navbar brand near edges */
.site-header .container {
  padding-left: clamp(18px, 5vw, 36px);
  padding-right: clamp(18px, 5vw, 36px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav { position: relative; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0a0f20;
  font-weight: 800;
}
.brand-name {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle .bar { width: 20px; height: 2px; background: var(--text); transition: transform .25s ease, opacity .2s ease, width .25s ease; transform-origin: 50% 50%; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 22px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }
.nav-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav-list a:hover {
  background: rgba(108,140,255,0.12);
}

/* Hero */
.hero { padding: 72px 0 36px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; font-size: 12px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 8px 0 18px; }
.hero h1 .accent { display: block; color: var(--primary); font-weight: 800; }
.hero p { color: var(--muted); margin: 0 0 22px; }
.announce { margin: 6px 0 16px; color: var(--text); opacity: .9; font-weight: 600; letter-spacing: .2px; display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 10px; height: 20px; background: var(--text); display: inline-block; border-radius: 2px; animation: blink 1.1s steps(1, end) infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.hero-cta { display: flex; gap: 12px; }

/* Enhanced headline with animated gradient */
.headline {
  background: linear-gradient(90deg, #cfd8ff, var(--accent), #cfd8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive three-dots loader */
.dots-loader { display: inline-flex; gap: 8px; margin-top: 14px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .8; animation: bounce 1.2s infinite ease-in-out; }
.dot:nth-child(2) { animation-delay: .15s; background: var(--primary); }
.dot:nth-child(3) { animation-delay: .30s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0.6); opacity: .6; } 40% { transform: scale(1); opacity: 1; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn.primary { background: var(--primary); color: #0a0f20; border-color: transparent; box-shadow: var(--shadow); }
.btn.primary:hover { transform: translateY(-1px); background: var(--primary-600); }
.btn.ghost { background: rgba(255,255,255,0.04); color: var(--text); }
.btn.ghost:hover { background: rgba(255,255,255,0.08); }
.btn:hover { box-shadow: 0 8px 20px rgba(108,140,255,0.25); }

.hero-art { position: relative; min-height: 320px; }
#bg-particles { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.orb { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .8; }
.orb-a { width: 180px; height: 180px; background: radial-gradient(circle at 30% 30%, var(--primary), transparent 60%); top: 10%; right: 10%; animation: float 9s ease-in-out infinite; }
.orb-b { width: 260px; height: 260px; background: radial-gradient(circle at 70% 60%, var(--accent), transparent 60%); bottom: 0; left: 0; animation: float 11s ease-in-out infinite reverse; }
.grid { position: absolute; inset: 10% 8% 6% 8%; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(transparent, rgba(255,255,255,0.03)); box-shadow: var(--shadow); }
@keyframes float { 0%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} 100%{ transform: translateY(0);} }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(22px, 3.5vw, 34px); }
.section-head p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.feature .icon { font-size: 22px; }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px; text-align: center; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; overflow: hidden; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.45); border-color: rgba(108,140,255,0.4); }
.avatar { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-weight: 800; color: #0a0f20; background: linear-gradient(135deg, var(--primary), var(--accent)); font-size: 42px; overflow: hidden; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.name { margin: 0; }
.role { margin: 2px 0 8px; color: var(--muted); }
.blurb { margin: 0; color: var(--text); opacity: .9; }

/* Card socials on hover */
.socials { position: absolute; right: 10px; top: 50%; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translate(8px, -50%); transition: opacity .2s ease, transform .2s ease; }
.card:hover .socials { opacity: 1; transform: translate(0, -50%); }
.socials a { width: 34px; height: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.socials a:hover { background: rgba(255,255,255,0.12); border-color: rgba(108,140,255,0.5); }
.icon { width: 18px; height: 18px; display: block; }

.pill-list { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pill { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); }

.contact { display: grid; place-items: center; gap: 14px; }

/* Apply form */
.apply-form { width: min(680px, 100%); margin: 0 auto; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 14px; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); background: rgba(255,255,255,0.04); }
.form-actions { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 18px 0; background: rgba(11,16,32,0.6); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.back-to-top { color: var(--muted); text-decoration: none; }
.back-to-top:hover { color: var(--text); }

/* Floating action buttons */
.fab { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 60; }
.fab a { width: 46px; height: 46px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); transform: translateY(0); transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.fab a:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.45); border-color: rgba(108,140,255,0.45); background: rgba(255,255,255,0.06); }
.fab a .icon { width: 22px; height: 22px; display: block; }
.fab .pulse { position: absolute; inset: 0; border-radius: 999px; background: rgba(108,140,255,0.18); filter: blur(8px); animation: pulse 2.6s ease-in-out infinite; z-index: -1; }
@keyframes pulse { 0%, 100% { opacity: 0.35; transform: scale(1);} 50% { opacity: 0.6; transform: scale(1.08);} }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body::before { opacity: 0.05; filter: blur(50px); }
  .features { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: inline-flex; }
  .nav-list { position: absolute; right: 0; top: 56px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; visibility: hidden; transform-origin: 100% 0%; clip-path: circle(0% at 100% 0); transition: clip-path .36s cubic-bezier(.2,.8,.2,1), opacity .2s ease, visibility 0s linear .36s; }
  .nav-list.open { opacity: 1; pointer-events: auto; visibility: visible; clip-path: circle(150% at 100% 0); transition: clip-path .42s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
  .nav-list li { opacity: 0; transform: translateY(-6px); transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .26s cubic-bezier(.2,.8,.2,1); }
  .nav-list.open li { opacity: 1; transform: translateY(0); }
  .nav-list.open li:nth-child(1) { transition-delay: 40ms; }
  .nav-list.open li:nth-child(2) { transition-delay: 80ms; }
  .nav-list.open li:nth-child(3) { transition-delay: 120ms; }
  .nav-list.open li:nth-child(4) { transition-delay: 160ms; }
  .nav-list a { transition: background .15s ease, color .15s ease; }
  /* Smaller orbs on mobile for balance */
  .orb-a { width: 140px; height: 140px; }
  .orb-b { width: 200px; height: 200px; }
}
@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body::before { display: none; }
}


