:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #eef4fb;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --line: #dbe2ea;
  --line-soft: #e5edf5;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --footer-bg: #0f172a;
  --footer-text: #e2e8f0;
  --max: 1180px;
  --radius: 24px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li {
  margin: 0 0 0.5rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(219, 226, 234, 0.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo {
  width: 200px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.brand span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.95rem;
  color: var(--muted-2);
  line-height: 1.2;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.97rem;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  padding: 5.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(240px, 0.56fr);
  gap: 2.4rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
}

.hero-title {
  margin: 0 0 1.2rem;
  font-size: clamp(2.8rem, 4.8vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.hero-subtitle {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.lead {
  max-width: 720px;
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.95rem;
  flex-wrap: wrap;
  margin-top: 1.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.button-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.45rem 1.45rem 1.05rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
  max-width: 330px;
  margin-left: auto;
}

.hero-panel h2 {
  margin: 0 0 0.9rem;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.focus-list li {
  padding: 0.82rem 0;
  border-top: 1px solid var(--line-soft);
}

.focus-list li:first-child {
  border-top: 0;
  padding-top: 0.18rem;
}

.focus-list strong {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text);
}

.focus-list span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.48;
  color: var(--muted);
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(238, 244, 251, 0.75), rgba(238, 244, 251, 0.45));
}

.section-accent {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.03));
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-head h2,
.section h2 {
  letter-spacing: -0.02em;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.callout h3 {
  margin-bottom: 0.75rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  min-height: 100%;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.text-link {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 700;
}

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

.publication-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.publication-item h3 {
  margin-bottom: 0.5rem;
}

.publication-item h3 a {
  text-decoration: none;
}

.publication-item h3 a:hover {
  text-decoration: underline;
}

.tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
}

.site-footer strong,
.site-footer h2 {
  color: #fff;
}

.site-footer h2 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.92);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-meta {
  margin: 0;
  font-size: 0.94rem;
  opacity: 0.86;
}

.hidden {
  display: none !important;
}

@media (max-width: 1200px) {
  .brand-logo {
    width: 176px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.42fr) minmax(240px, 0.62fr);
    gap: 2rem;
  }

  .hero-title {
    white-space: normal;
  }

  .hero-panel {
    max-width: 320px;
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow-card);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .hero-grid,
  .two-col,
  .footer-grid,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-panel {
    max-width: none;
    margin-left: 0;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    gap: 0.7rem;
  }

  .brand-logo {
    width: 148px;
  }

  .brand strong {
    white-space: normal;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.2rem, var(--max));
  }

  .nav-wrap {
    min-height: 74px;
  }

  .hero-title {
    font-size: 2.5rem;
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-panel {
    padding: 1.5rem 1.25rem 1.15rem;
    border-radius: 22px;
  }

  .hero-panel h2 {
    font-size: 1.35rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .card,
  .callout,
  .publication-item {
    padding: 1.2rem;
  }

  .button,
  .button-secondary {
    width: 100%;
  }
}
