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

:root {
  --bg: #080d16;
  --bg-2: #0d1525;
  --bg-3: #111e33;
  --text: #f0f4f8;
  --text-muted: #7a90a8;
  --text-dim: #3d5470;
  --accent: #2563eb;
  --accent-light: #60a5fa;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(96, 165, 250, 0.4);
  --font: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* NAV */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.4s ease;
}

#nav.scrolled {
  padding: 1rem 0;
  background: rgba(8, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links .nav-cta {
  color: var(--accent-light);
  font-weight: 500;
}

.nav-links .nav-cta:hover {
  color: #fff;
}

/* HERO */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

/* Glow blobs */
#hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle dot grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

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

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 2rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 100px;
  background: rgba(96, 165, 250, 0.05);
}

.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
}

#hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.75rem;
  max-width: 14ch;
}

.accent {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  letter-spacing: 0.01em;
}

.btn:hover {
  background: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--bg-3);
  color: var(--text);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}

/* DIVIDER */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* SECTIONS */
section {
  padding: 7rem 0;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 3.5rem;
  line-height: 1.15;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 520px;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 100px;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  font-weight: 300;
}

/* APPROACH */
.approach-content {
  max-width: 660px;
}

.approach-lead {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.approach-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  font-weight: 300;
}

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--border);
}

.timeline-meta {
  padding-top: 0.2rem;
}

.timeline-date {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.timeline-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.timeline-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 0.75rem;
}

.timeline-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-content ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  padding-left: 1.25rem;
  position: relative;
}

.timeline-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0.5;
}

@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ARTICLES */
#articles {
  text-align: left;
}

/* CONTACT */
#contact {
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.03));
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  transition: all 0.2s;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  width: fit-content;
}

.contact-link:hover {
  color: var(--accent-light);
  background: rgba(96, 165, 250, 0.06);
  border-color: rgba(96, 165, 250, 0.15);
}

.contact-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.contact-link:hover svg {
  opacity: 1;
}

/* FOOTER */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

footer p {
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 300;
}

/* FADE IN ANIMATION */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  #hero h1 {
    font-size: 2.75rem;
  }
}
