:root {
  color-scheme: light;
  --bg: #edf4ff;
  --bg-soft: #f8fbff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(244, 249, 255, 0.92);
  --brand: #2563eb;
  --brand-deep: #0f172a;
  --brand-soft: #7dd3fc;
  --shadow: 0 28px 80px -42px rgba(37, 99, 235, 0.28);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  font-family: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.26), transparent 28%),
    radial-gradient(circle at right 20%, rgba(37, 99, 235, 0.14), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #edf4ff 52%, #f3f8ff 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
blockquote {
  margin: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--brand-deep);
  color: #fff;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.container,
.section-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 251, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand__logo {
  width: 132px;
  display: block;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  color: var(--ink);
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
}

.primary-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.primary-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--ink-soft);
  font-weight: 700;
}

.nav-link.active,
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand-deep);
}

.header-tools {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.locale-chip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.locale-chip strong,
.locale-chip span {
  display: block;
}

.locale-chip strong {
  font-size: 0.9rem;
}

.locale-chip span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.locale-chip__flag {
  font-size: 1.35rem;
}

.lang-selector {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.lang-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
}

.lang-button[aria-current="true"] {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

.hidden {
  display: none !important;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero__aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.18), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(14, 165, 233, 0.14), transparent 22%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.hero__text,
.hero__panel,
.paper-card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero__text {
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.eyebrow,
.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand);
}

.hero__title,
.section-title,
.hero__panel h2 {
  font-family: "Fraunces", serif;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero__title {
  margin-top: 0.8rem;
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  max-width: 12ch;
}

.hero__subtitle,
.section-subtitle,
.paper-card p,
.compare-table,
.panel-points,
.footer__inner,
.contact-card {
  color: var(--ink-soft);
}

.hero__subtitle {
  margin-top: 1rem;
  font-size: 1.08rem;
  max-width: 52rem;
}

.hero__meta {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.meta-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(124, 45, 18, 0.08);
}

.meta-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.meta-card strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink);
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  font-weight: 800;
}

.cta-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero__panel {
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.hero__panel h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.hero__panel p {
  margin-top: 0.9rem;
}

.panel-points {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.panel-points li + li {
  margin-top: 0.6rem;
}

.section {
  padding: 4.5rem 0;
  scroll-margin-top: 100px;
}

.section--tinted {
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.55), rgba(255, 248, 240, 0.2));
}

.section-heading {
  max-width: 60rem;
}

.section-subtitle {
  margin-top: 0.9rem;
  font-size: 1.06rem;
}

.narrative-grid,
.manifest-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.paper-card {
  border-radius: var(--radius-md);
  padding: 1.6rem;
}

.paper-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  line-height: 1.1;
}

.paper-card p + p {
  margin-top: 0.9rem;
}

.paper-card--large {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 255, 0.92)),
    var(--panel);
}

.points-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.points-item {
  border-radius: var(--radius-md);
  padding: 1.1rem 1.15rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(37, 99, 235, 0.08);
  color: var(--ink-soft);
}

.founder-quote {
  margin-top: 2rem;
  padding: 1.6rem 1.8rem;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(37, 99, 235, 0.08);
}

.founder-quote p {
  font-family: "Fraunces", serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.3;
}

.founder-quote footer {
  margin-top: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.compare-table-wrapper {
  margin-top: 1rem;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(72, 44, 31, 0.08);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.paper-card--full {
  margin-top: 1rem;
}

.contact-card {
  display: grid;
  gap: 1rem;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.2rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer__brand {
  color: var(--ink);
  font-weight: 800;
}

@media (min-width: 720px) {
  .hero__meta,
  .points-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
    align-items: start;
  }

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

  .contact-card,
  .footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    display: grid;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .primary-nav {
    display: flex !important;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
  }

  .primary-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .header-tools {
    flex-direction: row;
    align-items: center;
  }
}
