/* ==========================================================================
   Aldaas Services — Design System
   Premium light theme: deep navy, electric blue, generous whitespace
   ========================================================================== */

/* Inter — lokal gehostet (DSGVO: keine Verbindung zu Google-Servern) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand colors */
  --navy-950:        #060F1F;
  --navy-900:        #081427;
  --navy:            #0B1F3A;
  --navy-light:      #1F4068;
  --accent:          #0066FF;
  --accent-dark:     #0052CC;
  --accent-sky:      #38BDF8;
  --accent-light:    #E5F0FF;

  /* Surfaces */
  --bg-page:         #F6F9FC;
  --bg-card:         #FFFFFF;
  --bg-tint:         #EEF4FB;

  /* Text */
  --text-main:       #1E293B;
  --text-muted:      #51607A;
  --text-on-dark:    rgba(255, 255, 255, 0.78);

  /* Borders */
  --border:          #E3EAF3;
  --border-strong:   #C9D6E6;

  /* Typography */
  --font-sans:       'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-8: 3rem;    --sp-10: 4rem;
  --sp-12: 6rem;   --sp-16: 8rem;

  /* Layout */
  --container:       1180px;
  --header-height:   72px;
  --radius-sm:       0.625rem;
  --radius-md:       1rem;
  --radius-lg:       1.5rem;
  --radius-pill:     999px;

  /* Effects */
  --shadow-sm:       0 1px 2px rgba(11, 31, 58, 0.04), 0 4px 12px rgba(11, 31, 58, 0.05);
  --shadow-md:       0 4px 8px rgba(11, 31, 58, 0.05), 0 12px 28px rgba(11, 31, 58, 0.09);
  --shadow-lg:       0 8px 16px rgba(11, 31, 58, 0.07), 0 28px 56px rgba(11, 31, 58, 0.13);
  --shadow-accent:   0 8px 24px rgba(0, 102, 255, 0.28);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-sky) 100%);
  --glass-blur:      blur(14px);

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

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--sp-4));
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: var(--sp-4); z-index: 200;
  background: var(--navy); color: #fff;
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius-sm);
  font-weight: 600; transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: var(--sp-4); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-weight: 800; color: var(--navy); line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.875rem); margin-bottom: var(--sp-4); }
h3 { font-size: 1.3rem; margin-bottom: var(--sp-2); letter-spacing: -0.01em; }

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px;
  background: var(--gradient-accent); border-radius: 2px;
}
.section-header .eyebrow::before { display: none; }

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--sp-5);
}

.section { padding-block: var(--sp-12); position: relative; }
@media (min-width: 768px) { .section { padding-block: var(--sp-16); } }

.section--tint { background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg-page) 100%); }

.section-header {
  text-align: center; max-width: 720px;
  margin-inline: auto; margin-bottom: var(--sp-10);
}
.section-header .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-height);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid transparent;
  transition: height 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled {
  height: 60px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(11, 31, 58, 0.07);
}
.brand img { transition: height 0.3s var(--ease-out); }
.site-header.is-scrolled .brand img { height: 36px; }

.site-header__inner,
.site-header .container {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--sp-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }

.site-nav { display: none; }

.site-header .site-header__cta { display: none; }

@media (min-width: 920px) {
  .site-nav { display: flex; gap: var(--sp-2); align-items: center; position: relative; }
  .site-nav a {
    position: relative; z-index: 1;
    font-weight: 600; font-size: 0.95rem; color: var(--text-muted);
    padding: 0.45rem 0.9rem; border-radius: var(--radius-pill);
    transition: color 0.2s ease;
  }
  .site-nav a:hover, .site-nav a.is-active { color: var(--accent); }

  /* Sliding pill indicator (positioned by JS) */
  .site-nav .nav-pill {
    position: absolute; top: 50%; left: 0;
    height: 2.1rem; width: 0;
    transform: translateY(-50%);
    background: var(--accent-light);
    border-radius: var(--radius-pill);
    opacity: 0;
    transition: left 0.35s var(--ease-out), width 0.35s var(--ease-out), opacity 0.25s ease;
    pointer-events: none;
  }

  .site-header .site-header__cta { display: inline-flex; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; align-items: center;
  background: none; border: none; cursor: pointer; padding: 0;
  z-index: 110;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 920px) { .nav-toggle { display: none; } }

/* Mobile nav panel */
@media (max-width: 919.98px) {
  .site-nav {
    display: flex; flex-direction: column; gap: var(--sp-2);
    position: fixed; top: var(--header-height); left: var(--sp-4); right: var(--sp-4);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--sp-4);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease-out), visibility 0.25s;
    z-index: 105;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a {
    font-weight: 600; color: var(--text-main);
    padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
  }
  .site-nav a:hover, .site-nav a.is-active { background: var(--accent-light); color: var(--accent); }
}

