/* =====================================================================
   AiZ Tech GmbH — Premium Legal-Tech Website
   Design system: "Präzision trifft Innovation"
   ===================================================================== */

/* ----------  Design Tokens  ---------- */
:root {
  /* Brand — sampled from logo */
  --navy-900: #041d45;
  --navy-800: #052a61;
  --navy-700: #073882; /* brand */
  --navy-600: #0a4da0;
  --navy-500: #1463c4;
  --navy-400: #4d8ad9;

  --gold-600: #b8830f;
  --gold-500: #ce9715; /* brand */
  --gold-400: #e0ae3a;
  --gold-300: #eed9a3;
  --gold-100: #faf2dc;

  /* Neutrals — warm paper, legal-document feel */
  --paper: #fbfaf7;
  --surface: #f4f2ec;
  --surface-2: #ece8dd;
  --white: #ffffff;

  --ink-900: #0e1726;
  --ink-700: #2a3647;
  --ink-500: #5a6678;
  --ink-300: #97a0ad;

  --line: rgba(7, 56, 130, 0.12);
  --line-strong: rgba(7, 56, 130, 0.22);

  /* Typography */
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* Spacing scale (8px base) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(4, 29, 69, 0.06), 0 2px 8px rgba(4, 29, 69, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(4, 29, 69, 0.22);
  --shadow-lg: 0 30px 70px -28px rgba(4, 29, 69, 0.40);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------  Reset  ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink-900);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

::selection { background: var(--gold-300); color: var(--navy-900); }

/* ----------  Typography  ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  font-optical-sizing: auto;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 480; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p { color: var(--ink-700); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-700); line-height: 1.6; }

strong { color: var(--navy-800); font-weight: 600; }

/* ----------  Layout primitives  ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }

/* Eyebrow / kicker — mono technical label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--gold-500);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px var(--gold-100);
  flex: none;
}
.eyebrow.on-dark { color: var(--gold-400); }
.eyebrow.on-dark::before { box-shadow: 0 0 0 4px rgba(224, 174, 58, 0.14); }

.center .eyebrow { justify-content: center; }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, box-shadow 0.3s, border-color 0.25s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { transition: transform 0.35s var(--ease); flex: none; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: var(--navy-700);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--navy-800);
  box-shadow: var(--shadow-lg);
}
.btn--primary:hover svg { transform: translateX(5px); }

.btn--gold {
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 700;
  box-shadow: 0 8px 28px -8px rgba(206, 151, 21, 0.65);
}
.btn--gold:hover {
  background: var(--gold-400);
  box-shadow: 0 14px 36px -8px rgba(206, 151, 21, 0.75);
}
.btn--gold:hover svg { transform: translateX(5px); }

.btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--navy-700); background: rgba(7, 56, 130, 0.04); }

.btn--light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}
.btn--light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}
.btn--light:hover svg { transform: translateX(5px); }

/* ----------  Divider: gold rule + diamond marker  ---------- */
.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block: var(--sp-1);
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.rule__mark {
  width: 9px; height: 9px;
  background: var(--gold-500);
  transform: rotate(45deg);
  flex: none;
}

/* =====================================================================
   NAVBAR
   ===================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s, backdrop-filter 0.4s, padding 0.4s;
  padding-block: 1.1rem;
}
.nav.scrolled {
  background: rgba(251, 250, 247, 0.95);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  padding-block: 0.6rem;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img {
  height: 72px;
  width: auto;
  transition: height 0.4s var(--ease);
}
.nav.scrolled .brand img {
  height: 72px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  position: relative;
  transition: color 0.25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.35rem;
  height: 2px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__links a.active { color: #fff; }

.nav.scrolled .nav__links a {
  color: var(--navy-800);
}
.nav.scrolled .nav__links a:hover { color: var(--navy-900); }
.nav.scrolled .nav__links a.active { color: var(--navy-800); }
.nav.scrolled .nav__links a::after {
  background: var(--gold-500);
}

.nav__cta { display: flex; align-items: center; gap: 0.75rem; }
.nav__cta .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.nav__burger span {
  width: 26px; height: 2px;
  background: var(--navy-800);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy-900);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 1.5rem; justify-content: center; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  padding-top: 6rem;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
/* subtle blueprint grid + vignette overlays */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 120% at 70% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 120% at 70% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(80% 60% at 75% 20%, rgba(10,77,160,0.45), transparent 60%),
    radial-gradient(60% 50% at 15% 90%, rgba(206,151,21,0.10), transparent 60%),
    linear-gradient(180deg, rgba(4,29,69,0.2), rgba(4,29,69,0.75));
}
.hero__inner { position: relative; z-index: 3; max-width: 880px; }

