/* =================================================================
   OperisDesk — Shared Stylesheet
   Used across all subpages: /impressum, /datenschutz, /agb, /avv,
   /sla, /sicherheit, /faq, /trial — and as base for index.html.
   ================================================================= */

:root {
  --navy-950: #050f26;
  --navy-900: #0b1f47;
  --navy-800: #102a5e;
  --navy-700: #1a3a7e;
  --navy-600: #2455a8;
  --blue-500: #3b7bd9;
  --blue-400: #5b9de8;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --blue-200: #bfd9f5;
  --blue-50:  #eef4fc;
  --ink-900: #0a1733;
  --ink-700: #2a3656;
  --ink-500: #5a6580;
  --ink-400: #7c89a6;
  --ink-300: #9aa3bb;
  --paper:   #fbfcfe;
  --white:   #ffffff;
  --accent:  #ff7a45;
  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --line:    #e8edf5;

  --surface:        #ffffff;
  --surface-soft:   #f8fafd;
  --surface-strong: #ffffff;
  --nav-bg:         rgba(251, 252, 254, 0.72);
  --nav-bg-scrolled: rgba(251, 252, 254, 0.88);
  --footer-bg:      var(--navy-900);
  --footer-text:    rgba(255, 255, 255, 0.78);
  --shadow-card:    0 4px 18px -8px rgba(11, 31, 71, 0.12);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  240ms;
}

/* ============ DARK MODE (Subpages) ============ */
/* Nur neutrale Variablen werden invertiert. Brand-Farben und --white/--paper bleiben.
   Body-Background nutzt #000823 (exakter Logo-Hintergrund-Blauton aus 02_inverse_negative). */
[data-theme="dark"] {
  --ink-900:  #f1f5fb;
  --ink-700:  #c4cee0;
  --ink-500:  #9aa6c0;
  --ink-400:  #7d89a3;
  --ink-300:  #5e6a85;

  --line:     #0c1640;

  --surface:        #01103e;
  --surface-soft:   #010a2c;
  --surface-strong: #021551;
  --nav-bg:         rgba(1, 9, 36, 0.72);
  --nav-bg-scrolled: rgba(1, 9, 36, 0.92);
  --shadow-card:    0 6px 22px -8px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] body {
  background: #000823;
  color: var(--ink-900);
}

/* Logo-Switch — nur in der Nav (Footer ist immer dunkel) */
.nav-logo .logo-dark { display: none; }
[data-theme="dark"] .nav-logo .logo-light { display: none; }
[data-theme="dark"] .nav-logo .logo-dark { display: block; }

/* Theme-Toggle Button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  width: 38px; height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink-700);
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
  color: var(--navy-900);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
}
.theme-toggle svg {
  width: 18px; height: 18px;
  position: absolute;
  transition: transform 400ms var(--ease), opacity 280ms var(--ease);
}
.theme-toggle .sun-icon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.theme-toggle .moon-icon { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .theme-toggle .sun-icon { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .theme-toggle .moon-icon { opacity: 0; transform: rotate(90deg) scale(0.4); }
@media (max-width: 640px) {
  .theme-toggle { width: 36px; height: 36px; }
  .theme-toggle svg { width: 17px; height: 17px; }
}

/* Smooth transitions beim Theme-Switch */
body, .site-nav, .info-box, .data-list li, footer, .legal-content,
details.faq-item, .page-header {
  transition: background-color 280ms var(--ease), color 280ms var(--ease), border-color 280ms var(--ease);
}

/* Dark-Mode: Element-Anpassungen */
[data-theme="dark"] .site-nav { background: var(--nav-bg); border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .site-nav.scrolled { background: var(--nav-bg-scrolled); }
[data-theme="dark"] .nav-links a.link:hover { background: rgba(255,255,255,0.05); color: var(--white); }
[data-theme="dark"] .nav-cockpit { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
[data-theme="dark"] .nav-cockpit:hover { background: rgba(255,255,255,0.14); }
[data-theme="dark"] .info-box,
[data-theme="dark"] .data-list li,
[data-theme="dark"] details.faq-item {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-900);
}
[data-theme="dark"] details.faq-item summary { color: var(--ink-900); }
[data-theme="dark"] details.faq-item[open] { background: var(--surface-strong); }
[data-theme="dark"] .page-header { background: var(--surface-soft); }
[data-theme="dark"] .data-list .dt { color: var(--ink-500); }
[data-theme="dark"] .legal-content h2 { color: var(--ink-900); }
[data-theme="dark"] .legal-content p { color: var(--ink-700); }
[data-theme="dark"] .back-link { color: var(--ink-500); }
[data-theme="dark"] .back-link:hover { color: var(--cyan-300); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--surface-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}
img, svg { max-width: 100%; display: block; }
a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--navy-700); color: var(--white); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ============ NAV ============ */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 252, 254, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
nav.site-nav.scrolled {
  background: rgba(251, 252, 254, 0.88);
  border-bottom-color: var(--line);
}
nav.site-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 6px; padding-bottom: 6px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 85px; width: auto; display: block; }
@media (max-width: 768px) {
  nav.site-nav .container { padding-top: 4px; padding-bottom: 4px; }
  .nav-logo img { height: 60px; }
}
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a.link {
  color: var(--ink-700); text-decoration: none;
  font-size: 14.5px; font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  position: relative;
}
.nav-links a.link:hover { color: var(--navy-900); background: var(--blue-50); }
.nav-links a.link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px; right: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-700), var(--cyan-400));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}
.nav-links a.link:hover::after { transform: scaleX(1); }

