:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --turq: #2dd4bf;
  --turq-dark: #0f766e;
  --turq-soft: #e6faf7;
  --ink: #0b1f3a;
  --muted: #475569;
  --line: #d6dee8;
  --white: #ffffff;
  --alt: #f4f7fa;
  --radius: 10px;
  --max: 68rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

a { color: var(--turq-dark); text-underline-offset: .18em; }
a:hover { color: var(--navy-2); }

:focus-visible {
  outline: 3px solid var(--turq);
  outline-offset: 3px;
  border-radius: 3px;
}
.site-header :focus-visible, .hero :focus-visible, .page-head :focus-visible,
.site-footer :focus-visible, .root-page :focus-visible { outline-color: var(--turq); }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: .75rem; top: -4rem; z-index: 100;
  background: var(--turq); color: var(--navy); padding: .6rem 1rem;
  font-weight: 700; border-radius: 0 0 var(--radius) var(--radius); text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .75rem; padding-bottom: .75rem; }
.wordmark { color: var(--white); font-weight: 800; font-size: 1.35rem; letter-spacing: .14em; text-decoration: none; }
.wordmark:hover { color: var(--turq); }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.site-nav a { color: var(--white); text-decoration: none; padding: .35rem .1rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--turq); color: var(--white); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--turq); font-weight: 600; }
.site-nav .lang-switch { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: .2rem .8rem; font-size: .95rem; }
.site-nav .lang-switch:hover { border-color: var(--turq); }

/* Mobile menu: collapse only when JS has added the toggle button */
.menu-toggle { display: none; }
.js .menu-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius); padding: .45rem .9rem; font: inherit; cursor: pointer;
}
.js .menu-toggle:hover { border-color: var(--turq); }
@media (max-width: 47.99rem) {
  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: .5rem 0 .75rem; }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; width: 100%; gap: .1rem; }
  .js .site-nav li a { display: block; padding: .6rem 0; }
}
@media (min-width: 48rem) {
  .js .menu-toggle { display: none; }
}

/* Hero & page heads */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white); padding: clamp(3rem, 9vw, 6.5rem) 0;
}
.hero-mark { color: var(--turq); font-weight: 800; letter-spacing: .3em; font-size: .95rem; margin-bottom: 1rem; }
.hero h1 { max-width: 20ch; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 40rem; color: rgba(255,255,255,.92); }
.lead-dark { font-size: 1.25rem; color: var(--ink); }
.page-head { background: var(--navy); color: var(--white); padding: clamp(2.2rem, 6vw, 4rem) 0; }
.page-head h1 { margin-bottom: .4em; }
.page-head .lead { margin-bottom: 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; margin-bottom: 0; }
.btn {
  display: inline-block; padding: .7rem 1.4rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; border: 2px solid var(--turq);
}
.btn-primary { background: var(--turq); color: var(--navy); }
.btn-primary:hover { background: #5eead4; color: var(--navy); }
.btn-secondary { background: transparent; color: var(--white); }
.btn-secondary:hover { background: rgba(45,212,191,.15); color: var(--white); }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--alt); }
.section-lead { color: var(--muted); max-width: 40rem; }

.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 40rem) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--turq);
  border-radius: var(--radius); padding: 1.4rem 1.4rem .6rem;
  display: flex; flex-direction: column;
}
.card h2, .card h3 { margin-bottom: .2em; }
.card-sub { color: var(--muted); font-size: .98rem; margin-bottom: .8em; }
.card-note { color: var(--muted); font-size: .98rem; }
.card-status { margin-top: auto; color: var(--turq-dark); font-weight: 600; }
.badge {
  align-self: flex-start; background: var(--turq-soft); color: var(--navy);
  border: 1px solid var(--turq); border-radius: 999px; padding: .1rem .75rem;
  font-size: .85rem; font-weight: 700; margin-bottom: .8rem;
}
.text-link { font-weight: 600; }

.feature-list { list-style: none; margin-bottom: 1em; }
.feature-list li { position: relative; padding-left: 1.4rem; margin-bottom: .3rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: .6rem; height: .6rem;
  background: var(--turq); border-radius: 2px;
}

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.88); padding: 2.5rem 0 1.25rem; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; align-items: start; } }
.footer-brand { color: var(--white); font-weight: 800; letter-spacing: .14em; margin-bottom: .2rem; }
.footer-desc { margin: 0; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--turq); }
.footer-mail { margin: 0; overflow-wrap: anywhere; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.2); margin-top: 1.75rem; padding-top: 1rem; font-size: .92rem; }
.footer-copy p { margin: 0; }
@media (min-width: 48rem) { .footer-mail { text-align: right; } }

/* Root and 404 */
.root-page { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); min-height: 100vh; }
.root-main { min-height: 100vh; display: flex; align-items: center; }
.root-box { padding-top: 2rem; padding-bottom: 2rem; }
.root-title { font-size: clamp(1.6rem, 5vw, 2.5rem); }
.root-sub { color: rgba(255,255,255,.88); margin-bottom: .4rem; }
.root-page a { color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .card, .badge, .btn { border: 1px solid CanvasText; }
}
