/* -------------------------------------------------------
   GLOBAL THEME VARIABLES
------------------------------------------------------- */
:root {
  --bg: #060712;
  --bg-elevated: #0b0d1a;
  --bg-soft: #0f111f;
  --card: #0f111f;
  --border-subtle: #1f2235;
  --text: #f9fafb;
  --text-muted: #9ca3af;

  --accent: #4f8dfd;
  --accent-soft: rgba(79, 141, 253, 0.13);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(0,0,0,0.55);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 0, #111827 0%, #020617 65%);
  line-height: 1.6;
  overflow-x: hidden;
}

/* -------------------------------------------------------
   LAYOUT
------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
}

/* -------------------------------------------------------
   HEADER (STICKY DESKTOP NAV)
------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.glass {
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(3, 7, 18, 0.96), rgba(3, 7, 18, 0.8));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  gap: 14px;
}

.nav-link {
  font-size: 13px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: .2s;
}

.nav-link:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
}

.nav-link.active {
  background: rgba(79,141,253,0.22);
  color: var(--text);
}

/* Mobile hides desktop nav */
@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }
}

/* -------------------------------------------------------
   MOBILE FLOATING PILL NAV
------------------------------------------------------- */
.mobile-pill-nav {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  transform: translateX(-50%);
  z-index: 100;

  display: flex;
  gap: 26px;
  padding: 10px 18px;

  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 40px;
  border: 1px solid rgba(148,163,184,0.18);

  box-shadow: 0 8px 35px rgba(0,0,0,0.45);
}

.pill-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  transition: .2s;
}

.pill-btn.active,
.pill-btn:hover {
  color: var(--text);
}

.nav-icon {
  width: 22px;
  height: 22px;
  stroke: var(--text);
  fill: none;
}

/* Hide mobile nav on desktop */
@media (min-width: 860px) {
  .mobile-pill-nav {
    display: none;
  }
}

/* -------------------------------------------------------
   HERO
------------------------------------------------------- */
.hero {
  position: relative;
  padding: 90px 0 40px;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(circle at top left, rgba(79,141,253,0.35), transparent 60%),
    radial-gradient(circle at top right, rgba(56,189,248,0.18), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-muted);
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 12px 0;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 560px;
}

.hero-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.hero-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* -------------------------------------------------------
   BUTTONS & TAGS
------------------------------------------------------- */
.btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  transition: .2s;
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, #4f8dfd, #38bdf8);
  color: white;
  box-shadow: 0 12px 30px rgba(15, 118, 255, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(15,23,42,0.7);
  color: var(--text);
  border: 1px solid rgba(148,163,184,0.25);
}

.pill {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  font-size: 11px;
}

/* -------------------------------------------------------
   SECTIONS
------------------------------------------------------- */
.section {
  padding: 60px 0;
}

.section-alt {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), #020617);
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.section-intro {
  font-size: 14px;
  color: var(--text-muted);
}

/* -------------------------------------------------------
   PANELS & CARDS
------------------------------------------------------- */
.panel {
  padding: 18px 20px;
  background: radial-gradient(circle at top left, rgba(148,163,184,0.1), rgba(15,23,42,0.95));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
}

/* -------------------------------------------------------
   TIMELINE (DESKTOP + MOBILE HYBRID)
------------------------------------------------------- */
.timeline {
  position: relative;
  border-left: 2px solid rgba(148,163,184,0.3);
  margin-left: 14px;
  padding-left: 26px;
}

.timeline-item {
  margin-bottom: 28px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 35% 35%, #fff, #4f8dfd);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(79,141,253,0.25);
}

.timeline-toggle {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.timeline-header-row {
  display: flex;
  justify-content: space-between;
}

.timeline-role {
  font-size: 15px;
  font-weight: 600;
}

.timeline-company {
  font-size: 13px;
  color: var(--text-muted);
}

.timeline-summary {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Details hidden unless expanded */
.timeline-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .3s ease;
  margin-top: 8px;
  padding-left: 4px;
}

.timeline-item.expanded .timeline-details {
  max-height: 300px;
  opacity: 1;
}

/* Desktop: hover expands */
@media (min-width: 860px) {
  .timeline-item:hover .timeline-details {
    max-height: 300px;
    opacity: 1;
  }
}

/* -------------------------------------------------------
   REVEAL ANIMATIONS
------------------------------------------------------- */

.js-enabled .reveal {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------
   FOOTER
------------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 30px 0;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid rgba(148,163,184,0.15);
}

/* -------------------------------------------------------
   MOBILE RESPONSIVE
------------------------------------------------------- */
@media (max-width: 640px) {
  .section {
    padding: 50px 0;
  }

  .timeline {
    margin-left: 10px;
    padding-left: 20px;
  }

  .timeline-header-row {
    flex-direction: column;
  }

  .pill-btn span {
    font-size: 9px;
  }
}