.nav-cockpit {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--navy-800) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1.5px solid var(--line);
  transition: all var(--dur) var(--ease);
  margin-left: 6px;
}
.nav-cockpit:hover {
  border-color: var(--navy-800);
  background: var(--navy-900);
  color: var(--white) !important;
  transform: translateY(-1px);
}
.nav-cockpit svg { width: 14px; height: 14px; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  box-shadow: 0 6px 18px -6px rgba(26, 58, 126, 0.5);
  transition: all var(--dur) var(--ease);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px rgba(26, 58, 126, 0.55);
}
.nav-cta.trial {
  background: linear-gradient(135deg, var(--accent) 0%, #ff5b1f 100%);
  box-shadow: 0 6px 18px -6px rgba(255, 122, 69, 0.5);
}

@media (max-width: 900px) {
  .nav-links a.link { display: none; }
}
@media (max-width: 560px) {
  .nav-cockpit span { display: none; }
  .nav-cockpit { padding: 9px 12px; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px -6px rgba(26, 58, 126, 0.45);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(26, 58, 126, 0.55);
}
.btn-trial {
  background: linear-gradient(135deg, var(--accent) 0%, #ff5b1f 100%);
  color: var(--white);
  box-shadow: 0 8px 24px -6px rgba(255, 122, 69, 0.5);
}
.btn-trial:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(255, 122, 69, 0.6);
}
.btn-cockpit {
  background: var(--surface);
  color: var(--navy-800);
  border: 1.5px solid var(--line);
  box-shadow: 0 2px 6px -2px rgba(10, 23, 51, 0.05);
}
.btn-cockpit:hover {
  border-color: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(10, 23, 51, 0.12);
}
.btn svg { width: 16px; height: 16px; }

/* ============ PAGE HEADER (subpages) ============ */
.page-header {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-header::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 620px; height: 620px;
  background: radial-gradient(circle at center,
    rgba(34, 211, 238, 0.14) 0%,
    transparent 65%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; max-width: 900px; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--navy-700);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  margin-bottom: 20px;
  transition: gap var(--dur) var(--ease);
}
.back-link:hover { gap: 12px; }
.back-link svg { width: 16px; height: 16px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--navy-700);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  margin-bottom: 14px;
}
h1.page-title {
  font-weight: 800;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin-bottom: 18px;
}
h1.page-title .grad {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--blue-500) 50%, var(--cyan-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-header p.lead {
  font-size: 17.5px;
  color: var(--ink-500);
  line-height: 1.6;
  max-width: 680px;
}

/* ============ LEGAL CONTENT ============ */
.legal-content {
  padding: 64px 0 96px;
}
.legal-content .container { max-width: 820px; }

.legal-content h2 {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 48px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-weight: 600;
  font-size: 19px;
  color: var(--ink-900);
  margin: 28px 0 10px;
  letter-spacing: -0.015em;
}
.legal-content p,
.legal-content li {
  font-size: 15.5px;
  color: var(--ink-700);
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-content ul, .legal-content ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
.legal-content li { margin-bottom: 8px; }
.legal-content a {
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 58, 126, 0.3);
  transition: border-color var(--dur) var(--ease);
}
.legal-content a:hover { border-bottom-color: var(--navy-700); }
.legal-content strong { color: var(--ink-900); font-weight: 600; }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}
.legal-content table th,
.legal-content table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.legal-content table th {
  font-weight: 600;
  color: var(--ink-900);
  background: var(--blue-50);
}
.legal-content table tr:last-child td { border-bottom: none; }

.info-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-box .info-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-800), var(--cyan-400));
  color: var(--white);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.info-box .info-icon svg { width: 16px; height: 16px; }
.info-box p { font-size: 14.5px; margin-bottom: 0; line-height: 1.6; }

.placeholder-note {
  background: linear-gradient(135deg, rgba(255, 122, 69, 0.06), rgba(245, 184, 0, 0.06));
  border: 1px dashed rgba(255, 122, 69, 0.35);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}
.placeholder-note h3 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.placeholder-note p { margin-bottom: 0; font-size: 14.5px; }

.data-list {
  list-style: none !important;
  padding: 0 !important;
}
.data-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0 !important;
}
.data-list li:last-child { border-bottom: none; }
.data-list .dt {
  font-size: 13px;
  color: var(--ink-500);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}
@media (max-width: 560px) {
  .data-list li { grid-template-columns: 1fr; gap: 4px; }
}