.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 20, 39, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.nav-overlay.is-visible { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.875rem 1.75rem;
  border: none; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-align: center; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  position: relative; overflow: hidden;
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary::before {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 102, 255, 0.38); }
.btn--primary:hover::before { animation: btn-shine 0.7s var(--ease-out); }
.btn--primary:active { transform: translateY(0); }
@keyframes btn-shine { to { left: 130%; } }

.btn--secondary {
  background: #fff; color: var(--navy);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.1); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn--ghost-dark:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }

.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--sp-10));
  padding-bottom: var(--sp-12);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-height) + var(--sp-12)); padding-bottom: var(--sp-16); }
}

/* Ambient background: soft glows + dot grid */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(46rem 30rem at 85% -10%, rgba(0, 102, 255, 0.10), transparent 60%),
    radial-gradient(38rem 26rem at -10% 35%, rgba(56, 189, 248, 0.10), transparent 60%),
    var(--bg-page);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(11, 31, 58, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(60rem 40rem at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(60rem 40rem at 50% 0%, black 30%, transparent 75%);
}

.hero__grid {
  display: grid; gap: var(--sp-10); align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-12); }
}

.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-5);
}
.hero__badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.15);
}

.hero h1 { margin-bottom: var(--sp-5); }
.hero .lead { margin-bottom: var(--sp-6); }

.hero__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  padding: 0; margin: 0; list-style: none;
}
.hero__trust li {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 0.92rem; font-weight: 600; color: var(--text-muted);
}
.hero__trust svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* Hero entrance choreography */
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__content > * { animation: rise 0.7s var(--ease-out) both; }
.hero__content > :nth-child(1) { animation-delay: 0.05s; }
.hero__content > :nth-child(2) { animation-delay: 0.15s; }
.hero__content > :nth-child(3) { animation-delay: 0.25s; }
.hero__content > :nth-child(4) { animation-delay: 0.35s; }
.hero__content > :nth-child(5) { animation-delay: 0.45s; }

/* Aurora background (animated gradient blobs) */
.aurora {
  position: absolute; inset: -10% -5%; z-index: -1;
  pointer-events: none;
  transform: translateY(var(--py, 0));
  will-change: transform;
}
.aurora span {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.5;
  will-change: transform;
}
.aurora span:nth-child(1) {
  width: 42rem; height: 30rem; top: -12%; right: -8%;
  background: radial-gradient(closest-side, rgba(0, 102, 255, 0.22), transparent 70%);
  animation: aurora-1 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  width: 36rem; height: 26rem; top: 30%; left: -12%;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.20), transparent 70%);
  animation: aurora-2 32s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
  width: 26rem; height: 22rem; bottom: -10%; right: 22%;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.12), transparent 70%);
  animation: aurora-3 38s ease-in-out infinite alternate;
}
@keyframes aurora-1 { to { transform: translate(-9rem, 5rem) scale(1.15); } }
@keyframes aurora-2 { to { transform: translate(7rem, -4rem) scale(0.92); } }
@keyframes aurora-3 { to { transform: translate(-5rem, -6rem) scale(1.1); } }

/* --------------------------------------------------------------------------
   Hero mockup scene (browser + phone + business card)
   -------------------------------------------------------------------------- */
.hero__visual { position: relative; }
.hero__visual::before {
  content: ""; position: absolute; inset: -8% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 102, 255, 0.15), transparent 70%);
  filter: blur(10px);
}
/* Organic morphing blob behind the mockup scene */
.hero__visual::after {
  content: ""; position: absolute; inset: 4% -5% -7% 10%; z-index: -1;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.09), rgba(56, 189, 248, 0.12));
  border-radius: 58% 42% 38% 62% / 53% 45% 55% 47%;
  animation: blob-morph 16s ease-in-out infinite alternate;
}
@keyframes blob-morph {
  to {
    border-radius: 40% 60% 62% 38% / 46% 58% 42% 54%;
    transform: rotate(5deg) scale(1.05);
  }
}

