/* ---------- Base styles ---------- */

:root {
  --bg: #03045e;
  --bg-elevated: #023e8a;
  --fg: #caf0f8;
  --muted: #90e0ef;
  --accent: #00b4d8;
  --accent-soft: rgba(0, 180, 216, 0.14);
  --border-subtle: rgba(144, 224, 239, 0.25);

  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.5);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;

  --transition-fast: 0.18s ease-out;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Containers & layout */

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header & nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(3, 4, 94, 0.96),
    rgba(3, 4, 94, 0.85),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
}

.logo span {
  color: var(--accent);
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.25rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--fg);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  padding: 3.5rem 0 2rem;
}

.hero-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .hero-inner {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
    align-items: center;
  }
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 36rem;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Hero card */

.hero-card {
  background: radial-gradient(
      circle at 0 0,
      rgba(0, 180, 216, 0.22),
      transparent 55%
    ),
    var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(0, 180, 216, 0.35);
  box-shadow: var(--shadow-soft);
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero-card ul {
  list-style: none;
}

.hero-card li {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 3.5rem 0;
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.section-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--muted);
}

.section-center {
  text-align: center;
  align-items: center;
}

/* Layout helpers */

.split {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .split {
    flex-direction: row;
  }

  .split > * {
    flex: 1;
  }
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tags */

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background-color: rgba(255, 255, 255, 0.02);
}

/* ---------- Cards & timeline ---------- */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background-color: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(0, 180, 216, 0.4);
  background-color: #024b9f;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.card-header h3 {
  font-size: 1rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.card-body {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.card-list {
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.card-list li + li {
  margin-top: 0.25rem;
}

.card-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, #00b4d8, #48cae4);
  color: #011627;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.btn.ghost {
  background-color: transparent;
  border-color: var(--border-subtle);
  color: var(--fg);
}

.btn.ghost:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background-color: rgba(139, 92, 246, 0.08);
}

/* ---------- Contact section ---------- */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.social-links a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.social-links a:hover {
  color: var(--fg);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0 2rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 64px;
    right: 1.5rem;
    flex-direction: column;
    background-color: var(--bg-elevated);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
