/* ===========================================================
   Ryberg — shared stylesheet
   Palette: white bg, near-black #0F1722, Ryberg blue #1FB6E1,
   accent teal/cyan. Minimalist, science-led, generous whitespace.
   =========================================================== */

:root {
  --ink: #0F1722;
  --ink-soft: #44505f;
  --ink-faint: #6b7785;
  --blue: #1FB6E1;
  --blue-dark: #0e8db5;
  --teal: #16d3c4;
  --line: #e6ebf0;
  --bg: #ffffff;
  --bg-alt: #f5f9fc;
  --bg-ink: #0F1722;
  --radius: 14px;
  --maxw: 1120px;
  --shadow: 0 10px 40px rgba(15, 23, 34, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-soft); }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--bg-ink); color: #eaf2f7; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #aebccb; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.section--ink .eyebrow { color: var(--teal); }

.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); text-decoration: none; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-dark); text-decoration: none; }
.section--ink .btn--ghost { border-color: rgba(255,255,255,0.25); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.18rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .sun { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.97rem; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-dark); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  border: none; background: transparent; cursor: pointer;
  padding: 6px 12px; font-size: 0.82rem; font-weight: 600; color: var(--ink-faint);
}
.lang-toggle button.active { background: var(--blue); color: #fff; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-triplet { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 0.82rem; font-weight: 600; color: var(--blue-dark);
  background: #e7f7fc; border-radius: 999px; padding: 6px 14px;
}
.hero-visual {
  border-radius: var(--radius);
  background: linear-gradient(150deg, #0F1722 0%, #14324a 60%, #0e8db5 130%);
  aspect-ratio: 4/5; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ico { width: 40px; height: 40px; color: var(--blue); margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.97rem; }

.section--ink .card { background: #16222f; border-color: #24323f; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; text-align: center; }
.stat .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--blue); letter-spacing: -0.03em; }
.stat .lbl { font-size: 0.95rem; color: var(--ink-soft); margin-top: 4px; }
.section--ink .stat .num { color: var(--teal); }

/* ---------- Section heading block ---------- */
.sec-head { max-width: 64ch; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }
tr:last-child td { border-bottom: none; }
td { color: var(--ink-soft); }

/* ---------- Lists ---------- */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 800;
  background: #e7f7fc; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.78rem;
}
.section--ink .checklist li::before { background: #16323b; color: var(--teal); }

/* ---------- Quote ---------- */
.quote {
  border-left: 3px solid var(--blue);
  padding: 6px 0 6px 22px; font-size: 1.1rem; color: var(--ink);
  font-style: italic; max-width: 62ch;
}
.quote cite { display: block; font-style: normal; font-size: 0.88rem; color: var(--ink-faint); margin-top: 10px; }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,182,225,0.15);
}
.form-note { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .hero-cta { justify-content: center; margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-ink); color: #aebccb; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer a { color: #aebccb; display: block; margin-bottom: 8px; font-size: 0.92rem; }
.site-footer a:hover { color: var(--teal); text-decoration: none; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #8b99a8; font-size: 0.92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid #24323f; padding-top: 22px; font-size: 0.85rem; color: #6b7785; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- i18n helper ---------- */
[data-lang-nl] { display: none; }
html[lang="nl"] [data-lang-en] { display: none; }
html[lang="nl"] [data-lang-nl] { display: inline; }
html[lang="nl"] [data-lang-nl].block { display: block; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16/10; order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* ---------- Real logo ---------- */
.brand .sun { width: auto; height: 34px; flex: none; }
.site-footer .brand .sun { filter: brightness(0) invert(1); height: 36px; }

/* ---------- Video hero ---------- */
.hero--video { position: relative; padding: 0; min-height: 86vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero--video .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero--video .hero-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(15,23,34,0.92) 0%, rgba(15,23,34,0.66) 42%, rgba(15,23,34,0.28) 100%); }
.hero--video .container { position: relative; z-index: 2; }
.hero--video .hero-copy { max-width: 700px; }
.hero--video h1 { color: #fff; }
.hero--video .lead { color: #dce6ee; }
.hero--video .eyebrow { color: var(--teal); }
.hero--video .chip { background: rgba(255,255,255,0.14); color: #fff; }
@media (max-width: 560px) {
  .hero--video { min-height: 78vh; }
}

/* ---------- Product robot image ---------- */
.hero-visual--robot { background: radial-gradient(120% 90% at 50% 30%, #14324a 0%, #0F1722 70%); }
.hero-visual--robot .robot-img {
  height: 94%; width: auto; max-width: 90%; object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.45));
}

/* ---------- Brochure download band ---------- */
.brochure { display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; background: var(--bg); }
.brochure .doc-ico { width: 46px; height: 56px; flex: none; border-radius: 6px;
  background: linear-gradient(160deg, var(--blue), var(--blue-dark)); position: relative; }
.brochure .doc-ico::after { content: "PDF"; position: absolute; left: 0; right: 0; bottom: 8px;
  text-align: center; color: #fff; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; }
.brochure .b-text { flex: 1; min-width: 220px; }
.brochure .b-text h3 { margin-bottom: 4px; }
.brochure .b-text p { font-size: 0.96rem; margin: 0; }
