/* ============================================
   LAWFIX — MAIN STYLESHEET
   Design: Gold-Standard SaaS Landing Page
   Accent: #025259 (Deep Teal)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #025259;
  --accent-light: #03738C;
  --accent-dark: #011C1D;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --bg-dark: #0A1A1B;
  --text: #1A1A1A;
  --text-secondary: #5A6370;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.15);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h1, h2, h3, h4, p, li, span, a, .headline-italic { overflow: visible; text-overflow: unset; }

.headline-italic {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 0.05em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

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

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 16px; padding: 6px 14px;
  background: rgba(2, 82, 89, 0.06); border-radius: 100px;
}

.section-title { margin-bottom: 20px; }
.section-subtitle { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--text-secondary); max-width: 640px; line-height: 1.7; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-subtitle { margin: 0 auto; }

/* --- Scroll Reveal --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.scroll-text-reveal { color: var(--text-muted); transition: color 0.6s ease; }
.scroll-text-reveal.visible { color: var(--text); }

/* --- Reg Card Scroll Spread Effect --- */
.reg-reveal {
  will-change: transform, opacity;
}
.reg-spread-active .reg-reveal {
  opacity: 0;
  transform: translate(var(--spread-x, 0px), var(--spread-y, 0px)) scale(0.85);
}

/* --- Cert Card Scroll Spread Effect --- */
.cert-reveal {
  will-change: transform, opacity;
}
.cert-spread-active .cert-reveal {
  opacity: 0;
  transform: translate(var(--spread-x, 0px), var(--spread-y, 0px)) scale(0.85);
}

/* === NAVIGATION === */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: all var(--transition); background: rgba(255,255,255,0); backdrop-filter: blur(0px); }
.nav.scrolled { padding: 10px 0; background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: var(--accent-dark); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: color var(--transition); }
.nav-links a:hover { color: var(--accent); }
.nav-links a.btn-primary, .nav-links a.nav-cta { color: #fff !important; }
.nav-cta { display: none; }
.nav.scrolled .nav-cta { display: inline-flex; }
.nav-pdf-group { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nav-pdf-desktop {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--text);
  border-radius: 8px;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-pdf-desktop:hover { border-color: var(--accent); color: var(--accent); background: rgba(2,82,89,0.05); }
.nav-pdf-subtitle { display: none; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: var(--transition); border-radius: 2px; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 0.95rem; font-weight: 600; font-family: var(--font); border-radius: 12px; border: none; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 12px rgba(2,82,89,0.25); }
.btn-primary:hover { background: var(--accent-light); box-shadow: 0 4px 20px rgba(2,82,89,0.35); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; border-radius: 10px; }
.btn-icon { width: 20px; height: 20px; }
.btn-white { background: #fff; color: var(--accent); font-weight: 600; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.btn-white:hover { background: #f0fafa; transform: translateY(-1px); box-shadow: 0 6px 25px rgba(0,0,0,0.2); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.45); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); transform: translateY(-1px); }

/* === HERO === */
.hero { padding: 160px 0 80px; text-align: center; position: relative; overflow: clip; }
.hero::before { content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(2,82,89,0.04) 0%, transparent 70%); pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(2,82,89,0.06); border: 1px solid rgba(2,82,89,0.12); border-radius: 100px; font-size: 0.82rem; font-weight: 500; color: var(--accent); margin-bottom: 28px; }
.hero-badge-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { max-width: 800px; margin: 0 auto 24px; }
.hero-subtitle { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-secondary); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; padding: 0 4px; }
.hero-buttons { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 64px; }

/* Hero Video Wrapper */
.hero-video-wrapper {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  filter: blur(16px);
  transform: scale(1.06);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.hero-video-wrapper.is-playing .hero-video {
  filter: none;
  transform: none;
}

.hero-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 2;
  background: rgba(0,0,0,0.22);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.hero-play-overlay:hover {
  background: rgba(0,0,0,0.32);
}

.hero-video-wrapper.is-playing .hero-play-overlay {
  opacity: 0;
  pointer-events: none;
}

.hero-play-btn-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transition: all var(--transition);
  color: var(--accent);
}

.hero-play-overlay:hover .hero-play-btn-circle {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  background: #fff;
}

.hero-play-btn-circle svg { margin-left: 3px; }

.hero-play-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
}

.hero-image-glow {
  position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 80%; height: 200px;
  background: radial-gradient(ellipse, rgba(2,82,89,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* === TRUST / LOGO MARQUEE === */
.trust { padding: 48px 0 64px; text-align: center; border-top: 1px solid var(--border); }
.trust-label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 32px; }

.marquee-track {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-shrink: 0;
  animation: marquee-scroll 35s linear infinite;
  padding-right: 48px;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.trust-logo-item {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0.45;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* === FEATURE SHOWCASE CARDS === */
.feature-showcase {
  background: var(--bg-alt);
}

.showcase-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.showcase-row-reverse {
  grid-template-columns: 1fr 2fr;
}

.showcase-row-full {
  grid-template-columns: 1fr;
}

.showcase-card {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafb 100%);
  border: 1px solid rgba(2,82,89,0.08);
  border-radius: 20px;
  padding: 32px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1), box-shadow 0.5s cubic-bezier(0.23,1,0.32,1);
  will-change: transform;
  cursor: default;
}

.showcase-card:hover {
  box-shadow: 0 20px 60px rgba(2,82,89,0.12), 0 8px 24px rgba(0,0,0,0.06);
}

.showcase-card-shine {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.03) 40%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.03) 60%, rgba(255,255,255,0) 100%);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.showcase-card:hover .showcase-card-shine { opacity: 1; }

.showcase-card-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; height: 100%;
}

.showcase-card-inner-horizontal {
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.showcase-card-visual {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 140px;
  margin-bottom: 20px;
}

.showcase-card-inner-horizontal .showcase-card-visual {
  margin-bottom: 0;
  max-width: 340px;
}

.showcase-card-text h3 { font-size: 1.15rem; margin-bottom: 8px; }
.showcase-card-text p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }

/* --- Visual: Questionnaire --- */
.vis-questionnaire { width: 100%; max-width: 260px; }
.vis-q-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.vis-q-badge { display: inline-block; padding: 3px 10px; background: #E85D3A; color: #fff; font-size: 0.6rem; font-weight: 700; border-radius: 6px; letter-spacing: 0.04em; }
.vis-q-progress { flex: 1; height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; }
.vis-q-progress-fill { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.5s ease; }
.vis-q-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.vis-q-radio { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; transition: all 0.3s ease; }
.vis-q-radio-active { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px #fff; }
.vis-q-text-line { display: block; height: 6px; background: var(--border); border-radius: 3px; }
.vis-q-text-line.w50 { width: 50%; } .vis-q-text-line.w60 { width: 60%; } .vis-q-text-line.w70 { width: 70%; }
.vis-q-text-line.w80 { width: 80%; } .vis-q-text-line.w90 { width: 90%; }
.vis-q-result { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 10px; background: rgba(45,159,74,0.08); border-radius: 6px; font-size: 0.7rem; font-weight: 600; color: #2D9F4A; }

/* --- Visual: Gauge --- */
.vis-gauge { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vis-gauge-arc { position: relative; }
.vis-gauge-needle { position: absolute; bottom: 5px; left: 50%; width: 2px; height: 30px; background: var(--accent); border-radius: 2px; transform-origin: bottom center; }
.vis-gauge-label { font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }

/* --- Visual: Kanban --- */
.vis-kanban { display: flex; gap: 8px; width: 100%; max-width: 200px; }
.vis-kanban-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.vis-kanban-header { font-size: 0.55rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.vis-kanban-card { height: 22px; border-radius: 4px; border-left: 3px solid; }
.vis-kanban-red { background: rgba(220,38,38,0.08); border-color: #DC2626; }
.vis-kanban-yellow { background: rgba(232,164,58,0.08); border-color: #E8A43A; }
.vis-kanban-green { background: rgba(45,159,74,0.08); border-color: #2D9F4A; }

/* --- Visual: Timeline --- */
.vis-timeline { display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 300px; }
.vis-tl-item { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.vis-tl-item:not(:last-child)::after { content: ''; position: absolute; left: 5px; top: 28px; bottom: -2px; width: 2px; background: var(--border); }
.vis-tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 2px; }
.vis-tl-dot-planned { background: #E8A43A; }
.vis-tl-dot-review { background: #8B5CF6; }
.vis-tl-content { display: flex; flex-direction: column; gap: 2px; }
.vis-tl-date { font-size: 0.6rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.vis-tl-title { font-size: 0.75rem; font-weight: 500; color: var(--text); }
.vis-tl-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 0.55rem; font-weight: 700; width: fit-content; text-transform: uppercase; letter-spacing: 0.04em; }
.vis-tl-active { background: rgba(2,82,89,0.1); color: var(--accent); }
.vis-tl-planned { background: rgba(232,164,58,0.1); color: #E8A43A; }
.vis-tl-review { background: rgba(139,92,246,0.1); color: #8B5CF6; }

/* --- Visual: Document Stack --- */
.vis-doc-stack { position: relative; width: 100px; height: 110px; }
.vis-doc {
  position: absolute; top: 0; left: 0; width: 90px; height: 100px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 10px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
}
.showcase-card:hover .vis-doc:nth-child(1) { transform: rotate(-6deg) translate(-4px, 2px); }
.showcase-card:hover .vis-doc:nth-child(2) { transform: rotate(2deg) translate(8px, -6px); }
.showcase-card:hover .vis-doc:nth-child(3) { transform: rotate(-2deg) translate(16px, -12px) scale(1.02); }
.vis-doc-line { display: block; height: 4px; background: var(--border); border-radius: 2px; }
.vis-doc-line.w50 { width: 50%; } .vis-doc-line.w60 { width: 60%; } .vis-doc-line.w70 { width: 70%; }
.vis-doc-line.w80 { width: 80%; } .vis-doc-line.w90 { width: 90%; }
.vis-doc-badge { display: inline-block; margin-top: auto; padding: 2px 6px; font-size: 0.5rem; font-weight: 700; color: #fff; background: var(--accent); border-radius: 4px; width: fit-content; }
.vis-doc-badge.green { background: #2D9F4A; }
.vis-doc-badge.blue { background: #3A7BE8; }

/* --- Visual: Stamp --- */
.vis-stamp { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vis-stamp-circle {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid var(--accent); display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.showcase-card:hover .vis-stamp-circle { transform: scale(1.08) rotate(3deg); }
.vis-stamp-badge {
  display: inline-block; padding: 4px 12px;
  background: rgba(2,82,89,0.08); color: var(--accent);
  font-size: 0.65rem; font-weight: 700; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* --- Visual: AI Chat --- */
.vis-ai-chat { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 300px; }
.vis-chat-bubble { padding: 10px 14px; border-radius: 14px; font-size: 0.72rem; line-height: 1.5; transition: transform 0.3s ease; }
.vis-chat-user { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); align-self: flex-end; border-bottom-right-radius: 4px; max-width: 80%; font-weight: 500; }
.vis-chat-ai { background: rgba(2,82,89,0.05); color: var(--text-secondary); border: 1px solid rgba(2,82,89,0.1); align-self: flex-start; border-bottom-left-radius: 4px; max-width: 90%; }
.showcase-card:hover .vis-chat-user { transform: translateX(4px); }
.showcase-card:hover .vis-chat-ai { transform: translateX(-4px); }
.vis-ai-indicator { display: flex; align-items: center; gap: 4px; font-size: 0.62rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* === ADVOCATI INTERACTIVE CHAT === */
.advocati-inner {
  flex-direction: column;
  gap: 24px;
}
.advocati-chat-window {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.advocati-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.advocati-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.advocati-header-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.advocati-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}
.advocati-status {
  font-size: 0.68rem;
  color: var(--text-secondary);
}
.advocati-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: advocati-pulse 2s ease-in-out infinite;
}
@keyframes advocati-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.advocati-messages {
  padding: 18px;
  min-height: 180px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.advocati-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.55;
  animation: advocati-fadein 0.4s ease;
}
@keyframes advocati-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.advocati-msg-bot {
  background: rgba(2,82,89,0.06);
  border: 1px solid rgba(2,82,89,0.1);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.advocati-msg-user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.advocati-msg-bot .advocati-msg-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.advocati-msg-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.advocati-msg-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.advocati-msg-cta svg {
  flex-shrink: 0;
}
.advocati-typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  align-self: flex-start;
}
.advocati-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: advocati-dot 1.2s ease-in-out infinite;
}
.advocati-typing span:nth-child(2) { animation-delay: 0.15s; }
.advocati-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes advocati-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}
.advocati-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.advocati-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.82rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  font-family: var(--font);
}
.advocati-input:focus {
  border-color: var(--accent);
}
.advocati-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.advocati-send-btn:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}
.advocati-text {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

/* === STACKING CARDS === */
.stacking-section {
  padding: 100px 0 60px;
}

.stacking-cards {
  position: relative;
  padding-bottom: 40px;
}

.stacking-card {
  position: sticky;
  top: calc(80px + var(--card-index, 0) * 28px);
  z-index: var(--card-index, 0);
  margin-bottom: 24px;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.stacking-card-inner {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stacking-step {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(2,82,89,0.06);
  line-height: 1;
  pointer-events: none;
}

.stacking-card-inner h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 12px;
}

.stacking-card-inner p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
}

.stacking-card-final .stacking-card-inner {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  border-color: transparent;
}

.stacking-card-final .stacking-card-inner h3 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  -webkit-text-fill-color: #fff;
}

.stacking-card-final .stacking-card-inner h3 .headline-italic {
  -webkit-text-fill-color: rgba(255,255,255,0.85);
  background: none;
}

.stacking-card-final .stacking-card-inner p {
  color: rgba(255,255,255,0.7);
}

/* === BENEFITS === */
.benefits {
  background: var(--bg-alt);
}

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

.benefit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--transition);
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(2,82,89,0.2);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(2,82,89,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.benefit-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.benefit-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }

/* === REGULATIONS === */
/* === VERORDNUNGEN — 3D Glass Cards === */
.regulations {
  background: var(--bg);
  overflow: clip;
}

.regulations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reg-card {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafb 100%);
  border: 1px solid rgba(2,82,89,0.08);
  border-radius: 20px;
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}

.reg-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(2,82,89,0.10), 0 8px 20px rgba(0,0,0,0.06);
}

.regulations-grid .reg-card:last-child:nth-child(3n+1) {
  grid-column: 2;
}

/* Color glow behind each card — unique per regulation */
.reg-card-glow {
  position: absolute;
  width: 120px; height: 120px;
  top: -30px; right: -30px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.15;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.reg-card:hover .reg-card-glow { opacity: 0.30; }

.reg-glow-cra  { background: #E85D3A; }
.reg-glow-nis2 { background: #D4488E; }
.reg-glow-eudr { background: #2D9F4A; }
.reg-glow-reach { background: #E8A43A; }
.reg-glow-ppwr { background: #3A7BE8; }
.reg-glow-gpsr { background: #8B5CF6; }
.reg-glow-lksg { background: #DC2626; }
.reg-glow-mdr  { background: #0891B2; }
.reg-glow-bfsg { background: #F97316; }
.reg-glow-dsgvo { background: #025259; }

/* Specular shine layer */
.reg-card-shine {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.04) 40%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.04) 60%,
    rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.reg-card:hover .reg-card-shine { opacity: 1; }

/* Card inner content */
.reg-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.reg-badge {
  width: auto;
  padding: 6px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.reg-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
}

.reg-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Badge colors */
.reg-cra { background: linear-gradient(135deg, #E85D3A, #ff7e5f); }
.reg-nis2 { background: linear-gradient(135deg, #D4488E, #e871ab); }
.reg-eudr { background: linear-gradient(135deg, #2D9F4A, #4ece6b); }
.reg-reach { background: linear-gradient(135deg, #E8A43A, #ffc565); }
.reg-ppwr { background: linear-gradient(135deg, #3A7BE8, #6ba0ff); }
.reg-gpsr { background: linear-gradient(135deg, #8B5CF6, #a78bfa); }
.reg-lksg { background: linear-gradient(135deg, #DC2626, #f87171); }
.reg-mdr { background: linear-gradient(135deg, #0891B2, #22d3ee); }
.reg-bfsg { background: linear-gradient(135deg, #F97316, #fdba74); }
.reg-dsgvo { background: linear-gradient(135deg, #025259, #03738C); }

/* === PDF DOWNLOAD SECTION === */
.pdf-download-section {
  display: none;
  padding: 0 0 0;
  background: var(--bg);
}

.pdf-download-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 36px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.pdf-download-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.pdf-download-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 82, 89, 0.08);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.pdf-download-text {
  flex: 1;
}

.pdf-download-text h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--text);
}

.pdf-download-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.pdf-download-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .pdf-download-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: #fff;
  text-align: center;
  padding: 100px 0 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Seamless fade into footer */
.cta-section::after {
  content: '';
  display: block;
  height: 100px;
  margin-top: 48px;
  background: linear-gradient(180deg, transparent 0%, #1a2e2f 100%);
  pointer-events: none;
}

.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 520px; margin: 0 auto 36px; line-height: 1.7; }

/* ============================
   LEGAL PAGES
   ============================ */

.legal-hero {
  padding: 140px 0 48px;
  text-align: center;
}

.legal-hero h1 { margin-bottom: 8px; }

.legal-hero .legal-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px 100px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

.legal-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  list-style: disc;
  margin-bottom: 4px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover { color: var(--accent-light); }

.legal-info-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.legal-info-box p { margin-bottom: 4px; color: var(--text-secondary); font-size: 0.9rem; }
.legal-info-box p:last-child { margin-bottom: 0; }
.legal-info-box strong { color: var(--text); }

.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

@media (max-width: 768px) {
  .legal-content { padding: 0 20px 60px; }
  .legal-hero { padding: 100px 0 24px; }
  .legal-hero h1 { font-size: 2rem; }
}

/* === FOOTER GRADIENT TRANSITION (used on legal/content pages with white bg) === */
.footer-gradient {
  height: 120px;
  background: linear-gradient(180deg, var(--bg, #fff) 0%, #1a2e2f 100%);
  margin-top: -1px;
}

/* === FOOTER === */
.footer {
  background: #1a2e2f;
  padding: 48px 0 32px;
  color: #c8d6d7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand { padding-right: 24px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-logo-icon { width: 28px; height: 28px; }

.footer-brand-text {
  font-size: 0.85rem;
  color: #8fa3a5;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.footer-col a {
  font-size: 0.85rem;
  color: #8fa3a5;
  transition: color var(--transition);
}

.footer-col a:hover { color: #ffffff; }

.footer-social { display: flex; gap: 12px; margin-top: 4px; }

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #8fa3a5;
  transition: background var(--transition), color var(--transition);
}

.footer-social-icon:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #7a9a9c;
  margin-bottom: 4px;
}
.footer-bottom p:last-child a {
  font-weight: 600;
}

.footer-bottom a {
  color: var(--accent-light);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: #ffffff; }

/* ============================
   PRICING PAGE
   ============================ */
.pricing-hero { padding: 140px 0 40px; text-align: center; }
.pricing-hero h1 { margin-bottom: 16px; }

.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 32px; }
.toggle-label { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color var(--transition); cursor: pointer; user-select: none; }
.toggle-label.active, .toggle-label:first-child:not(.toggle-label ~ .toggle-label) { color: var(--text); font-weight: 600; }
.toggle-badge { display: inline-block; background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-left: 6px; vertical-align: middle; }
.toggle-switch { position: relative; width: 52px; height: 28px; background: var(--border); border: none; border-radius: 20px; cursor: pointer; transition: background var(--transition); padding: 0; }
.toggle-switch.active { background: var(--accent); }
.toggle-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform var(--transition); box-shadow: var(--shadow-sm); }
.toggle-switch.active .toggle-knob { transform: translateX(24px); }

.pricing-section { padding: 40px 0 100px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 32px; transition: transform var(--transition), box-shadow var(--transition); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card-featured { border: 2px solid var(--accent); box-shadow: var(--shadow-md); transform: scale(1.03); z-index: 1; }
.pricing-card-featured:hover { transform: scale(1.03) translateY(-4px); box-shadow: var(--shadow-xl); }
.pricing-popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 6px 20px; border-radius: 20px; white-space: nowrap; letter-spacing: 0.02em; }
.pricing-card-enterprise { background: linear-gradient(180deg, var(--bg) 0%, #F0FAFA 100%); border: 1px solid rgba(2,82,89,0.15); }
.pricing-card-header { margin-bottom: 24px; }
.pricing-tier-label { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px; }
.pricing-tier-name { font-size: 1.5rem; margin-bottom: 8px; }
.pricing-tier-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.pricing-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 24px; min-height: 56px; }
.price-amount { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.price-currency { font-size: 1.5rem; font-weight: 600; color: var(--text); margin-left: 4px; }
.price-period { font-size: 0.85rem; color: var(--text-muted); margin-left: 4px; }
.price-amount-custom { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; background: linear-gradient(135deg, var(--accent), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; padding: 8px 0; }
.price-discount-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.price-strikethrough {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-discount-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 99px;
}
.price-yearly-total {
  width: 100%;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.pricing-cta { width: 100%; text-align: center; justify-content: center; margin-bottom: 32px; }
.pricing-features { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; line-height: 1.4; }
.pricing-features li svg { flex-shrink: 0; width: 18px; height: 18px; }
.pricing-features li.included svg { color: var(--accent); }
.pricing-features li.excluded { color: var(--text-muted); }
.pricing-features li.excluded svg { color: var(--text-muted); opacity: 0.4; }
.pricing-features li.excluded s { text-decoration: line-through; text-decoration-color: var(--text-muted); }
.pricing-features li.enterprise-extra { font-weight: 500; color: var(--accent); }

/* --- Enterprise Banner --- */
.enterprise-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin-top: 48px;
  color: #fff;
}
.enterprise-banner-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.enterprise-banner-content { flex: 1; }
.enterprise-banner-content h3 { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.enterprise-banner-content p { font-size: 0.92rem; color: rgba(255,255,255,0.75); line-height: 1.5; }
.enterprise-banner .btn-primary { white-space: nowrap; flex-shrink: 0; }

/* --- Enterprise Form --- */
.enterprise-section { padding: 60px 0 100px; }
.enterprise-form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-row .form-group { margin-bottom: 0; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2,82,89,0.1);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 120px; }
.enterprise-submit { width: 100%; margin-top: 8px; justify-content: center; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; text-align: center; }

.pricing-faq { padding: 100px 0; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: box-shadow var(--transition), transform var(--transition); }
.faq-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.faq-item h4 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.faq-item p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 1024px) {
  .showcase-row,
  .showcase-row-reverse { grid-template-columns: 1fr 1fr; }
  .regulations-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card-featured { transform: none; }
  .pricing-card-featured:hover { transform: translateY(-4px); }
  .faq-grid { grid-template-columns: 1fr; }
  .stacking-card { top: calc(70px + var(--card-index, 0) * 22px); }
  .enterprise-banner { flex-direction: column; text-align: center; padding: 32px 28px; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }

  .hero { padding: 100px 0 40px; }
  .hero h1 { font-size: 2.5rem; word-break: break-word; }
  .hero-subtitle { font-size: 0.95rem; max-width: 100%; padding: 0; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { justify-content: center; font-size: 0.9rem; padding: 14px 20px; }
  .hero-badge { font-size: 0.75rem; }
  .hero-play-btn-circle { width: 56px; height: 56px; }
  .hero-play-btn-circle svg { width: 20px; height: 20px; }
  .hero-play-label { font-size: 0.75rem; }
  .hero-video-wrapper { max-width: 100%; }

  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 1.6rem; }

  .showcase-row,
  .showcase-row-reverse { grid-template-columns: 1fr; }
  .showcase-card { padding: 24px; }

  .stacking-card { top: calc(60px + var(--card-index, 0) * 18px); }
  .stacking-card-inner { padding: 36px 24px; overflow: visible; }
  .stacking-step { font-size: 2.5rem; top: 16px; right: 20px; }
  .stacking-card-inner h3 { font-size: 1.3rem; }
  .stacking-card-final .btn { white-space: normal; text-align: center; word-break: break-word; }

  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card { padding: 24px; }

  .regulations-grid { grid-template-columns: 1fr; gap: 16px; }
  .regulations-grid .reg-card:last-child:nth-child(n) { grid-column: auto; }
  .reg-card { padding: 24px 20px; }

  .marquee-content { gap: 32px; padding-right: 32px; }

  /* CTA section — compact with clean footer transition */
  .cta-section { padding: 48px 0 0; }
  .cta-section::after { height: 40px; margin-top: 24px; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-section p { font-size: 0.95rem; }
  .cta-section .btn { font-size: 0.85rem; padding: 12px 20px; white-space: normal; text-align: center; }
  .cta-line-1 { display: block; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; text-align: center; padding-right: 0; }
  .footer-logo { justify-content: center; }
  .footer-col { align-items: center; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-gradient { height: 40px; }

  .pricing-hero { padding: 100px 0 16px; }
  .pricing-hero h1 { font-size: 1.8rem; }
  .pricing-card { padding: 28px 20px; }
  .price-amount { font-size: 2.4rem; }
  .price-amount-custom { font-size: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .enterprise-form-wrapper { padding: 28px 20px; }
  .enterprise-banner { padding: 24px 20px; }
  .enterprise-section { padding: 20px 0 60px; }

  .showcase-card-inner-horizontal { flex-direction: column; }
  .showcase-card-inner-horizontal .showcase-card-visual { max-width: 100%; }

  /* Hamburger → X animation */
  .nav-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .nav-mobile-toggle { width: 36px; height: 36px; padding: 6px; }
  .nav-mobile-toggle span { width: 20px; margin: 4px auto; }

  /* Dark mode toggle — next to burger on mobile */
  .dark-mode-toggle { width: 32px; height: 32px; margin-left: auto; }
  .dark-mode-toggle svg { width: 16px; height: 16px; }
  .nav-mobile-toggle { margin-left: 8px; }

  /* Hero improvements */
  .hero .container { padding: 0 28px; }
  .hero-subtitle { text-align: left; }
  .hero-video-wrapper { max-width: 90%; margin: 0 auto; }
  .hero-image-glow { display: none; }

  /* Carousel mobile activation — Benefits only */
  .carousel[data-carousel="benefits"] { overflow: hidden; position: relative; }
  .carousel[data-carousel="benefits"] .carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0 calc((100vw - 65vw) / 2);
    cursor: grab;
  }
  .carousel[data-carousel="benefits"] .carousel-track:active { cursor: grabbing; }
  .carousel[data-carousel="benefits"] .benefits-grid {
    display: flex;
    gap: 16px;
    padding: 0 calc((100vw - 65vw) / 2);
  }
  .carousel[data-carousel="benefits"] .benefit-card {
    min-width: 65vw;
    max-width: 65vw;
    flex-shrink: 0;
    opacity: 0.5;
    transform: scale(0.92);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .carousel[data-carousel="benefits"] .benefit-card.carousel-active {
    opacity: 1;
    transform: scale(1);
  }

  /* Module/Regulations: compact accordion list */
  .regulations-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .regulations-grid .reg-card:last-child:nth-child(n) { grid-column: auto; }
  /* Neutralize desktop scroll-spread inline styles on mobile */
  .regulations-grid .reg-card,
  .regulations-grid .reg-card.reg-reveal {
    transform: none !important;
    opacity: 1 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    cursor: pointer;
  }
  .reg-card .reg-card-inner {
    display: grid;
    grid-template-columns: auto 1fr 16px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-align: left;
    position: relative;
  }
  .reg-card .reg-card-inner .reg-badge {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.62rem;
    padding: 4px 9px;
    letter-spacing: 0.03em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  }
  .reg-card .reg-card-inner h4 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .reg-card .reg-card-inner::after {
    content: '';
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%239CA3AF' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
  }
  .reg-card.reg-expanded .reg-card-inner::after {
    transform: rotate(180deg);
  }
  .reg-card .reg-card-inner p {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    width: 100%;
    transition: max-height 0.35s ease, margin 0.3s ease, padding 0.3s ease;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-secondary);
    text-align: left;
  }
  .reg-card.reg-expanded .reg-card-inner p {
    max-height: 240px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .reg-card-glow { display: none; }
  .reg-card-shine { display: none; }
  .reg-card:hover { transform: none !important; box-shadow: none; }

  /* PDF section hide on mobile — see global rule below */

  /* Stacking card final CTA button */
  .stacking-card-final .btn {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 12px 16px;
  }

  /* Burger menu improvements */
  .nav-mobile-menu {
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px 32px 32px 24px;
  }
  .nav-mobile-menu a { font-size: 0.95rem; padding: 12px 16px; }
  .nav-mobile-menu .btn.btn-primary {
    color: #fff !important;
    justify-content: center;
    margin-top: 16px;
  }
  .nav-mobile-menu .btn.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(2, 82, 89, 0.3);
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 2.2rem; }
  .nav-inner { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================
   MOBILE MENU OVERLAY
   ============================ */
.nav-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}
.nav-mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--bg);
  padding: 80px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}
.nav-mobile-overlay.open .nav-mobile-menu {
  transform: translateX(0);
}
.nav-mobile-menu a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-mobile-menu a:hover,
.nav-mobile-menu a:active {
  background: rgba(2, 82, 89, 0.06);
  color: var(--accent);
}
.nav-mobile-menu .nav-pdf-download {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--text);
  border-radius: 10px;
  padding: 10px 16px;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.nav-mobile-menu .nav-pdf-download:hover,
.nav-mobile-menu .nav-pdf-download:active {
  background: rgba(2, 82, 89, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}
.nav-mobile-menu .nav-pdf-download svg {
  flex-shrink: 0;
}

/* ============================
   CAROUSEL BASE
   ============================ */
.carousel-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 8px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .carousel-dots { display: flex; }
}

/* ============================
   FAQ ACCORDION
   ============================ */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  gap: 16px;
  color: inherit;
}
.faq-question h4 { margin-bottom: 0; flex: 1; }
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}
.faq-item[data-faq].open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.35s ease;
  padding-top: 0;
}
.faq-item[data-faq].open .faq-answer {
  max-height: 400px;
  padding-top: 12px;
}
.faq-item[data-faq] { cursor: pointer; }
.faq-item[data-faq]:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ============================
   DARK MODE
   ============================ */

/* --- Dark Mode Toggle Button --- */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(2, 82, 89, 0.06);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.dark-mode-toggle:hover {
  background: rgba(2, 82, 89, 0.12);
  color: var(--accent);
}
.dark-mode-toggle svg { width: 20px; height: 20px; }
.dark-mode-toggle .icon-sun { display: none; }
.dark-mode-toggle .icon-moon { display: block; }

/* --- Dark Mode Variable Overrides --- */
html.dark {
  --bg: #0f1c1d;
  --bg-alt: #162728;
  --bg-dark: #0A1A1B;
  --text: #E8ECEE;
  --text-secondary: #9AACAE;
  --text-muted: #5E7678;
  --border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.3);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.35);
  --accent: #03A0A8;
  --accent-light: #04B5BE;
}

/* Toggle icon swap */
html.dark .dark-mode-toggle .icon-sun { display: block; }
html.dark .dark-mode-toggle .icon-moon { display: none; }
html.dark .dark-mode-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #fbbf24;
}
html.dark .dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fcd34d;
}

/* ============================
   LANGUAGE TOGGLE
   ============================ */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  user-select: none;
  font-family: var(--font);
  transition: box-shadow 0.2s;
}
.lang-toggle:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
/* Fixed toggle (always visible, bottom-right) */
.lang-toggle-fixed {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 10000;
  transform: translateZ(0);
}
/* Mobile menu toggle – not used */
.lang-toggle-mobile {
  display: none;
}
.lang-toggle-option {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 16px;
  transition: background 0.25s, color 0.25s;
  color: var(--text-secondary);
  line-height: 1;
  letter-spacing: 0.02em;
}
.lang-toggle-option.active {
  background: var(--accent);
  color: #fff;
}
html.dark .lang-toggle {
  background: var(--bg);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
html.dark .lang-toggle-option.active {
  background: var(--accent);
}

/* Nav overrides */
html.dark .nav.scrolled {
  background: rgba(15, 28, 29, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
html.dark .nav-logo { color: #E8ECEE; }
html.dark .nav-mobile-toggle span { background: #E8ECEE; }

/* Logo swap: show white logo in dark mode */
html.dark .nav-logo .logo-light { display: none; }
html.dark .nav-logo .logo-dark { display: inline-block; vertical-align: middle; position: relative; top: -1px; }
.nav-logo .logo-dark { display: none; }

/* Legal language notice dark mode */
html.dark #legalLangNotice { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #E8ECEE; }

/* Showcase cards */
html.dark .showcase-card {
  background: linear-gradient(145deg, #1a2e2f 0%, #162728 100%);
  border-color: rgba(255, 255, 255, 0.06);
}
html.dark .showcase-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.15);
}
html.dark .showcase-card-shine {
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.01) 40%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.01) 60%, rgba(255,255,255,0) 100%);
}

/* Reg cards */
html.dark .reg-card {
  background: linear-gradient(145deg, #1a2e2f 0%, #162728 100%);
  border-color: rgba(255, 255, 255, 0.06);
}
html.dark .reg-card:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.15);
}

/* Stacking cards */
html.dark .stacking-card-inner {
  background: var(--bg-alt);
  border-color: rgba(255, 255, 255, 0.06);
}
html.dark .stacking-step { color: rgba(3, 160, 168, 0.08); }

/* Benefit cards */
html.dark .benefit-card {
  background: var(--bg);
  border-color: rgba(255, 255, 255, 0.06);
}
html.dark .benefit-card:hover {
  border-color: rgba(3, 160, 168, 0.3);
}
html.dark .benefit-icon {
  background: rgba(3, 160, 168, 0.12);
}

/* Section label */
html.dark .section-label {
  background: rgba(3, 160, 168, 0.1);
  color: var(--accent);
}

/* Hero badge */
html.dark .hero-badge {
  background: rgba(3, 160, 168, 0.1);
  border-color: rgba(3, 160, 168, 0.2);
}

/* Hero video wrapper */
html.dark .hero-video-wrapper {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Hero glow */
html.dark .hero::before {
  background: radial-gradient(circle, rgba(3, 160, 168, 0.06) 0%, transparent 70%);
}

/* Trust section */
html.dark .trust { border-top-color: rgba(255, 255, 255, 0.06); }

/* Buttons in dark mode */
html.dark .btn-secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}
html.dark .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
html.dark .btn-primary {
  box-shadow: 0 2px 12px rgba(3, 160, 168, 0.3);
}
html.dark .btn-primary:hover {
  box-shadow: 0 4px 20px rgba(3, 160, 168, 0.4);
}

/* Document visual */
html.dark .vis-doc {
  background: #1a2e2f;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Chat visual */
html.dark .vis-chat-user {
  background: var(--bg-alt);
  border-color: rgba(255, 255, 255, 0.08);
}
html.dark .vis-chat-ai {
  background: rgba(3, 160, 168, 0.08);
  border-color: rgba(3, 160, 168, 0.15);
}
/* Advocati chat dark mode */
html.dark .advocati-chat-window {
  background: var(--bg);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
html.dark .advocati-chat-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
html.dark .advocati-msg-bot {
  background: rgba(3, 160, 168, 0.1);
  border-color: rgba(3, 160, 168, 0.18);
}
html.dark .advocati-input {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
html.dark .advocati-input-bar {
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* Radio active in dark */
html.dark .vis-q-radio-active {
  box-shadow: inset 0 0 0 2px #1a2e2f;
}

/* Pricing cards */
html.dark .pricing-card {
  background: var(--bg);
  border-color: rgba(255, 255, 255, 0.06);
}
html.dark .pricing-card-featured {
  border-color: var(--accent);
}
html.dark .pricing-card-enterprise {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(3, 160, 168, 0.06) 100%);
  border-color: rgba(3, 160, 168, 0.2);
}

/* Toggle switch */
html.dark .toggle-switch { background: rgba(255, 255, 255, 0.12); }
html.dark .toggle-switch.active { background: var(--accent); }

/* FAQ */
html.dark .faq-item {
  background: var(--bg);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Legal info box */
html.dark .legal-info-box {
  background: var(--bg-alt);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Form inputs */
html.dark .form-input,
html.dark .form-select,
html.dark .form-textarea {
  background: var(--bg-alt);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
html.dark .form-input:focus,
html.dark .form-select:focus,
html.dark .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(3, 160, 168, 0.15);
}
html.dark .form-input::placeholder,
html.dark .form-textarea::placeholder { color: var(--text-muted); }

/* Enterprise form wrapper */
html.dark .enterprise-form-wrapper {
  background: var(--bg);
  border-color: rgba(255, 255, 255, 0.06);
}

/* PDF Download section */
html.dark .pdf-download-section { background: var(--bg); }
html.dark .pdf-download-card {
  background: var(--bg-alt);
  border-color: rgba(255, 255, 255, 0.08);
}
html.dark .pdf-download-card:hover { border-color: var(--accent); }
html.dark .pdf-download-icon { background: rgba(3, 160, 168, 0.1); }
html.dark .pdf-download-text h3 { color: var(--text); }

/* Footer - already dark, just harmonize */
html.dark .footer { background: #0a1415; }
html.dark .footer-bottom { border-top-color: rgba(255, 255, 255, 0.06); }

/* Footer gradient */
html.dark .footer-gradient {
  background: linear-gradient(180deg, var(--bg) 0%, #0a1415 100%);
}

/* CTA section gradient adjustment */
html.dark .cta-section::after {
  background: linear-gradient(180deg, transparent 0%, #0a1415 100%);
}

/* Gauge SVG track */
html.dark .vis-gauge-arc path[stroke="#E5E7EB"] { stroke: rgba(255,255,255,0.1); }

/* Headline italic gradient in dark */
html.dark .headline-italic {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
}

/* Hero play button */
html.dark .hero-play-btn-circle {
  background: rgba(15, 28, 29, 0.9);
  color: var(--accent);
}
html.dark .hero-play-overlay:hover .hero-play-btn-circle {
  background: rgba(15, 28, 29, 0.95);
}

/* Enterprise banner */
html.dark .enterprise-banner {
  background: linear-gradient(135deg, #0a1415 0%, rgba(3, 160, 168, 0.3) 100%);
}

/* Scrollbar for dark mode */
html.dark { color-scheme: dark; }

/* Mobile menu dark mode */
@media (max-width: 768px) {
  html.dark .nav-links {
    background: rgba(15, 28, 29, 0.98);
    border-color: rgba(255, 255, 255, 0.06);
  }
}

/* ============================================================
   Cookie Banner — DSGVO-konform
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  padding: 24px 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.cookie-banner-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  color: var(--accent-light);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
}

.cookie-btn-accept:hover {
  background: var(--accent-light);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.cookie-btn-settings:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 12px;
}

.cookie-btn-reject:hover {
  color: var(--text);
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

.cookie-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  background: var(--bg);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 32px;
}

.cookie-modal h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.cookie-modal > p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 24px;
  line-height: 1.6;
}

.cookie-category {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-category-header span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.cookie-category p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 8px 0 0;
  line-height: 1.5;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 12px;
  transition: background 0.2s ease;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-badge-required {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 8px;
}

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.cookie-modal-actions .cookie-btn {
  flex: 1;
}

/* Dark mode */
html.dark .cookie-banner {
  background: var(--bg-dark);
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

html.dark .cookie-modal {
  background: var(--bg-dark);
}

html.dark .cookie-category {
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark .cookie-toggle-slider {
  background: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    gap: 16px;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }

  .cookie-modal {
    padding: 24px;
    margin: 16px;
  }

  .cookie-modal-actions {
    flex-direction: column;
  }
}

/* ==============================
   CERTIFICATIONS SECTION
   ============================== */
.certifications {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  position: relative;
  overflow: hidden;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.cert-card {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #fdfaf3 60%, #f9f3e3 100%);
  border: 1px solid rgba(197, 164, 78, 0.18);
  border-radius: 24px;
  padding: 40px 32px 36px;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
  text-align: center;
}

.cert-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 24px 60px rgba(197, 164, 78, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(232, 212, 139, 0.4);
}

.cert-card-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.cert-card:hover .cert-card-glow {
  opacity: 0.28;
}

.cert-glow-soc2 { background: linear-gradient(135deg, #C5A44E, #E8D48B); }
.cert-glow-iso { background: linear-gradient(135deg, #C5A44E, #E8D48B); }
.cert-glow-dsgvo { background: linear-gradient(135deg, #C5A44E, #E8D48B); }

.cert-card-shine {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 24px;
  background: linear-gradient(135deg,
    rgba(255,255,255,0) 0%,
    rgba(232,212,139,0.06) 35%,
    rgba(232,212,139,0.2) 50%,
    rgba(232,212,139,0.06) 65%,
    rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.cert-card:hover .cert-card-shine {
  opacity: 1;
}

.cert-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cert-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(197,164,78,0.08), rgba(232,212,139,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.cert-badge {
  display: inline-block;
  background: linear-gradient(135deg, #C5A44E, #D4B85C);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(197, 164, 78, 0.3);
}

.cert-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 4px 0 0;
  color: var(--text);
  line-height: 1.3;
}

.cert-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Dark mode */
html.dark .cert-card {
  background: linear-gradient(145deg, rgba(30,30,30,1) 0%, rgba(40,36,25,1) 60%, rgba(45,40,28,1) 100%);
  border-color: rgba(197, 164, 78, 0.15);
}

html.dark .cert-card:hover {
  box-shadow:
    0 24px 60px rgba(197, 164, 78, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(232, 212, 139, 0.1);
}

html.dark .cert-icon {
  background: linear-gradient(145deg, rgba(197,164,78,0.1), rgba(232,212,139,0.06));
}

/* Responsive */
@media (max-width: 768px) {
  .certifications {
    padding: 64px 0 48px;
  }
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }
  .cert-card {
    padding: 32px 24px 28px;
  }
}

/* ==============================
   TRUST CENTER TABS
   ============================== */
.trust-tabs {
  display: flex;
  width: fit-content;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 6px;
  margin: 0 auto 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}

.trust-tabs::-webkit-scrollbar {
  display: none;
}

.trust-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-tab:hover {
  color: var(--text);
  background: rgba(2, 82, 89, 0.06);
}

.trust-tab.active {
  background: var(--bg);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.trust-tab svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.trust-tab.active svg {
  opacity: 1;
  stroke: var(--accent);
}

.trust-tab-panel {
  display: none;
}

.trust-tab-panel.active {
  display: block;
  animation: trustTabFadeIn 0.3s ease;
}

@keyframes trustTabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dark mode */
html.dark .trust-tabs {
  background: rgba(255, 255, 255, 0.04);
}

html.dark .trust-tab:hover {
  background: rgba(255, 255, 255, 0.06);
}

html.dark .trust-tab.active {
  background: var(--bg-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .trust-tabs {
    flex-wrap: wrap;
    width: 100%;
    gap: 4px;
    padding: 6px;
    margin-bottom: 24px;
    justify-content: center;
    overflow-x: visible;
  }

  .trust-tab {
    padding: 10px 14px;
    font-size: 0.8rem;
    gap: 6px;
    flex-shrink: 1;
  }

  .trust-tab svg {
    width: 14px;
    height: 14px;
  }
}

/* ============================================================
   KANZLEIEN PAGE
   ============================================================ */

/* Kanzlei Visual Elements in Showcase Cards */
.kanz-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 120px;
}

.kanz-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.kanz-flow-arrow {
  color: var(--text-muted);
}

/* Cost Badge */
.kanz-visual-cost {
  flex-direction: column;
}

.kanz-cost-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(2, 82, 89, 0.08) 0%, rgba(3, 115, 140, 0.04) 100%);
  border: 1px solid rgba(2, 82, 89, 0.15);
}

.kanz-cost-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.kanz-cost-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Notification Visual */
.kanz-visual-notify {
  flex-direction: column;
}

.kanz-notification {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.kanz-notif-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E85D3A;
  border: 3px solid var(--bg);
  animation: kanzPulse 2s ease-in-out infinite;
}

@keyframes kanzPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* Decide Visual (Accept/Decline) */
.kanz-visual-decide {
  gap: 20px;
}

.kanz-decide-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.kanz-decide-option:hover {
  transform: translateY(-2px);
}

.kanz-decide-accept {
  background: rgba(45, 159, 74, 0.1);
  border: 1px solid rgba(45, 159, 74, 0.25);
  color: #2D9F4A;
}

.kanz-decide-decline {
  background: rgba(232, 93, 58, 0.1);
  border: 1px solid rgba(232, 93, 58, 0.25);
  color: #E85D3A;
}

/* Certification Doc Visual */
.kanz-visual-certify {
  flex-direction: column;
}

.kanz-cert-doc {
  position: relative;
  width: 120px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.kanz-cert-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(2, 82, 89, 0.12);
  margin-bottom: 8px;
}

.kanz-cert-line-short {
  width: 60%;
}

.kanz-cert-stamp {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* Payment Visual */
.kanz-visual-payment {
  flex-direction: column;
}

.kanz-payment-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(2, 82, 89, 0.08) 0%, rgba(3, 115, 140, 0.04) 100%);
  border: 1px solid rgba(2, 82, 89, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

/* Dark Mode Kanzleien */
html.dark .kanz-cost-badge {
  background: linear-gradient(135deg, rgba(3, 115, 140, 0.15) 0%, rgba(2, 82, 89, 0.08) 100%);
  border-color: rgba(3, 115, 140, 0.25);
}

html.dark .kanz-notif-dot {
  border-color: var(--bg-dark);
}

html.dark .kanz-decide-accept {
  background: rgba(45, 159, 74, 0.15);
  border-color: rgba(45, 159, 74, 0.3);
}

html.dark .kanz-decide-decline {
  background: rgba(232, 93, 58, 0.15);
  border-color: rgba(232, 93, 58, 0.3);
}

html.dark .kanz-cert-doc {
  background: var(--bg-dark);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .kanz-cert-line {
  background: rgba(255, 255, 255, 0.1);
}

html.dark .kanz-payment-icon {
  background: linear-gradient(135deg, rgba(3, 115, 140, 0.15) 0%, rgba(2, 82, 89, 0.08) 100%);
  border-color: rgba(3, 115, 140, 0.25);
}

/* Responsive Kanzleien */
@media (max-width: 768px) {
  .kanz-visual-decide {
    gap: 12px;
  }

  .kanz-decide-option {
    padding: 12px 16px;
    font-size: 0.8rem;
  }

  .kanz-visual-register {
    gap: 8px;
  }

  .kanz-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .kanz-icon-circle svg {
    width: 24px;
    height: 24px;
  }

  .kanz-cost-amount {
    font-size: 2rem;
  }
}