.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero h1 .accent {
  color: transparent;
  background: linear-gradient(120deg, var(--gold-400), var(--gold-300));
  -webkit-background-clip: text; background-clip: text;
  font-style: italic;
}
.hero .lead { color: rgba(255,255,255,0.78); max-width: 660px; }

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 2.5rem;
}
.hero__tags span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.04);
}
.hero__tags span b { color: var(--gold-400); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__location {
  position: absolute;
  bottom: 2rem;
  left: 0; right: 0;
  z-index: 3;
}
.hero__location .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
}
.hero__scroll { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero__scroll .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-400);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.6); }
}

/* =====================================================================
   PILLARS (Technologie muss mehr können)
   ===================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.5s;
}
.pillar::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar:hover::before { transform: scaleX(1); }
.pillar__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-600);
  letter-spacing: 0.1em;
}
.pillar__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--navy-700);
  color: var(--gold-400);
  margin: 1.25rem 0 1.25rem;
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { margin-bottom: 0.75rem; }
.pillar p { font-size: 0.98rem; }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about__media {
  position: sticky;
  top: 100px;
}
.focus-list { margin-top: 1.5rem; }
.focus-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--navy-800);
}
.focus-list li svg { color: var(--gold-500); flex: none; margin-top: 3px; }
.focus-list li:last-child { border-bottom: 0; }

/* Stats panel */
.stats {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.stats::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(100% 100% at 100% 0, #000, transparent 70%);
          mask-image: radial-gradient(100% 100% at 100% 0, #000, transparent 70%);
}
.stat { position: relative; z-index: 1; }
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--gold-400);
  line-height: 1;
}
.stat__num small { font-size: 1.5rem; }
.stat__label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.5rem; }

