/* ============================================================
   APATRIDUS — Architecture for a Life Without Borders
   Design System v1.0
   Deep Navy #0E1116 | White #FFFFFF | Warm Yellow #F5A623 | Golden Orange #E28C1B
   ============================================================ */

:root {
  --navy: #0E1116;
  --navy-soft: #151A21;
  --navy-card: #1A2029;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --grey-100: #EDEFF2;
  --grey-300: #C6CBD4;
  --grey-500: #8A93A2;
  --grey-700: #4A5361;
  --yellow: #F5A623;
  --orange: #E28C1B;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(14, 17, 22, 0.10);
  --radius: 6px;
  --maxw: 1180px;
  --maxw-text: 780px;
  --font-head: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.lead { font-size: 1.18rem; color: var(--grey-700); }

.on-dark .lead, .on-dark p { color: var(--grey-300); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.logo span { color: var(--yellow); }

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a {
  color: var(--grey-300);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover, .main-nav a.active { color: var(--white); }

.nav-cta {
  background: var(--yellow);
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--orange); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 3px;
}

.lang-switch a {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--grey-500);
}

.lang-switch a.active { background: var(--yellow); color: var(--navy); }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}

.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  margin: 5px auto;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 170px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(245, 166, 35, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 166, 35, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
}

.hero .container { position: relative; }

.hero h1 { max-width: 820px; margin-bottom: 24px; }

.hero .lead { max-width: 640px; margin-bottom: 40px; }

.hero-sub {
  color: var(--yellow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: block;
}

.hero-page {
  background: var(--navy);
  color: var(--white);
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(245, 166, 35, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 166, 35, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 75%);
}

.hero-page .container, .hero-page .container-narrow { position: relative; }

.hero-page h1 { max-width: 860px; margin-bottom: 20px; }

.hero-page .lead { max-width: 700px; }

/* ---------- Hero video background ---------- */

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 8%, rgba(14, 17, 22, 0.82) 45%, rgba(14, 17, 22, 0.55) 100%);
}

.hero.has-media::before, .hero-page.has-media::before { opacity: 0.5; }

.hero.has-media .container,
.hero-page.has-media .container,
.hero-page.has-media .container-narrow { z-index: 2; }

/* ---------- Media frames ---------- */

.media-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  position: relative;
  background: var(--navy);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-dark .media-frame, .on-dark .media-frame { border-color: var(--border-dark); }

.media-frame.ratio-43 { aspect-ratio: 4 / 3; }
.media-frame.ratio-11 { aspect-ratio: 1 / 1; }
.media-frame.ratio-169 { aspect-ratio: 16 / 9; }

.media-frame.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px rgba(14, 17, 22, 0.55);
  pointer-events: none;
}

.media-caption {
  font-size: 0.82rem;
  color: var(--grey-500);
  margin-top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 32px;
  border-radius: var(--radius);
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--orange); }

.btn-outline { border-color: var(--grey-300); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }

.on-dark .btn-outline, .hero .btn-outline, .hero-page .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.on-dark .btn-outline:hover, .hero .btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-sm { padding: 10px 22px; font-size: 0.92rem; }

/* ---------- Sections ---------- */

.section { padding: 90px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-soft { background: var(--off-white); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--grey-700); font-size: 1.1rem; }
.section-dark .section-head p { color: var(--grey-300); }

/* ---------- Cards / Grids ---------- */

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

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(14, 17, 22, 0.08);
  border-color: var(--yellow);
}

.card h3 { margin-bottom: 12px; }
.card p { color: var(--grey-700); font-size: 0.98rem; }

.card .card-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--orange);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 18px;
}

.card-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--orange);
}

.card-link::after { content: " →"; }

.section-dark .card {
  background: var(--navy-card);
  border-color: var(--border-dark);
}

.section-dark .card p { color: var(--grey-300); }
.section-dark .card h3 { color: var(--white); }

