/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Dark mode is the default */
:root {
  --clr-primary:     #4da6e8;
  --clr-primary-dk:  #3a90d1;
  --clr-accent:      #38bdf8;
  --clr-text:        #e2e8f0;
  --clr-muted:       #94a3b8;
  --clr-bg:          #0d1117;
  --clr-bg-alt:      #161c26;
  --clr-bg-card:     #1c2333;
  --clr-nav:         rgba(13,17,23,.88);
  --clr-border:      #2d3748;
  --clr-hero-from:   #050d1a;
  --clr-hero-to:     #0e2545;
  --clr-dl-from:     #050d1a;
  --clr-dl-to:       #0a1e38;
  --clr-footer:      #080e17;
  --shadow:          0 2px 16px rgba(0,0,0,.4);
  --radius:          0.6rem;
  --max-w:           1100px;
}

/* Light mode override (user toggle) */
[data-theme="light"] {
  --clr-primary:     #1d6fa4;
  --clr-primary-dk:  #155a87;
  --clr-accent:      #0ea5e9;
  --clr-text:        #1e293b;
  --clr-muted:       #64748b;
  --clr-bg:          #ffffff;
  --clr-bg-alt:      #f0f7ff;
  --clr-bg-card:     #ffffff;
  --clr-nav:         rgba(255,255,255,.92);
  --clr-border:      #cbd5e1;
  --clr-hero-from:   #0f2d4a;
  --clr-hero-to:     #1d6fa4;
  --clr-dl-from:     #0f2d4a;
  --clr-dl-to:       #1d6fa4;
  --clr-footer:      #0f2d4a;
  --shadow:          0 2px 12px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.65;
  font-size: 1rem;
  transition: background .2s, color .2s;
}

a { color: var(--clr-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { max-width: 68ch; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-nav);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-border);
  transition: background .2s;
}

.site-nav .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--clr-primary);
  letter-spacing: -.02em;
  text-decoration: none;
}
.nav-logo svg { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: var(--clr-text);
  font-weight: 500;
  font-size: .95rem;
  transition: color .15s;
}
.nav-links a:hover { color: var(--clr-primary); text-decoration: none; }

.lang-switch {
  display: flex;
  gap: .4rem;
}
.lang-switch a {
  font-size: .8rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border: 1.5px solid var(--clr-border);
  border-radius: 99px;
  color: var(--clr-muted);
  transition: all .15s;
  text-decoration: none;
}
.lang-switch a:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--clr-border);
  border-radius: 99px;
  cursor: pointer;
  padding: .22rem .5rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  color: var(--clr-muted);
  font-size: .8rem;
  font-weight: 600;
  transition: all .15s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.theme-toggle svg { width: 14px; height: 14px; }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: all .15s;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--clr-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--clr-primary-dk); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}
.btn-outline:hover { background: var(--clr-bg-alt); text-decoration: none; }

.btn-white {
  background: #fff;
  color: #1d6fa4;
}
.btn-white:hover { background: #e8f4fd; text-decoration: none; }

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.1); text-decoration: none; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--clr-hero-from) 0%, var(--clr-hero-to) 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: .75rem; }
.hero .subtitle {
  font-size: 1.15rem;
  opacity: .85;
  max-width: 54ch;
  margin: 0 auto;
}
.hero .btn-group { justify-content: center; }
.hero-graphic { margin: 3rem auto 0; max-width: 420px; }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--clr-bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header p {
  color: var(--clr-muted);
  margin: .5rem auto 0;
}