.mockup-scene {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 8 / 7;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Skeleton building blocks */
.mockup-scene i { display: block; }
.bar { border-radius: 4px; background: #E3EAF3; }
.bar--head { height: 13px; width: 92%; background: #15294B; margin-bottom: 8px; }
.bar--head.short { width: 64%; }
.bar--sm { height: 7px; width: 84%; margin-bottom: 7px; }
.bar--sm.short { width: 58%; }
.mini-logo { width: 56px; height: 11px; border-radius: 5px; background: var(--gradient-accent); }
.mini-btn { display: inline-block; width: 66px; height: 17px; border-radius: 9px; background: var(--gradient-accent); }
.mini-btn--ghost { background: #fff; border: 1.5px solid #D7E1EE; }
.mini-btn-row { display: flex; gap: 8px; margin-top: 12px; }

/* Browser window */
.mockup-browser {
  position: relative; z-index: 1;
  width: 88%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: rise 0.85s var(--ease-out) 0.3s both;
}
.mockup-browser__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #F1F5FA;
  border-bottom: 1px solid var(--border);
}
.mb-dot { width: 10px; height: 10px; border-radius: 50%; }
.mb-dot:nth-child(1) { background: #FF5F57; }
.mb-dot:nth-child(2) { background: #FEBC2E; }
.mb-dot:nth-child(3) { background: #28C840; }
.mockup-browser__url {
  flex: 1; max-width: 58%; margin-inline: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 7px;
  padding: 2px 12px;
  font-size: 0.68rem; color: var(--text-muted); text-align: center;
  white-space: nowrap; overflow: hidden;
}
.mockup-browser__body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.mini-nav { display: flex; align-items: center; gap: 7px; }
.mini-links { display: flex; gap: 7px; margin-left: 10px; }
.mini-links i { width: 26px; height: 6px; border-radius: 3px; background: #DCE5F0; }
.mini-cta { margin-left: auto; width: 60px; height: 15px; border-radius: 8px; background: var(--gradient-accent); }
.mini-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: center; }
.mini-hero__media {
  aspect-ratio: 4 / 3; border-radius: 9px;
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 55%, #93C5FD 100%);
}
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-cards i { height: 36px; border-radius: 9px; background: #F4F8FC; border: 1px solid var(--border); }

/* Phone */
.mockup-phone {
  position: absolute; right: -3%; bottom: -7%; z-index: 2;
  width: 27%;
  animation: rise 0.85s var(--ease-out) 0.55s both, float-soft 7s ease-in-out 3s infinite;
}
.mockup-phone__frame {
  background: var(--navy);
  border-radius: 24px;
  padding: 7px;
  box-shadow: var(--shadow-lg);
}
.mockup-phone__screen {
  background: #fff; border-radius: 18px;
  aspect-ratio: 9 / 16.5;
  padding: 13px 11px;
  display: flex; flex-direction: column; gap: 8px;
}
.mockup-phone__screen .mini-btn { margin-top: 2px; }
.mini-media { flex: 1; border-radius: 9px; background: linear-gradient(135deg, #DBEAFE, #93C5FD); }

/* Business card */
.mockup-bizcard {
  position: absolute; left: -4%; bottom: 3%; z-index: 3;
  width: 40%;
  animation: rise 0.85s var(--ease-out) 0.72s both, float-soft 8s ease-in-out 3.6s infinite;
}
.mockup-bizcard__inner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 16px 13px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-7deg);
}
.mockup-bizcard__inner img { width: 52%; height: auto; margin-bottom: 10px; }

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */
.stats {
  display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-6);
  box-shadow: var(--shadow-md);
}
.stat { text-align: center; padding-inline: var(--sp-3); }
.stat strong {
  display: block; font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1.2;
}
.stat strong .text-gradient { font-weight: 800; }
.stat > span { font-size: 0.92rem; color: var(--text-muted); font-weight: 500; }
.stat strong span { font-size: inherit; color: inherit; font-weight: inherit; }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */
.grid {
  display: grid; gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 102, 255, 0.25);
}
.card p { color: var(--text-muted); }

.card__icon {
  position: relative;
  width: 52px; height: 52px;
  background: var(--gradient-accent);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-accent);
}
.card__icon svg { width: 25px; height: 25px; }

/* Orbiting dots around the icon tile */
.card__icon::before {
  content: ""; position: absolute; inset: -9px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 102, 255, 0.16);
}
.card__icon::after {
  content: ""; position: absolute; inset: -9px;
  border-radius: 50%;
  background:
    radial-gradient(circle 3.5px at 50% 0%, var(--accent) 96%, transparent),
    radial-gradient(circle 3px at 50% 100%, var(--accent-sky) 96%, transparent);
  animation: orbit-spin 9s linear infinite;
}
.card:nth-child(even) .card__icon::after { animation-duration: 12s; animation-direction: reverse; }
@keyframes orbit-spin { to { transform: rotate(1turn); } }

/* --------------------------------------------------------------------------
   Branchen / Für wen
   -------------------------------------------------------------------------- */
/* Marquee band: industry chips drift slowly, pause on hover */
.marquee {
  display: flex; gap: var(--sp-3);
  overflow: hidden;
  padding-block: var(--sp-2);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee .industries {
  flex-shrink: 0;
  flex-wrap: nowrap; justify-content: flex-start;
  max-width: none; min-width: max-content;
  animation: marquee-drift 36s linear infinite;
}
.marquee:hover .industries { animation-play-state: paused; }
@keyframes marquee-drift { to { transform: translateX(calc(-100% - var(--sp-3))); } }

@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; flex-wrap: wrap; }
  .marquee .industries { animation: none; flex-wrap: wrap; justify-content: center; min-width: 0; }
  .marquee .industries[aria-hidden="true"] { display: none; }
}

.industries {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-3);
  padding: 0; margin: 0 auto; list-style: none; max-width: 820px;
}
.industries li {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.2rem;
  font-weight: 600; font-size: 0.95rem; color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, color 0.25s ease;
}
.industries li:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }
.industries li svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Ablauf / process steps
   -------------------------------------------------------------------------- */