/* Vision / Mission / Werte */
.vmw {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.vmw__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.vmw__card .eyebrow { margin-bottom: 1rem; }
.vmw__card p { font-size: 1rem; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.value {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), background 0.4s;
}
.value:hover { transform: translateY(-4px); background: var(--white); box-shadow: var(--shadow-sm); }
.value h4 { color: var(--navy-800); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.6rem; }
.value h4 .dia { width: 7px; height: 7px; background: var(--gold-500); transform: rotate(45deg); flex: none; }
.value p { font-size: 0.94rem; }

/* =====================================================================
   SERVICES (dark) — tabbed
   ===================================================================== */
.dark-section {
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.dark-section h2, .dark-section h3 { color: #fff; }
.dark-section .lead { color: rgba(255,255,255,0.75); }
.dark-section p { color: rgba(255,255,255,0.72); }
.dark-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(120% 80% at 80% 0, #000, transparent 70%);
          mask-image: radial-gradient(120% 80% at 80% 0, #000, transparent 70%);
  pointer-events: none;
}
.dark-section .container { position: relative; z-index: 1; }

.tabs { margin-top: 2.5rem; }
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 2.5rem;
}
.tabs__btn {
  background: none;
  border: 0;
  color: rgba(255,255,255,0.6);
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  transition: color 0.3s;
}
.tabs__btn::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--gold-500);
  transform: scaleX(0); transition: transform 0.4s var(--ease);
}
.tabs__btn:hover { color: #fff; }
.tabs__btn.active { color: #fff; }
.tabs__btn.active::after { transform: scaleX(1); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.6s var(--ease); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.tab-panel__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.tab-panel h3 { margin-bottom: 1rem; }
.feat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}
.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.feat-list li svg { color: var(--gold-400); flex: none; margin-top: 4px; }

.process-mini { margin-top: 2rem; display: grid; gap: 0.75rem; }
.process-mini li {
  display: flex; gap: 1rem; align-items: baseline;
  color: rgba(255,255,255,0.8); font-size: 0.95rem;
}
.process-mini b { font-family: var(--font-mono); color: var(--gold-400); font-size: 0.85rem; }

/* =====================================================================
   RAG — signature visualization
   ===================================================================== */
.rag-viz {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.rag-pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 0.5rem;
}
.rag-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
}
.rag-step__icon {
  width: 56px; height: 56px;
  margin: 0 auto 0.9rem;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(7,56,130,0.5);
  border: 1px solid rgba(224,174,58,0.35);
  color: var(--gold-400);
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, background 0.4s;
}
.rag-step.lit .rag-step__icon {
  background: var(--navy-600);
  box-shadow: 0 0 0 6px rgba(224,174,58,0.12), 0 0 30px rgba(224,174,58,0.4);
  transform: translateY(-4px);
}
.rag-step__icon svg { width: 26px; height: 26px; }
.rag-step h4 { color: #fff; font-size: 0.98rem; margin-bottom: 0.35rem; }
.rag-step p { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.rag-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px; right: -8px;
  width: 16px; height: 2px;
  background: rgba(255,255,255,0.2);
}
.rag-connector {
  height: 2px;
  background: rgba(255,255,255,0.12);
  margin: 1.75rem 0 0;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.rag-connector__beam {
  position: absolute; top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  animation: beam 3s linear infinite;
}
@keyframes beam { to { left: 130%; } }

.rag-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.rag-benefits li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.92rem; color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.rag-benefits li svg { color: var(--gold-400); flex: none; margin-top: 3px; }

.callout {
  margin-top: 2rem;
  border-left: 3px solid var(--gold-500);
  background: rgba(206,151,21,0.08);
  padding: 1.1rem 1.4rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

/* =====================================================================
   LEGAL TECH
   ===================================================================== */
.lt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.lt-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.lt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.lt-card--wide { grid-column: span 2; }
.lt-card__head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
}
.lt-card__icon {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid var(--gold-300);
}
.lt-card .tag-bea {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  background: var(--navy-700);
  color: #fff;
  margin-left: 0.5rem;
}
.mini-list { margin-top: 1rem; columns: 2; column-gap: 1.5rem; }
.mini-list li {
  break-inside: avoid;
  display: flex; gap: 0.5rem; align-items: flex-start;
  font-size: 0.92rem; color: var(--ink-700);
  padding: 0.35rem 0;
}
.mini-list li svg { color: var(--gold-500); flex: none; margin-top: 4px; }
.note { font-size: 0.85rem; color: var(--ink-500); margin-top: 1rem; font-style: italic; }

/* =====================================================================
   PRODUCTS
   ===================================================================== */
.products { display: grid; gap: 1.5rem; margin-top: 3rem; }
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.product:nth-child(even) .product__visual { order: 2; }
.product__body { padding: clamp(2rem, 4vw, 3rem); }
.product__visual {
  background: var(--navy-900);
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: grid; place-items: center;
}
.product__logo {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  position: relative; z-index: 2;
  text-align: center;
  letter-spacing: -0.02em;
}
.product__logo span { color: var(--gold-400); }
.product__logo small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 0.75rem;
}
.product__visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(224,174,58,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,174,58,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 75%);
          mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 75%);
}
.product__kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.product h3 { margin: 0.5rem 0 0.25rem; }
.product__sub { font-weight: 500; color: var(--navy-700); margin-bottom: 1rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--navy-800);
}

/* =====================================================================
   WHY US
   ===================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.why-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why-card__n {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-600);
}
.why-card h4 { margin: 0.75rem 0 0.6rem; color: var(--navy-800); font-size: 1.2rem; font-family: var(--font-serif); }
.why-card p { font-size: 0.95rem; }

/* =====================================================================
   PROCESS TIMELINE
   ===================================================================== */
.timeline {
  margin-top: 3rem;
  position: relative;
  display: grid;
  gap: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 12px; bottom: 12px;
  width: 2px;
  background: var(--line-strong);
}
.timeline__progress {
  position: absolute;
  left: 27px; top: 12px;
  width: 2px;
  background: linear-gradient(var(--gold-500), var(--gold-300));
  height: 0;
  transition: height 0.1s linear;
}
.tl-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  position: relative;
}
.tl-step__dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy-700);
  z-index: 1;
  transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.4s var(--ease);
}
.tl-step.in .tl-step__dot {
  background: var(--navy-700);
  border-color: var(--gold-500);
  color: var(--gold-400);
  transform: scale(1.05);
}
.tl-step__body { padding-top: 0.5rem; }
.tl-step h4 { color: var(--navy-800); font-size: 1.25rem; font-family: var(--font-serif); margin-bottom: 0.4rem; }

