@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0b1220;
  --surface: #141b2d;
  --surface-alt: #10182a;
  --surface-soft: rgba(59, 130, 246, 0.12);
  --text: #f9fafb;
  --muted: #9ca3af;
  --line: rgba(148, 163, 184, 0.18);
  --accent: #3b82f6;
  --accent-strong: #60a5fa;
  --accent-deep: #2563eb;
  --ring: rgba(59, 130, 246, 0.32);
  --radius: 18px;
  --shadow-sm: 0 20px 50px rgba(3, 7, 18, 0.28);
  --shadow-md: 0 28px 68px rgba(3, 7, 18, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(980px 580px at 8% -12%, rgba(59, 130, 246, 0.26), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(96, 165, 250, 0.14), transparent 58%),
    linear-gradient(180deg, #0d1628 0%, #0b1220 44%, #09111d 100%);
  line-height: 1.6;
  color-scheme: dark;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: rgba(59, 130, 246, 0.28);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

button,
.button,
input[type='button'],
input[type='submit'],
input[type='reset'],
[role='button'] {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(20px, 3vw, 48px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand img {
  width: 56px;
  height: auto;
  display: block;
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-soft);
  border-color: rgba(59, 130, 246, 0.24);
}

.hero {
  padding: 96px 0 56px;
}

.hero-compact {
  padding-top: 72px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.hero-layout > :only-child {
  grid-column: 1 / -1;
}

.hero-copy {
  background:
    linear-gradient(180deg, rgba(20, 27, 45, 0.98) 0%, rgba(16, 24, 42, 0.96) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: calc(var(--radius) + 4px);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.eyebrow {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero h1 {
  margin: 0 0 14px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-panel {
  background:
    linear-gradient(180deg, rgba(20, 27, 45, 0.94) 0%, rgba(16, 24, 42, 0.94) 100%);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.hero-panel h2 {
  margin: 0 0 12px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 1.2rem;
}

.hero-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-panel li {
  color: var(--muted);
  position: relative;
  padding-left: 18px;
}

.hero-panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.12);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #f8fbff;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.26);
}

.button-primary:hover {
  background: var(--accent-deep);
  color: #f8fbff;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.button-secondary {
  background: rgba(59, 130, 246, 0.08);
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.24);
}

.button-secondary:hover {
  background: rgba(59, 130, 246, 0.16);
  color: var(--text);
  border-color: rgba(96, 165, 250, 0.34);
}

.email-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
}

.email-modal.show {
  display: flex;
}

.modal-card {
  width: min(560px, 100%);
  background: linear-gradient(180deg, rgba(20, 27, 45, 1) 0%, rgba(16, 24, 42, 1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: calc(var(--radius) + 6px);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.modal-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.15;
}

.modal-copy {
  margin: 0 0 14px;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
}

.email-capture-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.94rem;
}

.email-row {
  display: flex;
  gap: 10px;
}

.email-row input {
  flex: 1;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: rgba(11, 18, 32, 0.88);
}

.email-row input::placeholder {
  color: var(--muted);
}

.email-row input:focus {
  outline: 2px solid var(--ring);
  border-color: rgba(96, 165, 250, 0.38);
}

.email-note {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.section {
  padding: 40px 0 64px;
}

.section-muted {
  padding-top: 48px;
  background: rgba(20, 27, 45, 0.72);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 14px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-intro {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 70ch;
}

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

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: linear-gradient(180deg, rgba(20, 27, 45, 0.98) 0%, rgba(16, 24, 42, 0.98) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.decision-card h3 {
  margin: 0 0 6px;
}

.decision-card p {
  margin: 0 0 14px;
}

.decision-card .button {
  width: 100%;
}

.card h3 {
  margin: 0 0 8px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.publication-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.update-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.update-card-header .publication-meta {
  margin: 0;
}

.update-card-header a {
  color: var(--accent-strong);
  font-weight: 600;
}

.update-list {
  display: grid;
  gap: 12px;
}

.update-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.42);
  color: var(--text);
}

.update-item:hover {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(59, 130, 246, 0.08);
  color: var(--text);
}

.update-item-static:hover {
  border-color: var(--line);
  background: rgba(11, 18, 32, 0.42);
}

.update-title {
  font-weight: 700;
  line-height: 1.35;
}

.update-meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.publication-card a {
  color: inherit;
}

.publication-card a:hover {
  color: var(--accent-strong);
}

.publication-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

.publication-meta {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.24);
  background: rgba(59, 130, 246, 0.1);
  color: #dbeafe;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.muted {
  margin-top: 8px;
  font-size: 0.93rem;
  color: var(--muted);
}

.article-shell {
  max-width: 920px;
  margin: 0 auto;
}

.article-card {
  padding: clamp(24px, 4vw, 40px);
}

.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body h2 {
  margin: 32px 0 12px;
  font-size: clamp(1.42rem, 2.5vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.article-body h3 {
  margin: 22px 0 8px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 1rem;
}

.article-body p {
  margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-body li + li {
  margin-top: 10px;
}

.article-body strong {
  color: var(--text);
}

.contact-line {
  margin-top: 14px;
}

/* ── Stat Bar ─────────────────────────────────────────── */
.stat-bar {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(59, 130, 246, 0.18);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* ── Tool Cards ───────────────────────────────────────── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-card-header h3 {
  margin: 0;
}

.tool-best-for {
  font-size: 0.9rem;
  margin: 0;
  color: var(--muted);
}

.tool-best-for strong {
  color: var(--text);
}

.tool-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tool-card-footer .button {
  width: 100%;
  font-size: 0.9rem;
}

/* ── Article Callout ──────────────────────────────────── */
.callout {
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
}

.callout p {
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 0.97rem;
}

.callout strong {
  color: var(--accent-strong) !important;
}

.site-footer {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  background: rgba(8, 15, 29, 0.92);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
}

.footer-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  color: var(--accent-strong);
  font-weight: 600;
}

.footer-links a:hover {
  color: #93c5fd;
}

@media (max-width: 980px) {
  .hero-layout,
  .grid-3,
  .decision-grid,
  .publication-grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 64px;
  }
}

@media (max-width: 760px) {
  .nav-row {
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-copy,
  .hero-panel,
  .card {
    padding: 22px;
  }

  .email-row {
    flex-direction: column;
  }

  .brand {
    font-size: 1.24rem;
  }

  .brand img {
    width: 48px;
  }

  .footer-row {
    min-height: auto;
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