.steps {
  position: relative;
  display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  counter-reset: step;
}
/* Connecting line that draws itself when the section scrolls in */
@media (min-width: 768px) {
  .steps::before {
    content: ""; position: absolute; z-index: 0;
    top: 55px; left: 4%; right: 4%; height: 3px;
    border-radius: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0); transform-origin: left center;
    transition: transform 1.4s var(--ease-out) 0.2s;
  }
  .steps.is-visible::before { transform: scaleX(1); }
}
.step { z-index: 1; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0, 102, 255, 0.25); }
.step__number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background: var(--accent-light); color: var(--accent);
  font-weight: 800; font-size: 1.15rem;
  margin-bottom: var(--sp-4);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--text-muted); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Referenzen / portfolio
   -------------------------------------------------------------------------- */
.portfolio-grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.portfolio-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio-card__media { overflow: hidden; }
.portfolio-card__media .zoomable {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.portfolio-card:hover .portfolio-card__media .zoomable { transform: scale(1.05); }

/* Browser frame around portfolio shots */
.browser-frame__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: #F1F5FA;
  border-bottom: 1px solid var(--border);
}
.browser-frame__bar i { width: 9px; height: 9px; border-radius: 50%; }
.browser-frame__bar i:nth-child(1) { background: #FF5F57; }
.browser-frame__bar i:nth-child(2) { background: #FEBC2E; }
.browser-frame__bar i:nth-child(3) { background: #28C840; }
.browser-frame__url {
  flex: 1; max-width: 55%; margin-inline: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 7px;
  padding: 1px 12px;
  font-size: 0.72rem; color: var(--text-muted); text-align: center;
  white-space: nowrap; overflow: hidden;
}
.browser-frame__view { aspect-ratio: 16 / 10; overflow: hidden; }
.browser-frame__view img { width: 100%; height: 100%; object-fit: cover; }

/* Scrolling live preview: pans through the page on hover */
.browser-frame__view--scroll img {
  object-position: top;
  transition: object-position 7s ease-in-out;
}
.portfolio-card:hover .browser-frame__view--scroll img { object-position: bottom; }

/* Before/after slider */
.ba { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ba__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(8, 20, 39, 0.35);
  pointer-events: none;
}
.ba__handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.ba__handle svg { width: 18px; height: 18px; }
.ba__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0;
  cursor: ew-resize;
}
.ba__range:focus-visible ~ .ba__line .ba__handle,
.ba:has(.ba__range:focus-visible) .ba__handle {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.ba__tag {
  position: absolute; top: 10px;
  background: rgba(8, 20, 39, 0.72);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 2px 11px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  pointer-events: none;
}
.ba__tag--b { left: 10px; }
.ba__tag--a { right: 10px; }
.portfolio-card__body { padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.portfolio-card__link { display: block; color: inherit; height: 100%; }
.portfolio-card__tag {
  display: inline-block;
  background: var(--accent-light); color: var(--accent);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.85rem;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: var(--sp-3);
}
.portfolio-card__tag--live {
  background: rgba(34, 197, 94, 0.12); color: #15803D;
  position: relative; padding-left: 1.6rem;
}
/* Live dot with radar ping */
.portfolio-card__tag--live::before {
  content: ""; position: absolute; left: 0.7rem; top: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  transform: translateY(-50%);
  background: #22C55E;
  animation: live-breathe 2s ease-in-out infinite;
}
.portfolio-card__tag--live::after {
  content: ""; position: absolute; left: 0.7rem; top: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(34, 197, 94, 0.55);
  animation: live-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes live-ping {
  0%        { transform: translateY(-50%) scale(1); opacity: 0.8; }
  75%, 100% { transform: translateY(-50%) scale(3.2); opacity: 0; }
}
@keyframes live-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35); }
  50%      { box-shadow: 0 0 6px 1px rgba(34, 197, 94, 0.55); }
}
.portfolio-card__cta { color: var(--accent); font-weight: 700; white-space: nowrap; }
.portfolio-card__link:hover .portfolio-card__cta { text-decoration: underline; }
.portfolio-card__body h3 { font-size: 1.25rem; }
.portfolio-card__body p { color: var(--text-muted); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Über uns
   -------------------------------------------------------------------------- */
.about__grid { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 1024px) { .about__grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-12); } }

.about__values { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); padding: 0; list-style: none; }
.about__values li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.about__values .value-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.about__values .value-icon svg { width: 21px; height: 21px; }
.about__values strong { display: block; color: var(--navy); font-weight: 700; }
.about__values span { color: var(--text-muted); font-size: 0.97rem; }

