/* ============================================================
   Zypernkompass — Design System
   Apple-glass aesthetic: warm ivory base, soft aegean mesh,
   translucent glass surfaces, generous type scale.
   ============================================================ */

:root {
  --ink: #0b1c2c;
  --ink-2: #47586b;
  --ink-3: #7a8899;
  --paper: #f7f5f0;
  --blue: #0e5fd8;
  --blue-deep: #0a2540;
  --gold: #b98f3e;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.65);
  --hairline: rgba(11, 28, 44, 0.08);
  --shadow: 0 8px 32px rgba(10, 37, 64, 0.08), 0 1px 2px rgba(10, 37, 64, 0.04);
  --shadow-lift: 0 16px 48px rgba(10, 37, 64, 0.12), 0 2px 4px rgba(10, 37, 64, 0.05);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --maxw-text: 760px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

/* ---- ambient mesh background ---- */
.mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.mesh::before, .mesh::after, .mesh .blob {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.mesh::before {
  width: 55vw; height: 55vw;
  top: -22vw; right: -12vw;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.55), transparent 65%);
}
.mesh::after {
  width: 45vw; height: 45vw;
  bottom: -18vw; left: -14vw;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.35), transparent 65%);
}
.mesh .blob {
  width: 30vw; height: 30vw;
  top: 40vh; left: 55vw;
  background: radial-gradient(circle, rgba(233, 200, 130, 0.35), transparent 65%);
}

/* ---- navigation ---- */
.nav {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: min(var(--maxw), calc(100% - 32px));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 22px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.nav .brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav .brand span { color: var(--blue); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(11, 28, 44, 0.06); color: var(--ink); }
.nav-cta {
  padding: 10px 20px !important;
  background: var(--blue-deep);
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.25);
}
.nav-cta:hover { background: #0e335c !important; }
.nav-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
  padding: 6px 12px;
}

/* ---- layout primitives ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-text { max-width: var(--maxw-text); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }

/* ---- hero ---- */
.hero { padding: 170px 0 80px; text-align: center; }
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 880px;
  margin: 0 auto 22px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--ink-2);
  max-width: 680px;
  margin: 0 auto 36px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(14, 95, 216, 0.08);
  border: 1px solid rgba(14, 95, 216, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

/* ---- article hero (subpages) ---- */
.page-hero { padding: 150px 0 40px; }
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 820px;
  margin-bottom: 18px;
}
.page-hero .sub { font-size: 19px; color: var(--ink-2); max-width: 720px; }
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-3);
}
.meta-line .chip {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 5px 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.breadcrumb { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 16.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 6px 20px rgba(10, 37, 64, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(10, 37, 64, 0.35); }
.btn-glass {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.btn-glass:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- glass cards ---- */
.card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  transition: transform 0.2s, box-shadow 0.25s;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { font-size: 19px; letter-spacing: -0.015em; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--ink-2); }
.card .card-kicker {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue);
  margin-bottom: 10px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---- stats band ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  text-align: center;
  padding: 26px 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat .num {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--blue-deep);
  display: block;
}
.stat .lbl { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; display: block; }

/* ---- article content ---- */
.article { padding: 30px 0 60px; }
.article h2 {
  font-size: clamp(25px, 3vw, 31px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 52px 0 18px;
}
.article h3 { font-size: 21px; letter-spacing: -0.015em; margin: 36px 0 12px; }
.article p { margin-bottom: 18px; color: #22354a; }
.article ul, .article ol { margin: 0 0 20px 24px; color: #22354a; }
.article li { margin-bottom: 8px; }
.article a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(14, 95, 216, 0.25); }
.article a:hover { border-bottom-color: var(--blue); }
.article strong { color: var(--ink); }

/* ---- callouts ---- */
.callout {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin: 26px 0;
  font-size: 16px;
}
.callout.warn { border-left-color: var(--gold); }
.callout .callout-title { font-weight: 700; display: block; margin-bottom: 6px; font-size: 15px; }

/* ---- tables ---- */
.table-wrap {
  overflow-x: auto;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 26px 0;
}
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.4);
}
tr:last-child td { border-bottom: 0; }
td strong { color: var(--blue-deep); }

/* ---- FAQ ---- */
.faq { max-width: var(--maxw-text); margin: 0 auto; }
.faq details {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #123a66 60%, #1b5290 100%);
  border-radius: 28px;
  padding: 60px 48px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  top: -180px; right: -100px;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0 auto 30px; font-size: 17px; }
.cta-band .btn-primary { background: #fff; color: var(--blue-deep); }
.cta-band .btn-primary:hover { background: #f2f6fb; }
.cta-band .small { font-size: 13.5px; color: rgba(255, 255, 255, 0.6); margin-top: 18px; }

/* ---- disclaimer ---- */
.disclaimer {
  font-size: 13.5px;
  color: var(--ink-3);
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  margin-top: 48px;
}

/* ---- footer ---- */
footer {
  margin-top: 60px;
  padding: 56px 0 40px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border-top: 1px solid var(--glass-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 9px; }
footer a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
footer a:hover { color: var(--blue); }
.footer-brand p { font-size: 14px; color: var(--ink-2); max-width: 300px; margin-top: 10px; }
.footer-legal {
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---- section headers ---- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(27px, 3.6vw, 38px); letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 12px; }
.section-head p { color: var(--ink-2); font-size: 17.5px; }

/* ---- toc ---- */
.toc {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  margin: 30px 0;
  font-size: 15px;
}
.toc .toc-title { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 10px; }
.toc ol { margin: 0 0 0 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--blue); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: var(--shadow-lift);
    padding: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .hero { padding: 140px 0 60px; }
  .page-hero { padding: 130px 0 30px; }
  section { padding: 52px 0; }
  .cta-band { padding: 44px 24px; }
}