/* ---------- Stats bar ---------- */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border-dark);
  padding-top: 48px;
  margin-top: 72px;
}

.stat .stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--yellow);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat .stat-label { color: var(--grey-300); font-size: 0.9rem; }

/* ---------- Checklists ---------- */

ul.checklist { list-style: none; }

ul.checklist li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 14px;
}

ul.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.15);
}

ul.checklist li::after {
  content: "✓";
  position: absolute;
  left: 5px; top: 2px;
  color: var(--orange);
  font-weight: 800;
  font-size: 0.8rem;
}

ul.xlist { list-style: none; }

ul.xlist li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 14px;
}

ul.xlist li::before {
  content: "✕";
  position: absolute;
  left: 2px; top: 1px;
  color: var(--grey-500);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split h2 { margin-bottom: 20px; }
.split p + p { margin-top: 16px; }

/* ---------- Steps ---------- */

.steps { counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-light);
}

.section-dark .step { border-color: var(--border-dark); }

.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--yellow);
}

.step h3 { margin-bottom: 8px; font-size: 1.25rem; }
.step p { color: var(--grey-700); }
.section-dark .step p { color: var(--grey-300); }

/* ---------- Expert cards ---------- */

.expert-card {
  background: var(--navy-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.expert-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 20px;
}

img.expert-avatar {
  object-fit: cover;
  object-position: center 18%;
  background: var(--navy-soft);
  border: 2px solid rgba(245, 166, 35, 0.55);
  padding: 0;
}

.expert-card img.expert-avatar { width: 84px; height: 84px; }

.expert-card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 4px; }

.expert-role { color: var(--yellow); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }

.expert-card p { color: var(--grey-300); font-size: 0.94rem; }

/* ---------- Article / knowledge pages ---------- */

.article { padding: 70px 0 90px; }

.article-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 100px;
  border-left: 2px solid var(--grey-100);
  padding-left: 20px;
  font-size: 0.9rem;
}

.article-toc .toc-title {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 14px;
}

.article-toc a {
  display: block;
  color: var(--grey-700);
  padding: 5px 0;
  transition: color 0.15s;
}

.article-toc a:hover { color: var(--orange); }

.article-body h2 {
  font-size: 1.85rem;
  margin: 56px 0 20px;
  padding-top: 8px;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 { font-size: 1.3rem; margin: 36px 0 14px; }

.article-body p { margin-bottom: 18px; color: #2A313C; }

.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 8px; color: #2A313C; }

.article-body .checklist, .article-body .xlist { margin-left: 0; }

.kicker-label {
  display: inline-block;
  background: rgba(245, 166, 35, 0.12);
  color: var(--orange);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin: 40px 0 10px;
}

.summary-box {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 32px 0;
}

.summary-box .box-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.summary-box ul { list-style: none; margin: 0; }
.summary-box li { padding-left: 24px; position: relative; margin-bottom: 10px; font-size: 0.97rem; }
.summary-box li::before { content: "▸"; position: absolute; left: 0; color: var(--orange); }

.info-box {
  background: rgba(226, 140, 27, 0.06);
  border: 1px solid rgba(226, 140, 27, 0.25);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 24px 0;
  font-size: 0.97rem;
}

.info-box strong { color: var(--orange); }

/* Case boxes */
.case-box {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 24px 0;
}

.case-box .case-row { margin-bottom: 14px; }
.case-box .case-row:last-child { margin-bottom: 0; }

.case-label {
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-500);
  display: block;
  margin-bottom: 4px;
}

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 28px 0; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 640px;
}

table.compare th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 14px 16px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

table.compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  color: #2A313C;
}

table.compare tr:nth-child(even) td { background: var(--off-white); }

table.compare td:first-child { font-weight: 700; color: var(--navy); }

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--orange);
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item .faq-answer { padding: 0 0 22px; color: var(--grey-700); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(245, 166, 35, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 166, 35, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 100% at 100% 50%, black 20%, transparent 70%);
}

.cta-band > * { position: relative; }