.contact-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(28rem 18rem at 110% -20%, rgba(56, 189, 248, 0.25), transparent 60%);
  pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: var(--sp-2); }
.contact-card > p { color: var(--text-on-dark); margin-bottom: var(--sp-6); }

.contact-card__person {
  display: flex; align-items: center; gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.contact-card__person h3 { margin-bottom: 0.2rem; }
.contact-card__person p { color: var(--text-on-dark); font-size: 0.95rem; }
.contact-card__avatar {
  flex-shrink: 0;
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.45), 0 8px 20px rgba(8, 20, 39, 0.35);
  background: #fff;
}
.contact-card__links { display: grid; gap: var(--sp-3); }
.contact-card__links a {
  display: flex; align-items: center; gap: var(--sp-3);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s var(--ease-out);
}
.contact-card__links a:hover { background: rgba(255, 255, 255, 0.16); transform: translateX(4px); }
.contact-card__links svg { width: 20px; height: 20px; color: var(--accent-sky); flex-shrink: 0; }
.contact-card__links span { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-on-dark); }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: var(--sp-3); }
.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq__item[open] { border-color: rgba(0, 102, 255, 0.3); box-shadow: var(--shadow-md); }
.faq__item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-weight: 700; color: var(--navy);
  cursor: pointer;
  border-radius: var(--radius-md);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--accent-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066FF' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--text-muted);
}
.faq__item[open] p { animation: faq-open 0.4s var(--ease-out); }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Kontakt / CTA section (dark)
   -------------------------------------------------------------------------- */
.section--dark {
  position: relative;
  background:
    radial-gradient(50rem 30rem at 80% 0%, rgba(0, 102, 255, 0.22), transparent 60%),
    radial-gradient(40rem 26rem at 10% 100%, rgba(56, 189, 248, 0.12), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--text-on-dark);
}
/* Soft wave transition into the dark section */
.section--dark::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 100%; height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23F6F9FC' d='M0,0 H1440 V14 C1180,52 920,58 720,42 C480,24 220,28 0,54 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.section--dark h2 { color: #fff; }
.section--dark .lead { color: var(--text-on-dark); }
.section--dark .eyebrow { color: var(--accent-sky); }

.contact-grid { display: grid; gap: var(--sp-8); align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-12); } }

