:root {
  --blue: #1e88e5;
  --blue-dark: #0b3d66;
  --blue-light: #d6e9ff;
  --teal: #26a69a;
  --teal-light: #d3f1ec;
  --amber: #ffb300;
  --amber-light: #ffe7b8;
  --bg: #f6fafd;
  --surface: #ffffff;
  --surface-2: #edf3f8;
  --text: #16222e;
  --muted: #5a6b7b;
  --outline: #d7e2ec;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(16, 34, 50, 0.08);
  --shadow-sm: 0 2px 8px rgba(16, 34, 50, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.lang-de .lang-en,
body.lang-de .lang-fr,
body.lang-de .lang-es { display: none !important; }
body.lang-en .lang-de,
body.lang-en .lang-fr,
body.lang-en .lang-es { display: none !important; }
body.lang-fr .lang-de,
body.lang-fr .lang-en,
body.lang-fr .lang-es { display: none !important; }
body.lang-es .lang-de,
body.lang-es .lang-en,
body.lang-es .lang-fr { display: none !important; }

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--outline);
}

.brand { display: flex; align-items: center; gap: 12px; }

.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
}

.brand-title { font-weight: 700; font-size: 17px; line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--muted); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--outline);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.lang-toggle button.active {
  background: var(--blue);
  color: #fff;
}

/* ---------- Nav ---------- */
.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--outline);
  position: sticky;
  top: 67px;
  z-index: 40;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.site-nav a:hover { background: var(--surface-2); color: var(--blue-dark); }

/* ---------- Layout ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 0 24px 80px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 40px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.lead { font-size: 17px; color: var(--muted); margin: 0 0 24px; max-width: 60ch; }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--blue-dark);
}

.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Audience cards ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 8px 0 40px;
}

.audience-card {
  text-decoration: none;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.audience-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.audience-icon { font-size: 28px; margin-bottom: 10px; }
.audience-card h2 { margin: 0 0 6px; font-size: 18px; }
.audience-card p { margin: 0; color: var(--muted); font-size: 14px; }

.audience-card.users { border-top: 4px solid var(--blue); }
.audience-card.providers { border-top: 4px solid var(--teal); }
.audience-card.suppliers { border-top: 4px solid var(--amber); }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }

.section-head { max-width: 720px; margin-bottom: 32px; }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-users .section-tag { background: var(--blue-light); color: var(--blue-dark); }
.section-providers .section-tag { background: var(--teal-light); color: #064e47; }
.section-suppliers .section-tag { background: var(--amber-light); color: #4a3800; }

.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- Features ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--outline);
}

.feature.reverse .feature-text { order: 2; }
.feature.reverse .shot { order: 1; }

.feature-text h3 { font-size: 21px; margin: 0 0 10px; }
.feature-text p { color: var(--muted); margin: 0 0 16px; }

.usecase {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  padding: 14px 16px;
}

.section-providers .usecase { border-left-color: var(--teal); }
.section-suppliers .usecase { border-left-color: var(--amber); }

.usecase-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.usecase p { margin: 0; color: var(--text); font-size: 14px; }

/* ---------- Screenshots ---------- */
.shot { margin: 0; text-align: center; }

.phone {
  width: 260px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 34px;
  background: #101418;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(16, 34, 50, 0.22);
}

.phone-screen {
  border-radius: 26px;
  background: var(--bg);
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.mock-logo { letter-spacing: 0.16em; font-size: 12px; }
.mock-menu { font-size: 16px; }
.mock-back { font-size: 16px; }
.mock-titlebar { font-weight: 700; }

.mock-content { padding: 12px; display: flex; flex-direction: column; gap: 8px; }

.mock-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  font-size: 12px;
}

.mock-emoji { font-size: 18px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); }
.mock-text { flex: 1; }
.mock-title { font-weight: 700; font-size: 12px; }
.mock-sub { color: var(--muted); font-size: 10.5px; }
.mock-chev { color: var(--blue); font-size: 18px; font-weight: 700; }

.mock-card.primary { background: var(--blue-light); }
.mock-card.secondary { background: var(--teal-light); }
.mock-card.tertiary { background: var(--amber-light); }

.mock-image {
  border-radius: 14px;
  background: repeating-linear-gradient(45deg, #dfeaf4, #dfeaf4 10px, #eef5fb 10px, #eef5fb 20px);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  padding: 26px 10px;
}

.mock-search {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--muted);
}

.mock-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}

.chip.active { background: var(--blue); color: #fff; }

.mock-row { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-radius: 12px; padding: 9px 11px; font-size: 11.5px; box-shadow: var(--shadow-sm); }
.mock-row strong { font-size: 12.5px; }
.mock-price { font-weight: 800; color: var(--blue-dark); }
.mock-price.best { color: #1b7a3a; }
.mock-status { font-weight: 700; font-size: 10.5px; }
.mock-status.free { color: #1b7a3a; }
.mock-status.busy { color: #c62828; }

.mock-compass {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 6px auto;
  border: 2px solid var(--outline);
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle at center, #fff 0%, #eef5fb 100%);
}

.mock-compass span { position: absolute; font-size: 10px; font-weight: 800; color: var(--muted); }
.mock-compass .n { top: 6px; }
.mock-compass .s { bottom: 6px; }
.mock-compass .e { right: 8px; }
.mock-compass .w { left: 8px; }
.mock-compass .arrow { color: var(--blue); font-size: 30px; }

.shot figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Code block ---------- */
.code {
  background: #101418;
  color: #d6e9ff;
  border-radius: 14px;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  text-align: left;
  white-space: pre;
}

/* ---------- Use cases ---------- */
.section-usecases .section-tag { background: var(--surface-2); color: var(--blue-dark); }

.uc-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.uc-group {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.uc-group h3 {
  margin: 0 0 14px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.uc-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.uc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uc-list li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--surface-2);
}

.uc-list li:first-child { border-top: 0; padding-top: 0; }

.uc-id {
  font-size: 11px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.uc-body strong { font-size: 13.5px; display: block; margin-bottom: 2px; }
.uc-body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.uc-body code {
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

.uc-note {
  margin: 26px 0 0;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: 14px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .uc-groups { grid-template-columns: 1fr; }
}

/* ---------- Global banner (core feature) ---------- */
.global-banner {
  background: linear-gradient(135deg, #0b3d66 0%, #1e88e5 55%, #26a69a 100%);
  color: #fff;
  border-radius: 26px;
  padding: 40px 36px;
  margin: 8px 0 40px;
  box-shadow: 0 18px 50px rgba(11, 61, 102, 0.28);
  position: relative;
  overflow: hidden;
}

.global-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.12), transparent 46%);
  pointer-events: none;
}

.global-banner-head { position: relative; z-index: 1; max-width: 840px; }

.global-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  margin-bottom: 16px;
}

.global-banner h2 {
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.global-lead {
  margin: 0;
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 72ch;
}

.global-points {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.global-point {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 16px 14px;
  backdrop-filter: blur(4px);
}

.global-point-icon { font-size: 24px; margin-bottom: 8px; }

.global-point-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.global-point-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

@media (max-width: 1000px) {
  .global-points { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .global-points { grid-template-columns: 1fr; }
  .global-banner { padding: 30px 22px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-dark);
  color: #cfe3f5;
  padding: 40px 24px;
  text-align: center;
  font-size: 13.5px;
}

.site-footer a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-text { order: 0; }
  .feature.reverse .shot { order: 0; }
  .site-nav { top: 61px; }
}