.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--grey-300); max-width: 560px; margin-bottom: 32px; }

/* ---------- Author box ---------- */

.author-box {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 56px;
  align-items: center;
}

.author-box .expert-avatar { margin: 0; }

.author-box h4 { margin-bottom: 4px; }
.author-box .expert-role { margin-bottom: 8px; }
.author-box p { font-size: 0.92rem; color: var(--grey-700); }

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--grey-500);
  margin-bottom: 24px;
}

.hero-page .breadcrumb { color: var(--grey-500); }
.breadcrumb a { color: var(--grey-500); }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span { margin: 0 8px; }

/* ---------- Knowledge hub ---------- */

.cluster-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 56px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}

.cluster-head h2 { font-size: 1.5rem; }

.cluster-count { font-size: 0.85rem; color: var(--grey-500); font-weight: 600; }

.article-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  background: var(--white);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(14, 17, 22, 0.08);
  border-color: var(--yellow);
}

.article-card .tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.article-card h3 { font-size: 1.15rem; margin-bottom: 10px; }

.article-card p { font-size: 0.92rem; color: var(--grey-700); flex-grow: 1; }

.article-card .card-link { margin-top: 16px; }

.article-card.coming {
  opacity: 0.55;
  pointer-events: none;
  background: var(--off-white);
}

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 20px; }

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--navy);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--yellow);
  border-color: var(--yellow);
}

/* Quick check option cards */
.qc-options { display: grid; gap: 14px; }

.qc-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.qc-option:hover { border-color: var(--yellow); background: rgba(245, 166, 35, 0.04); }

.qc-option input { margin-top: 4px; accent-color: var(--orange); }

.qc-option .qc-label { font-weight: 700; display: block; }
.qc-option .qc-desc { font-size: 0.88rem; color: var(--grey-700); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--grey-300);
  padding: 72px 0 32px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .logo { display: inline-block; margin-bottom: 16px; }

.footer-brand p { max-width: 320px; color: var(--grey-500); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: var(--grey-500);
  padding: 5px 0;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--grey-700);
  font-size: 0.85rem;
}

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.mb-40 { margin-bottom: 40px; }
.center { text-align: center; }

.divider-label {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--grey-500);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 48px 0 24px;
}

.divider-label::after { content: ""; flex: 1; height: 1px; background: var(--border-light); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-toc { position: static; margin-bottom: 48px; border-left: none; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border-dark);
  }
  .main-nav.open { display: flex; }
  .burger { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 80px; }
  .hero-page { padding: 120px 0 60px; }
  .section { padding: 64px 0; }
  .cta-band { padding: 44px 28px; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .author-box { grid-template-columns: 1fr; }
}

/* ============================================================
   DESIGN v2 — Premium-Feinschliff
   ============================================================ */

:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lift: 0 24px 60px -18px rgba(14, 17, 22, 0.22);
  --shadow-dark: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}

body { font-size: 17.5px; letter-spacing: -0.005em; }

h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.85rem); letter-spacing: -0.03em; line-height: 1.1; }
h3 { letter-spacing: -0.022em; }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
}

.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- Logo lockup ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 30px; height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}

.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }

.footer-brand .logo-mark { width: 34px; height: 34px; }

/* ---------- Header: transparent → solid ---------- */

.site-header {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.scrolled {
  background: rgba(10, 13, 17, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border-dark);
}

.header-inner { height: 78px; }

.main-nav a { font-size: 0.94rem; letter-spacing: -0.01em; position: relative; }

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--yellow);
  transition: width 0.3s var(--ease);
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta).active::after { width: 100%; }

.nav-cta {
  padding: 11px 20px;
  font-size: 0.9rem !important;
  box-shadow: 0 6px 18px -6px rgba(245, 166, 35, 0.55);
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -6px rgba(245, 166, 35, 0.7); }

/* ---------- Grain + gradient atmosphere on dark ---------- */

.hero, .hero-page, .section-dark, .cta-band, .site-footer { position: relative; }