.contact-info h2 { margin-bottom: var(--sp-4); }
.contact-info .lead { margin-bottom: var(--sp-6); }
.contact-info__list { display: grid; gap: var(--sp-4); padding: 0; margin: 0 0 var(--sp-6); list-style: none; }
.contact-info__list a {
  display: flex; align-items: center; gap: var(--sp-4);
  color: #fff; font-weight: 600;
  transition: color 0.2s ease;
}
.contact-info__list a:hover { color: var(--accent-sky); }
.contact-info__list .ci-icon {
  flex-shrink: 0; width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center;
}
.contact-info__list svg { width: 21px; height: 21px; color: var(--accent-sky); }
.contact-info__list small { display: block; font-weight: 500; color: var(--text-on-dark); font-size: 0.83rem; }

.contact-note {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  font-size: 0.92rem;
}
.contact-note svg { width: 20px; height: 20px; color: var(--accent-sky); flex-shrink: 0; margin-top: 2px; }

/* Form */
.contact-form {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
@media (min-width: 768px) { .contact-form { padding: var(--sp-8); } }

.form-row { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { margin-bottom: var(--sp-4); }
.form-group label {
  display: block; font-weight: 600; font-size: 0.92rem;
  margin-bottom: var(--sp-2); color: #fff;
}
.form-group label .optional { color: var(--text-on-dark); font-weight: 400; }
.form-control {
  width: 100%; padding: 0.95rem 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-control::placeholder { color: rgba(255, 255, 255, 0.38); }
.form-control:focus {
  outline: none;
  border-color: var(--accent-sky);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}
textarea.form-control { resize: vertical; min-height: 140px; }

.form-status { display: none; margin-top: var(--sp-4); padding: var(--sp-4); border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; }
.form-status.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86EFAC;
}
.form-status.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}
.form-status a { color: inherit; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--text-on-dark);
  padding-block: var(--sp-8);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.site-footer__inner,
.site-footer .container {
  max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-5);
  text-align: center;
}
.site-footer__brand { font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -0.01em; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-5); }
.site-footer nav a { font-size: 0.92rem; font-weight: 500; transition: color 0.2s ease; }
.site-footer nav a:hover { color: #fff; }
.site-footer__copy { font-size: 0.85rem; color: rgba(255, 255, 255, 0.45); }

@media (min-width: 768px) {
  .site-footer__inner, .site-footer .container {
    flex-direction: row; justify-content: space-between; text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Legal pages (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.legal-page { padding-top: calc(var(--header-height) + var(--sp-10)); max-width: 760px; margin-inline: auto; }
.legal-page .section__head { margin-bottom: var(--sp-8); }
.legal-page h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.legal-page h2 { font-size: 1.35rem; margin-top: var(--sp-8); margin-bottom: var(--sp-3); }
.legal-page p { color: var(--text-muted); margin-bottom: var(--sp-4); }
.legal-page a { color: var(--accent); font-weight: 600; }
.legal-page a:hover { text-decoration: underline; }

.legal-notice {
  background: var(--accent-light);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
}
.legal-notice p { color: var(--navy-light); margin: 0; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Scroll-reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger helper: set per-element delay */
.reveal[data-delay="1"] { --reveal-delay: 0.1s; }
.reveal[data-delay="2"] { --reveal-delay: 0.2s; }
.reveal[data-delay="3"] { --reveal-delay: 0.3s; }
.reveal[data-delay="4"] { --reveal-delay: 0.4s; }

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

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }

/* Pointer glare on cards (coords set by JS via --mx/--my) */
.has-glare { position: relative; }
.has-glare::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 102, 255, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.has-glare:hover::after { opacity: 1; }

/* Mobile quick-contact bar (appears after scrolling past the hero) */
.mobile-cta {
  position: fixed; left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-3);
  z-index: 95;
  display: flex; gap: var(--sp-2);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: var(--sp-2);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0.3s;
}
.mobile-cta.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-cta .btn { flex: 1; }
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* Subtle film grain over the whole page */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9000;
  pointer-events: none;
  opacity: 0.028;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* 404 page */
.error-page {
  min-height: calc(100vh - var(--header-height));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
}
.error-page__code {
  font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  letter-spacing: -0.04em;
}
.error-page h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-block: var(--sp-4); }
.error-page .lead { margin-bottom: var(--sp-6); }