.updated {
  display: inline-block;
  background: var(--blue-50);
  color: var(--navy-700);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  margin-top: 24px;
}

/* ============ FOOTER ============ */
footer.site-footer {
  background: var(--navy-950);
  color: var(--ink-300);
  padding: 76px 0 32px;
  position: relative;
  overflow: hidden;
}
footer.site-footer::before {
  content: '';
  position: absolute;
  top: -150px; left: 50%;
  width: 900px; height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(34, 211, 238, 0.08) 0%,
    transparent 60%);
  pointer-events: none;
}
footer.site-footer .container { position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; } }
.footer-brand img { height: 38px; width: auto; margin-bottom: 18px; opacity: 0.95; }
.footer-brand .footer-claim {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan-300);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-brand p {
  font-size: 13.5px;
  color: var(--ink-300);
  line-height: 1.65;
  max-width: 320px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a {
  color: var(--ink-300);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--dur) var(--ease);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-400);
}
.footer-bottom-links a {
  color: var(--ink-300);
  text-decoration: none;
  margin-left: 22px;
  transition: color var(--dur) var(--ease);
}
.footer-bottom-links a:hover { color: var(--white); }
@media (max-width: 480px) {
  .footer-bottom-links a { margin-left: 0; margin-right: 18px; }
}

/* ============ BETA BANNER ============ */
.beta-banner {
  position: relative;
  background: linear-gradient(135deg, #ff7a45 0%, #ff5b1f 60%, #ff9a6d 100%);
  color: var(--white);
  padding: 40px 0;
  overflow: hidden;
  isolation: isolate;
}
.beta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(34, 211, 238, 0.18) 0%, transparent 45%);
  pointer-events: none;
  z-index: -1;
}
.beta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, transparent 80%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}
.beta-banner .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: 1200px;
}
@media (max-width: 820px) {
  .beta-banner .container { grid-template-columns: 1fr; gap: 20px; text-align: center; }
}
.beta-icon {
  width: 58px; height: 58px;
  flex-shrink: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
@media (max-width: 820px) {
  .beta-icon { margin: 0 auto; }
}
.beta-icon svg {
  width: 28px; height: 28px;
  color: var(--white);
}
.beta-content {
  max-width: 820px;
}
.beta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
}
.beta-tag .beta-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--surface);
  animation: betaPulse 1.8s ease-in-out infinite;
}
@keyframes betaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  50%      { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}
.beta-content p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}
.beta-content p + p { margin-top: 8px; }
.beta-content strong { color: var(--white); font-weight: 700; }
.beta-content a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  transition: border-color var(--dur) var(--ease);
}
.beta-content a:hover { border-bottom-color: var(--white); }
.beta-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  color: #ff5b1f;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.25);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.beta-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.3);
}
.beta-cta svg { width: 14px; height: 14px; }

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--navy-800), var(--blue-500), var(--cyan-400));
  z-index: 200;
  transition: width 50ms linear;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

/* ============ SCROLL-TOP ============ */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  color: var(--white);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 10px 30px -6px rgba(26, 58, 126, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: all 300ms var(--ease);
  z-index: 90;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 16px 40px -6px rgba(26, 58, 126, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.scroll-top svg { width: 22px; height: 22px; }
.scroll-top .ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--cyan-400);
  opacity: 0;
  animation: scrollRing 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scrollRing {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}
@media (max-width: 520px) {
  .scroll-top { bottom: 18px; right: 18px; width: 46px; height: 46px; }
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  max-width: 920px;
  width: calc(100% - 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow:
    0 30px 60px -12px rgba(10, 23, 51, 0.25),
    0 0 0 1px var(--line);
  z-index: 150;
  transition: transform 400ms var(--ease), opacity 400ms var(--ease);
  opacity: 0;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--cyan-400));
  color: var(--white);
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -4px rgba(26, 58, 126, 0.4);
}
.cookie-icon svg { width: 22px; height: 22px; }
.cookie-content h3 {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-900);
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.cookie-content p {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.55;
  margin-bottom: 0;
}
.cookie-content p a {
  color: var(--navy-700);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(26, 58, 126, 0.3);
}
.cookie-content p a:hover { border-bottom-color: var(--navy-700); }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.cookie-actions .btn-cookie {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-700);
  transition: all var(--dur) var(--ease);
  font-family: var(--font-body);
}
.cookie-actions .btn-cookie:hover {
  border-color: var(--ink-700);
  color: var(--ink-900);
}
.cookie-actions .btn-cookie.primary {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 6px 18px -6px rgba(26, 58, 126, 0.5);
}
.cookie-actions .btn-cookie.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px rgba(26, 58, 126, 0.6);
}
@media (max-width: 640px) {
  .cookie-banner { padding: 20px; bottom: 12px; width: calc(100% - 24px); }
  .cookie-head { flex-direction: column; gap: 12px; }
  .cookie-icon { width: 36px; height: 36px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn-cookie { flex: 1; text-align: center; }
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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