.hero::after, .hero-page::after, .section-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

.hero > .container, .hero-page > .container, .hero-page > .container-narrow,
.section-dark > .container { position: relative; z-index: 3; }

.hero::before, .hero-page::before { z-index: 1; }
.hero-media { z-index: 0; }

/* Warmer glow anchor in dark heroes */
.hero .container::before {
  content: "";
  position: absolute;
  top: -180px; right: -140px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.16), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Buttons v2 ---------- */

.btn {
  border-radius: 8px;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s;
  will-change: transform;
}

.btn-primary { box-shadow: 0 12px 28px -12px rgba(245, 166, 35, 0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(245, 166, 35, 0.85); }
.btn-outline:hover { transform: translateY(-2px); }

.btn-arrow::after {
  content: "→";
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.3s var(--ease);
}

.btn-arrow:hover::after { transform: translateX(5px); }

.btn-meta {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--grey-500);
  letter-spacing: 0.01em;
}

/* ---------- Cards v2 ---------- */

.card, .article-card, .expert-card {
  border-radius: 10px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.card::before, .article-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.card:hover::before, .article-card:hover::before { transform: scaleX(1); }

.card:hover, .article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.section-dark .card:hover, .expert-card:hover { box-shadow: var(--shadow-dark); }

.expert-card:hover { transform: translateY(-4px); border-color: rgba(245, 166, 35, 0.4); }

.card .card-num { letter-spacing: 0.18em; font-size: 0.72rem; }

/* ---------- Section rhythm ---------- */

.section { padding: 110px 0; }
.section-head { margin-bottom: 64px; }

.section-soft {
  background: linear-gradient(180deg, var(--off-white), #FFFFFF);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* ---------- Stats v2 ---------- */

.stats-bar { margin-top: 84px; gap: 32px; }
.stat .stat-num { font-size: 2.5rem; letter-spacing: -0.04em; }
.stat .stat-label { font-size: 0.88rem; line-height: 1.5; }

/* ---------- Scroll reveal ---------- */

html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.has-js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.has-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .article-card { transition: none; }
}

/* ---------- CTA band v2 ---------- */

.cta-band {
  border-radius: 14px;
  padding: 72px 64px;
  border: 1px solid rgba(245, 166, 35, 0.18);
  box-shadow: var(--shadow-dark);
}

.cta-band h2 { max-width: 620px; }

/* ---------- Tables v2 ---------- */

table.compare { border-radius: 10px; overflow: hidden; }
table.compare th:first-child { border-top-left-radius: 10px; }
table.compare th:last-child { border-top-right-radius: 10px; }

/* ---------- Article polish ---------- */

.article-body p { line-height: 1.72; }
.article-toc { border-left-color: rgba(245, 166, 35, 0.35); }
.article-toc a.active { color: var(--orange); font-weight: 600; }

.summary-box { border-radius: 10px; box-shadow: 0 10px 30px -20px rgba(14, 17, 22, 0.3); }

/* ---------- Footer v2 ---------- */

.site-footer { padding-top: 88px; }
.footer-brand p { line-height: 1.7; }

/* ============================================================
   BUSINESS FREEDOM SCORE
   ============================================================ */

.fs-shell {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 40px 90px -40px rgba(14, 17, 22, 0.35);
  padding: 44px 48px 48px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

/* --- progress --- */

.fs-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.fs-progress-label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.fs-progress-count { font-size: 0.84rem; color: var(--grey-500); font-weight: 600; }

.fs-progress-track {
  height: 5px;
  background: var(--grey-100);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 38px;
}

.fs-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  border-radius: 99px;
  transition: width 0.5s var(--ease);
}

/* --- steps --- */

.fs-step { display: none; }
.fs-step.active { display: block; animation: fsIn 0.45s var(--ease); }

@keyframes fsIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.fs-step-title { font-size: 1.5rem; margin-bottom: 6px; }
.fs-step-sub { color: var(--grey-700); font-size: 0.98rem; margin-bottom: 34px; }

.fs-q { margin-bottom: 32px; }

.fs-q-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  display: block;
}

.fs-q-num { color: var(--orange); margin-right: 8px; }

.fs-opts { display: grid; gap: 10px; }

.fs-opt {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1.5px solid var(--grey-100);
  background: var(--white);
  border-radius: 10px;
  padding: 15px 18px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s, transform 0.2s var(--ease);
  font-size: 0.97rem;
  line-height: 1.5;
}

.fs-opt:hover { border-color: rgba(245, 166, 35, 0.55); background: rgba(245, 166, 35, 0.035); }

.fs-opt input { position: absolute; opacity: 0; pointer-events: none; }

.fs-dot {
  width: 19px; height: 19px;
  border-radius: 50%;
  border: 2px solid var(--grey-300);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.fs-opt input:checked ~ .fs-dot { border-color: var(--orange); background: var(--orange); }

.fs-opt input:checked ~ .fs-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--white);
}