/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta {
  background: var(--navy-900);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(10,77,160,0.5), transparent 60%),
    radial-gradient(40% 50% at 50% 120%, rgba(206,151,21,0.14), transparent 60%);
}
.cta .container { position: relative; z-index: 1; max-width: 820px; }
.cta h2 { color: #fff; margin-bottom: 1rem; }
.cta .lead { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem;
  align-items: start;
}
.contact-info { }
.contact-block { margin-bottom: 2rem; }
.contact-block h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.contact-block p { color: var(--navy-800); font-weight: 500; line-height: 1.7; }
.contact-block a { color: var(--navy-700); border-bottom: 1px solid var(--line-strong); transition: border-color 0.3s; }
.contact-block a:hover { border-color: var(--gold-500); }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { margin-bottom: 1.25rem; position: relative; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.45rem;
}
.field label .req { color: var(--gold-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink-900);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(7,56,130,0.10);
}
.field--check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.field--check input { width: auto; margin-top: 4px; accent-color: var(--navy-700); flex: none; }
.field--check label { font-size: 0.85rem; font-weight: 400; color: var(--ink-500); margin: 0; line-height: 1.5; }
.field--check a { color: var(--navy-700); text-decoration: underline; }
.form .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

.form__success {
  display: none;
  background: var(--gold-100);
  border: 1px solid var(--gold-300);
  color: var(--navy-800);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  align-items: center;
  gap: 0.6rem;
}
.form__success.show { display: flex; }

/* ----------  Map card  ---------- */
.map-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.5s;
}
.map-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 2;
}
.map-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.map-card:hover::before { transform: scaleX(1); }
.map-card__inner {
  position: relative;
  width: 100%;
  min-height: 420px;
}
.map-card__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(7,56,130,0.06);
  border-radius: 0;
}
.map-card__inner iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* ----------  Map marker (gold diamond pin)  ---------- */
.map-marker {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.map-marker.in {
  opacity: 1;
  animation: markerPulse 2.8s var(--ease) infinite 0.3s;
}
.map-marker__dia {
  display: block;
  width: 16px; height: 16px;
  background: var(--gold-500);
  transform: rotate(45deg);
  box-shadow: 0 0 0 6px rgba(206,151,21,0.2), 0 0 30px rgba(206,151,21,0.25);
  transition: box-shadow 1s var(--ease);
}
.map-marker.in .map-marker__dia {
  box-shadow: 0 0 0 10px rgba(206,151,21,0.08), 0 0 40px rgba(206,151,21,0.15);
}
.map-marker__ring {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-400);
  opacity: 0;
}
.map-marker.in .map-marker__ring {
  animation: ringExpand 2.8s var(--ease) infinite 0.3s;
}
@keyframes markerPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes ringExpand {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand img { height: 44px; margin-bottom: 1.25rem; filter: brightness(0) invert(1); opacity: 0.95; }
.footer__brand p { color: rgba(255,255,255,0.6); font-size: 0.95rem; max-width: 340px; }
.footer__contact { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-top: 1.25rem; line-height: 1.8; }
.footer__contact a:hover { color: var(--gold-400); }
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer__col ul { display: grid; gap: 0.65rem; }
.footer__col a { font-size: 0.95rem; color: rgba(255,255,255,0.7); transition: color 0.25s, padding-left 0.25s; }
.footer__col a:hover { color: #fff; padding-left: 4px; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer__tag { font-family: var(--font-serif); font-style: italic; color: rgba(255,255,255,0.7); }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  z-index: 200;
  transition: width 0.1s linear;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }
  .nav__burger { display: flex; }
  .pillars-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__media { position: static; }
  .vmw { grid-template-columns: 1fr; }
  .tab-panel__grid { grid-template-columns: 1fr; }
  .lt-grid { grid-template-columns: 1fr; }
  .lt-card--wide { grid-column: span 1; }
  .product { grid-template-columns: 1fr; }
  .product:nth-child(even) .product__visual { order: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .rag-pipeline { flex-wrap: wrap; gap: 1.5rem; }
  .rag-step { flex: 0 0 calc(50% - 0.75rem); }
  .rag-step:not(:last-child)::after { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .feat-list { grid-template-columns: 1fr; }
  .mini-list { columns: 1; }
  .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .rag-step { flex: 0 0 100%; }
  .hero__location .container { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* =====================================================================
   ACCESSIBILITY
   ===================================================================== */
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 300;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
