:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --text: #f5f5f5;
  --text-dim: #b8b8b8;
  --text-mute: #8a8a8a;
  --accent: #f3b138;
  --accent-soft: #ffd07a;
  --border: #2a2a2a;
  --nav-bg: rgba(10,10,10,0.85);
  --maxw: 1100px;
  --radius: 14px;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --text: #1a1a1a;
  --text-dim: #4a4a4a;
  --text-mute: #6a6a6a;
  --accent: #c98410;
  --accent-soft: #a86d08;
  --border: #e4e4e4;
  --nav-bg: rgba(250,250,250,0.85);
}

body { transition: background-color .2s, color .2s; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Avenir Next', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, color .15s, transform .15s;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(15deg);
}

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switcher { position: relative; }
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.lang-current:hover { border-color: var(--accent); color: var(--accent); }
.lang-current .chevron { font-size: 9px; opacity: 0.7; margin-left: 1px; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  list-style: none;
  margin: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  z-index: 100;
}
.lang-menu li { margin: 0; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--text);
  font-size: 14px;
}
.lang-menu a:hover { background: var(--bg); color: var(--text); }
.lang-menu .lang-code {
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 22px;
}
.lang-menu li.active a,
.lang-menu li.active a:hover { color: var(--accent); }
.lang-menu li.active a .lang-code { color: var(--accent); }
.flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.flag-gb { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><clipPath id='s'><path d='M0,0v30h60V0z'/></clipPath><path d='M0,0v30h60V0z' fill='%23012169'/><path d='M0,0L60,30M60,0L0,30' clip-path='url(%23s)' stroke='%23fff' stroke-width='6'/><path d='M0,0L60,30M60,0L0,30' clip-path='url(%23s)' stroke='%23C8102E' stroke-width='4'/><path d='M30,0v30M0,15h60' stroke='%23fff' stroke-width='10'/><path d='M30,0v30M0,15h60' stroke='%23C8102E' stroke-width='6'/></svg>"); }
.flag-fr { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='1' height='2' fill='%23002654'/><rect x='1' width='1' height='2' fill='%23fff'/><rect x='2' width='1' height='2' fill='%23CE1126'/></svg>"); }
.flag-es { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='3' height='2' fill='%23AA151B'/><rect y='0.5' width='3' height='1' fill='%23F1BF00'/></svg>"); }
.flag-pt { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'><rect width='2' height='3' fill='%23006600'/><rect x='2' width='3' height='3' fill='%23FF0000'/></svg>"); }
.flag-de { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'><rect width='5' height='1' fill='%23000'/><rect y='1' width='5' height='1' fill='%23DD0000'/><rect y='2' width='5' height='1' fill='%23FFCE00'/></svg>"); }
.flag-it { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='1' height='2' fill='%23009246'/><rect x='1' width='1' height='2' fill='%23fff'/><rect x='2' width='1' height='2' fill='%23CE2B37'/></svg>"); }
.flag-nl { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'><rect width='9' height='2' fill='%23AE1C28'/><rect y='2' width='9' height='2' fill='%23fff'/><rect y='4' width='9' height='2' fill='%2321468B'/></svg>"); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand img {
  display: block;
  height: 26px;
  width: auto;
  border-radius: 3px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--accent); }

/* ---------- HERO ---------- */
.hero {
  padding: 110px 0 90px;
  text-align: center;
}
.hero-logo {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto 36px;
  border-radius: 6px;
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 18px;
  color: var(--accent);
}
.hero .tagline {
  color: var(--accent);
  font-size: 17px;
  letter-spacing: 0.06em;
}

/* ---------- SECTIONS ---------- */
section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.section-eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
p { color: var(--text-dim); margin-bottom: 14px; }

/* ---------- ABOUT ---------- */
.about { text-align: center; }
.about p { max-width: 700px; margin-left: auto; margin-right: auto; }
.about .sub { color: var(--text); font-size: 18px; margin-bottom: 24px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
  margin: 36px auto 32px;
  max-width: 900px;
}
.pillar h3 {
  color: var(--accent);
  font-size: 17px;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.pillar p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 0;
  max-width: none;
}

/* ---------- PRODUCT CARDS ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.product-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.product-card .pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.product-card h3 { font-size: 24px; }
.product-card p { margin-bottom: 12px; }
.product-card .audience {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 22px;
}
.product-card .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.product-card .cta::after { content: '→'; transition: transform .2s; }
.product-card:hover .cta::after { transform: translateX(4px); }

/* ---------- CONTACT ---------- */
.contact { text-align: center; }
.contact p { max-width: 600px; margin-left: auto; margin-right: auto; }
.contact .email {
  display: inline-block;
  margin-top: 18px;
  font-size: 18px;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav-links { gap: 16px; }
  .products { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 18px; }
  section { padding: 60px 0; }
  .hero { padding: 70px 0 60px; }
}