.fs-opt:has(input:checked) {
  border-color: var(--orange);
  background: rgba(245, 166, 35, 0.07);
}

.fs-opt input:focus-visible ~ .fs-dot { box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.35); }

.fs-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--border-light);
}

.fs-back {
  background: none;
  border: none;
  color: var(--grey-500);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 8px 0;
}

.fs-back:hover { color: var(--navy); }
.fs-back[hidden] { visibility: hidden; }

.fs-hint { font-size: 0.85rem; color: var(--grey-500); }

/* --- result --- */

.fs-result { text-align: center; }

.fs-gauge { width: 220px; height: 220px; margin: 0 auto 12px; position: relative; }
.fs-gauge svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.fs-gauge circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.fs-gauge .track { stroke: var(--grey-100); }
.fs-gauge .bar { stroke: url(#fsGrad); transition: stroke-dashoffset 1.4s var(--ease); }

.fs-gauge-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fs-score-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.fs-score-of { font-size: 0.84rem; color: var(--grey-500); font-weight: 600; margin-top: 4px; }

.fs-verdict {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.fs-summary { color: var(--grey-700); max-width: 560px; margin: 0 auto 40px; }

.fs-bars { text-align: left; display: grid; gap: 20px; margin-bottom: 40px; }

.fs-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.fs-bar-name { font-weight: 700; }
.fs-bar-val { font-family: var(--font-head); font-weight: 800; color: var(--orange); }

.fs-bar-track { height: 8px; background: var(--grey-100); border-radius: 99px; overflow: hidden; }

.fs-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transition: width 1.1s var(--ease);
}

.fs-bar.weak .fs-bar-fill { background: linear-gradient(90deg, #C0562B, #E2761B); }
.fs-bar.weak .fs-bar-val { color: #C0562B; }

.fs-bar-note { font-size: 0.86rem; color: var(--grey-500); margin-top: 7px; }

.fs-insight {
  text-align: left;
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 34px 36px;
  margin-bottom: 32px;
}

.fs-insight h3 { color: var(--white); margin-bottom: 12px; font-size: 1.25rem; }
.fs-insight p { color: var(--grey-300); font-size: 0.98rem; }

.fs-steps-list { text-align: left; margin-bottom: 40px; }

.fs-next {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}

.fs-next:last-child { border-bottom: none; }

.fs-next-num {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--orange);
  font-size: 0.95rem;
  padding-top: 2px;
}

.fs-next strong { display: block; margin-bottom: 3px; }
.fs-next span { font-size: 0.93rem; color: var(--grey-700); }

/* --- email gate --- */

.fs-gate {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 34px 36px;
  text-align: left;
}

.fs-gate h3 { font-size: 1.3rem; margin-bottom: 10px; }
.fs-gate p { color: var(--grey-700); font-size: 0.96rem; margin-bottom: 24px; }

.fs-gate-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }

.fs-gate-row .form-field { margin: 0; }

.fs-gate .btn { white-space: nowrap; }

.fs-privacy { font-size: 0.8rem; color: var(--grey-500); margin-top: 14px; }

.fs-done {
  text-align: left;
  border: 1px solid rgba(245, 166, 35, 0.35);
  background: rgba(245, 166, 35, 0.07);
  border-radius: 12px;
  padding: 34px 36px;
}

.fs-done h3 { margin-bottom: 10px; }

/* --- category preview cards --- */

.fs-cat {
  border: 1px solid var(--border-dark);
  background: var(--navy-card);
  border-radius: 10px;
  padding: 30px 26px;
}

.fs-cat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--orange);
  display: block;
  margin-bottom: 14px;
}

.fs-cat h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 10px; }
.fs-cat p { color: var(--grey-300); font-size: 0.93rem; margin-bottom: 14px; }

