/* ========== CSS RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Light theme (default) */
  --bg-primary: #FBFAF7;
  --bg-secondary: #F3F2EE;
  --bg-card: #FFFFFF;
  --text-primary: #2A2A30;
  --text-secondary: #6A6A72;
  --text-muted: #9A9AA2;
  --accent: #2D6B8F;
  --accent-hover: #245A7A;
  --accent-light: rgba(45, 107, 143, 0.08);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.10);
  --gradient-soft: radial-gradient(ellipse at 75% 30%, rgba(45, 107, 143, 0.06) 0%, transparent 60%);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --max-width: 1140px;
}

[data-theme="dark"] {
  --bg-primary: #1A1A20;
  --bg-secondary: #22222A;
  --bg-card: #2A2A32;
  --text-primary: #F0EFEC;
  --text-secondary: #B0B0B8;
  --text-muted: #78787E;
  --accent: #6BA8C9;
  --accent-hover: #8CBFDA;
  --accent-light: rgba(107, 168, 201, 0.10);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.20);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.35);
  --gradient-soft: radial-gradient(ellipse at 75% 30%, rgba(107, 168, 201, 0.08) 0%, transparent 60%);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }

/* ========== NAVIGATION ========== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
[data-theme="dark"] .nav-bar { background: rgba(26, 26, 32, 0.85); }

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--text-primary); }

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* ========== HERO ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 32px 100px;
  background: var(--bg-primary);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-headline {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-large { padding: 18px 36px; font-size: 16px; }

/* ========== SECTIONS ========== */
.section {
  padding: 100px 32px;
}
.section:nth-of-type(even) { background: var(--bg-secondary); }

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  line-height: 1.15;
}

/* ========== STORY ========== */
.story-content {
  max-width: 720px;
}

.story-content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ========== CARDS GRID ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== TIMELINE ========== */
.timeline {
  max-width: 760px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.timeline-item:first-child { border-top: none; }

.timeline-year {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.timeline-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.timeline-body p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== INSIGHTS ========== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}
.insight-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.insight-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.insight-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.insight-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.insight-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

/* ========== CONNECT ========== */
.connect-section {
  text-align: left;
}

.connect-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
}

.connect-body {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.connect-socials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-link {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 16px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ========== FOOTER ========== */
.footer {
  padding: 48px 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-primary);
}

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

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.footer-links a:hover { color: var(--accent); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav-links { display: none; }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image { order: -1; }
  .hero-image img { max-width: 280px; }

  .cards-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .connect-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section { padding: 64px 24px; }
  .hero { padding: 48px 24px 64px; }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-headline { font-size: 30px; }
  .section-heading { font-size: 26px; }
}
