:root {
  color-scheme: light dark;
  --page-bg: #eef3fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #0f7ccb;
  --accent-strong: #0b63a0;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1220px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #09111d;
    --surface: rgba(9, 18, 31, 0.72);
    --surface-strong: rgba(10, 18, 31, 0.92);
    --surface-border: rgba(148, 163, 184, 0.16);
    --text: #ecf4ff;
    --text-muted: #b6c2d3;
    --accent: #4fb4ff;
    --accent-strong: #74c3ff;
    --shadow: 0 26px 70px rgba(2, 8, 23, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-stack);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(15, 124, 203, 0.16), transparent 36%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.12), transparent 30%),
    var(--page-bg);
}

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

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

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.site-header,
.site-footer,
.hero,
.section,
.detail-card {
  backdrop-filter: blur(22px);
}

.site-header,
.site-footer,
.hero,
.section {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.site-header,
.site-footer {
  border-radius: var(--radius-xl);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  position: sticky;
  top: 1rem;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-icon {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand-platform {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface-strong);
  padding: 0.45rem 0.7rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.language-picker select {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  background: var(--surface-strong);
  border-color: var(--surface-border);
  color: var(--text);
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  line-height: 0;
  transition: transform 140ms ease;
}

.store-badge-link:hover,
.store-badge-link:focus-visible {
  transform: translateY(-1px);
}

.store-badge-link img {
  width: 156px;
  height: 40px;
}

.hero,
.section {
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  margin-bottom: 1rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.35rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

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

.hero h1,
.section h2,
.detail-card h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero h1.hero-title-tight {
  font-size: clamp(1.8rem, 3.85vw, 3.45rem);
  letter-spacing: -0.05em;
}

.hero h1.hero-title-french {
  font-size: clamp(1.66rem, 3.4vw, 3.02rem);
}

.hero-intro {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  color: var(--text-muted);
  font-size: 1.07rem;
  line-height: 1.65;
  max-width: 58ch;
}

.hero-intro p,
.section-copy,
.detail-card p {
  margin: 0;
}

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

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface-strong);
  padding: 0.58rem 0.8rem;
  color: var(--text);
  font-size: 0.95rem;
}

.hero-highlights li::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #22c55e);
  flex: none;
}

.hero-visual {
  min-width: 0;
}

.showcase-stage {
  margin: 0;
  padding: 0.7rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--surface-border);
}

.showcase-stage img {
  border-radius: 18px;
  width: 100%;
  height: auto;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.showcase-stage figcaption {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.showcase-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.showcase-thumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 4.25rem;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  padding: 0.85rem 0.9rem;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease;
}

.showcase-thumb:hover,
.showcase-thumb:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 124, 203, 0.34);
}

.showcase-thumb[aria-selected="true"] {
  border-color: rgba(15, 124, 203, 0.54);
  background: color-mix(in srgb, var(--surface-strong) 72%, var(--accent) 28%);
  box-shadow: 0 14px 26px rgba(15, 124, 203, 0.14);
}

.showcase-thumb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 999px;
  background: rgba(15, 124, 203, 0.14);
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 760;
}

.showcase-thumb-label {
  display: block;
  font-size: 0.94rem;
  font-weight: 650;
  text-align: left;
  line-height: 1.2;
}

.section-heading {
  max-width: 62ch;
  margin-bottom: 1rem;
}

.section h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  margin-bottom: 0.7rem;
}

.section-copy {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 1rem;
}

.capability-grid,
.detail-grid {
  display: grid;
  gap: 1rem;
}

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

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

.capability-card,
.detail-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: var(--surface-strong);
  padding: 1.1rem;
}

.capability-card h3,
.detail-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.content-stack {
  display: grid;
  gap: 0.8rem;
  color: var(--text-muted);
  line-height: 1.62;
}

.content-stack .content-label {
  margin: 0.15rem 0 -0.25rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-stack ul {
  margin: 0;
  padding-left: 1.1rem;
}

.content-stack li + li {
  margin-top: 0.38rem;
}

.detail-card .content-stack a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.detail-card .content-stack a:hover,
.detail-card .content-stack a:focus-visible {
  color: var(--accent);
}

.resources-card .resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text);
  font-weight: 600;
}

.footer-links a {
  color: inherit;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-header {
    position: static;
    top: auto;
  }

  .site-header,
  .site-footer,
  .hero,
  .section {
    border-radius: 22px;
  }

  .site-header,
  .site-footer {
    padding: 0.95rem;
  }

  .site-header,
  .site-footer,
  .detail-grid,
  .capability-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: stretch;
  }

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

@media (max-width: 520px) {
  .page-shell {
    padding-top: 0.6rem;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-icon {
    width: 60px;
    height: 60px;
  }

  .showcase-thumbs {
    grid-template-columns: 1fr;
  }

  .hero,
  .section {
    padding: 1rem;
  }

  .button,
  .language-picker {
    width: 100%;
    justify-content: center;
  }
}