/* ── Feature cards ────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: .5rem;
  background: var(--clr-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--clr-primary);
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: .4rem; }
.card p  { color: var(--clr-muted); font-size: .95rem; max-width: none; }

/* ── Download section ─────────────────────────────────────── */
.download-section {
  background: linear-gradient(135deg, var(--clr-dl-from) 0%, var(--clr-dl-to) 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}
.download-section h2 { color: #fff; margin-bottom: .5rem; }
.download-section p  { color: rgba(255,255,255,.75); margin: 0 auto 1.5rem; }
.download-section .btn-group { justify-content: center; }

.platform-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
}
.platform-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .75rem 1.25rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s;
}
.platform-icon:hover { background: rgba(255,255,255,.16); text-decoration: none; color: #fff; }
.platform-icon svg { width: 28px; height: 28px; }

/* ── How it works / Steps ─────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step { text-align: center; }
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { margin-bottom: .35rem; }
.step p  { color: var(--clr-muted); font-size: .95rem; margin: 0 auto; }

/* ── Content pages ────────────────────────────────────────── */
.page-hero {
  background: var(--clr-bg-alt);
  border-bottom: 1px solid var(--clr-border);
  padding: 3rem 1.5rem 2.5rem;
}
.page-hero h1 { margin-bottom: .5rem; }
.page-hero .lead { color: var(--clr-muted); font-size: 1.1rem; }

.prose {
  padding: 3rem 0;
  max-width: 72ch;
}
.prose h2 { margin: 2rem 0 .75rem; color: var(--clr-text); }
.prose h3 { margin: 1.5rem 0 .5rem; color: var(--clr-text); }
.prose p  { margin-bottom: 1rem; max-width: none; }
.prose ul, .prose ol { margin: .75rem 0 1rem 1.5rem; }
.prose li { margin-bottom: .4rem; }
.prose a  { color: var(--clr-primary); }
.prose strong { font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--clr-border); margin: 2rem 0; }

/* ── Team grid ────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.team-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  background: var(--clr-bg-card);
}
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  margin: 0 auto .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.team-card h4 { font-size: 1rem; margin-bottom: .2rem; }
.team-card p  { color: var(--clr-muted); font-size: .85rem; max-width: none; }

/* ── Association highlights ──────────────────────────────── */
.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.highlight {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  flex: 1 1 260px;
}
.highlight-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: .4rem;
  background: var(--clr-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
}
.highlight-icon svg { width: 20px; height: 20px; }
.highlight h4 { font-size: .95rem; margin-bottom: .2rem; }
.highlight p  { font-size: .9rem; color: var(--clr-muted); max-width: none; }

/* ── Europe strip ─────────────────────────────────────────── */
.europe-strip {
  background: var(--clr-bg-alt);
  border-bottom: 1px solid var(--clr-border);
  padding: .6rem 0;
  text-align: center;
}
.europe-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--clr-muted);
}
.europe-badge svg { width: 16px; height: 16px; color: var(--clr-primary); flex-shrink: 0; }

/* ── Contact grid ─────────────────────────────────────────── */
.contact-note {
  color: var(--clr-muted);
  margin-bottom: 2rem;
  font-size: .95rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.contact-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin: .75rem 0 .4rem; }
.contact-card p  { color: var(--clr-muted); font-size: .9rem; max-width: none; }
.contact-card address { font-style: normal; color: var(--clr-muted); font-size: .9rem; line-height: 1.7; }
.contact-link {
  display: inline-block;
  color: var(--clr-primary);
  font-weight: 500;
  word-break: break-all;
}

/* ── News list ────────────────────────────────────────────── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.news-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}
.news-card h2 { font-size: 1.25rem; margin: .4rem 0 .6rem; }
.news-card h2 a { color: var(--clr-text); text-decoration: none; }
.news-card h2 a:hover { color: var(--clr-primary); }
.news-card > p { color: var(--clr-muted); font-size: .95rem; max-width: none; }
.news-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .2rem;
}
.news-meta time { font-size: .82rem; color: var(--clr-muted); }
.news-tag {
  font-size: .75rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 99px;
  background: var(--clr-bg-alt);
  color: var(--clr-primary);
  border: 1px solid var(--clr-border);
}
.news-read-more {
  display: inline-block;
  margin-top: .75rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--clr-primary);
}
.news-read-more:hover { text-decoration: underline; }
.news-empty { color: var(--clr-muted); }

/* ── Chat illustration ────────────────────────────────────── */
.chat-illustration { width: 100%; max-width: 460px; margin: 0 auto; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-footer);
  color: rgba(255,255,255,.6);
  padding: 2.5rem 0 1.5rem;
  font-size: .9rem;
  border-top: 1px solid var(--clr-border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.footer-brand .nav-logo { color: #fff; font-size: 1.2rem; margin-bottom: .5rem; }
.footer-brand p { color: rgba(255,255,255,.45); max-width: 28ch; font-size: .85rem; }

.footer-links h4 {
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { color: rgba(255,255,255,.5); font-size: .9rem; transition: color .15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: #fff; text-decoration: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { gap: .9rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .section { padding: 2.5rem 0; }
}