.fs-cat ul { list-style: none; font-size: 0.87rem; color: var(--grey-500); }
.fs-cat li { padding-left: 15px; position: relative; margin-bottom: 5px; }
.fs-cat li::before { content: "·"; position: absolute; left: 3px; color: var(--orange); font-weight: 800; }

@media (max-width: 760px) {
  .fs-shell { padding: 30px 22px 34px; border-radius: 12px; }
  .fs-gate, .fs-insight, .fs-done { padding: 26px 22px; }
  .fs-gate-row { grid-template-columns: 1fr; }
  .fs-score-num { font-size: 3rem; }
  .fs-gauge { width: 180px; height: 180px; }
  .section { padding: 72px 0; }
  .cta-band { padding: 44px 26px; }
}

/* Logo-Wortmarke */
.logo .logo-word { color: var(--white); font-weight: 800; }
.logo .logo-word i { color: var(--yellow); font-style: normal; }

/* ============================================================
   MEGA-MENÜ
   ============================================================ */

.has-mega { position: relative; display: flex; align-items: center; }

.nav-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--grey-300);
  letter-spacing: -0.01em;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  position: relative;
}

.nav-trigger::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
  opacity: 0.7;
}

.nav-trigger:hover, .nav-trigger.active, .has-mega:hover .nav-trigger { color: var(--white); }
.has-mega:hover .nav-trigger::after, .nav-trigger[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }

.mega {
  position: fixed;
  top: 78px; left: 0; right: 0;
  background: rgba(10, 13, 17, 0.97);
  backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.has-mega:hover > .mega,
.has-mega:focus-within > .mega,
.mega.open { opacity: 1; visibility: visible; transform: none; }

.mega-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 34px 40px;
}

.mega-sm .mega-inner { grid-template-columns: minmax(240px, 320px); }

.mm-col { display: flex; flex-direction: column; }

.mm-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.mm-col a {
  color: var(--grey-300);
  font-size: 0.93rem;
  padding: 7px 0;
  transition: color 0.15s, transform 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mm-col a:hover { color: var(--yellow); transform: translateX(3px); }

.mm-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(245, 166, 35, 0.16);
  color: var(--yellow);
  padding: 3px 7px;
  border-radius: 3px;
}

.mega-foot {
  border-top: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.02);
}

.mega-all {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--yellow);
}

.mega-all::after { content: " →"; }

@media (max-width: 760px) {
  .has-mega { display: block; width: 100%; }
  .nav-trigger { width: 100%; justify-content: space-between; padding: 10px 0; font-size: 1rem; }
  .mega {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    display: none;
  }
  .mega.open { display: block; }
  .has-mega:hover > .mega, .has-mega:focus-within > .mega { display: none; }
  .has-mega:hover > .mega.open, .has-mega:focus-within > .mega.open { display: block; }
  .mega-inner { grid-template-columns: 1fr; padding: 4px 0 12px; gap: 18px; }
  .mega-foot { background: none; }
  .mega-all { padding: 12px 0; }
  .main-nav { max-height: calc(100vh - 78px); overflow-y: auto; }
}
