/* ===========================================================
   Riscavio Consulting & Advisory — Risk & Security
   Design system: LIGHT mit dunklen Kontrasten
   Hell, klar, hochwertig · dunkle Navy-Blöcke als Akzent
   Farbpsychologie: Blau = Vertrauen, Kompetenz, Stabilität
   =========================================================== */

:root {
  --bg: #f7f9fc;
  --bg-alt: #eef2f8;
  --ink: #0b1220;            /* deep navy-ink for dark contrast blocks */
  --ink-2: #111b2e;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --text: #0d1526;
  --text-secondary: #4b5873;
  --text-tertiary: #8793a8;
  --text-on-dark: #eef3fb;
  --text-on-dark-soft: #9fb0cc;
  --accent: #2563eb;
  --accent-bright: #1d4ed8;
  --accent-light: #5b9bff;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --border: rgba(16, 34, 70, 0.12);
  --border-light: rgba(16, 34, 70, 0.07);
  --border-on-dark: rgba(255, 255, 255, 0.1);
  --grad: linear-gradient(135deg, #2563eb 0%, #4f86f7 100%);
  --grad-text: linear-gradient(120deg, #0f1b33 0%, #2563eb 100%);
  --grad-text-light: linear-gradient(120deg, #ffffff 0%, #cfe0ff 100%);
  --max-width: 1140px;
  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 26px;
  --shadow: 0 10px 34px rgba(20, 40, 80, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 40, 80, 0.14);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  position: relative;
  overflow-x: hidden;
}

/* Calm, trust-blue ambient tint (very subtle on light) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 50% -5%, rgba(37, 99, 235, 0.07) 0%, transparent 60%),
    radial-gradient(45% 40% at 85% 8%, rgba(37, 99, 235, 0.05) 0%, transparent 55%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 18px;
  display: block;
}

.lead { font-size: clamp(1.12rem, 2vw, 1.3rem); color: var(--text-secondary); font-weight: 400; line-height: 1.6; }

/* Badge pill (authority / specificity) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.22);
  padding: 8px 17px;
  border-radius: 980px;
  margin-bottom: 28px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 1px rgba(37, 99, 235, 0.6); }

/* Trust micro-line under CTA (credibility triggers) */
.trust-line {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  color: var(--text-tertiary);
  font-size: 0.86rem;
  font-weight: 500;
}
.trust-line span { display: inline-flex; align-items: center; gap: 8px; }
.trust-line span::before {
  content: '';
  width: 15px; height: 15px; flex: 0 0 15px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border-light);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.logo-mark { width: 27px; height: 27px; flex: 0 0 auto; display: block; }
.logo:hover .logo-mark { opacity: 0.9; }
.logo-text { display: flex; flex-direction: column; line-height: 1.04; }
.logo-name { font-weight: 700; font-size: 1.12rem; letter-spacing: 0.05em; }
.logo-tag { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.19em; text-transform: uppercase; color: var(--text-tertiary); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.92rem; color: var(--text-secondary); font-weight: 450; transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 550; }

.nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 980px;
  font-weight: 500 !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(37, 99, 235, 0.42); }

.lang-toggle {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 7px 13px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  min-width: 48px;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--text); }

/* 3-language segmented switch (DE · EN · ES) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 3px;
}
.lang-switch button {
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  border-radius: 980px;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(37, 130, 246, 0.35);
}

.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn span { width: 22px; height: 1.6px; background: var(--text); transition: all 0.25s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  position: relative;
  font-size: 0.98rem;
  font-weight: 550;
  padding: 15px 32px;
  border-radius: 980px;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(37, 99, 235, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(37, 99, 235, 0.42); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }
.btn-ghost::after { content: ' ›'; color: var(--accent); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(11, 18, 32, 0.3); }
/* Light button for use on dark contrast blocks */
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22); }

/* Attention-catching pulse on the primary hero CTA */
.btn-pulse::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 980px;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  animation: ctaPulse 2.6s infinite;
  pointer-events: none;
}
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  70% { box-shadow: 0 0 0 18px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(84px, 13vw, 170px) 0 clamp(60px, 9vw, 120px); text-align: center; position: relative; overflow: hidden; }
.hero-sub { padding: clamp(66px, 9vw, 130px) 0 clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.hero > .container, .hero-sub > .container { position: relative; z-index: 2; }

/* Architectural grid = structure & control */
.hero::before, .hero-sub::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 34, 70, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 34, 70, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(125% 95% at 50% 32%, #000 18%, transparent 78%);
  mask-image: radial-gradient(125% 95% at 50% 32%, #000 18%, transparent 78%);
}
/* Slow monitoring scan beam = vigilance / "actively watched" */
.hero::after, .hero-sub::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.09) 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 80%);
  animation: scanSweep 9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes scanSweep {
  0% { transform: translateY(-50%); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(260%); opacity: 0; }
}

/* We no longer use the particle canvas */
.hero-bg { display: none !important; }

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  margin-bottom: 26px;
  color: var(--text);
  letter-spacing: -0.03em;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { max-width: 660px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-sub h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 22px; color: var(--text); letter-spacing: -0.03em; }
.hero-sub .lead { max-width: 660px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(66px, 10vw, 124px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.section-head { max-width: 700px; margin-bottom: 58px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 18px; }

/* ---------- Grid of cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.card::after {
  content: '';
  position: absolute; top: -40%; right: -30%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: rgba(37, 99, 235, 0.4); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }

.card .icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: var(--accent-bright);
}
.card .icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.22rem; margin-bottom: 12px; position: relative; }
.card p { color: var(--text-secondary); font-size: 0.97rem; line-height: 1.6; position: relative; }
.card .num {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; display: block; margin-bottom: 18px;
  color: var(--accent-bright);
}

/* ---------- Stats (social proof) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .n {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem); font-weight: 650; letter-spacing: -0.03em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .l { color: var(--text-secondary); font-size: 0.95rem; margin-top: 6px; }

/* Stats placed on a dark contrast block */
.on-dark .stat .n { background: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.on-dark .stat .l { color: var(--text-on-dark-soft); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 20px; }
.split p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 16px; line-height: 1.65; }
.visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 120% at 25% 12%, rgba(79, 134, 247, 0.4) 0%, transparent 55%),
    linear-gradient(145deg, #15223b 0%, #0a1222 100%);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at 68% 68%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 68% 68%, #000, transparent 78%);
}
.visual::after {
  content: '';
  position: absolute; width: 60%; height: 60%; top: -8%; left: -10%;
  background: radial-gradient(circle, rgba(79, 134, 247, 0.5) 0%, transparent 70%);
  filter: blur(22px);
}
.visual .glyph {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: var(--accent-light); opacity: 0.95; filter: drop-shadow(0 0 26px rgba(79, 134, 247, 0.6));
}
.visual .glyph svg { width: 96px; height: 96px; }

/* ---------- List ---------- */
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-secondary); font-size: 1rem; }
.check-list li::before {
  content: '';
  flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Case studies ---------- */
.case {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.case:hover { transform: translateY(-5px); border-color: rgba(37, 99, 235, 0.4); box-shadow: var(--shadow-lg); }
.case .banner {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #15213a 0%, #0a1020 100%);
  position: relative; display: flex; align-items: flex-end; padding: 22px 24px;
}
.case .banner.v2 { background: linear-gradient(145deg, #112a44 0%, #07131f 100%); }
.case .banner.v3 { background: linear-gradient(145deg, #0f2f3a 0%, #06151c 100%); }
.case .banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.case .banner::after {
  content: '';
  position: absolute; top: -30%; left: -10%; width: 50%; height: 90%;
  background: radial-gradient(circle, rgba(79, 134, 247, 0.5) 0%, transparent 70%); filter: blur(10px);
}
.case .tag {
  position: relative; z-index: 1;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 13px; border-radius: 980px; backdrop-filter: blur(6px);
}
.case .body { padding: 26px 26px 30px; }
.case h3 { font-size: 1.18rem; margin-bottom: 12px; }
.case p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 18px; }
.case .result { display: flex; gap: 26px; border-top: 1px solid var(--border-light); padding-top: 18px; }
.case .result .n {
  font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.case .result .l { font-size: 0.8rem; color: var(--text-tertiary); }

/* ---------- Trust row ---------- */
.trust { text-align: center; }
.trust p { color: var(--text-tertiary); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 26px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.trust-row .pill {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 980px; padding: 10px 22px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  box-shadow: var(--shadow);
  transition: all 0.25s var(--ease);
}
.trust-row .pill:hover { border-color: rgba(37, 99, 235, 0.4); color: var(--text); }

/* ---------- CTA band (dark contrast block) ---------- */
.cta-band {
  text-align: center;
  border: 1px solid var(--ink-2);
  border-radius: var(--radius-l);
  padding: clamp(48px, 7vw, 82px) 30px;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(79, 134, 247, 0.3) 0%, transparent 60%),
    linear-gradient(150deg, #111b2e 0%, #0a1020 100%);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 2px; background: var(--grad); opacity: 0.9;
}
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 18px; color: #fff; }
.cta-band p { color: var(--text-on-dark-soft); font-size: 1.1rem; max-width: 560px; margin: 0 auto 34px; }

/* ---------- Contact / booking ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.booking-card {
  border: 1px solid var(--ink-2);
  border-radius: var(--radius-l);
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(79, 134, 247, 0.28) 0%, transparent 60%),
    linear-gradient(150deg, #111b2e 0%, #0a1020 100%);
  padding: 48px 40px; text-align: center; box-shadow: var(--shadow-lg);
}
.booking-card .cal-ico {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 22px;
  background: rgba(79, 134, 247, 0.16);
  border: 1px solid rgba(79, 134, 247, 0.35);
  display: flex; align-items: center; justify-content: center; color: var(--accent-light);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}
.booking-card h3 { font-size: 1.4rem; margin-bottom: 12px; color: #fff; }
.booking-card p { color: var(--text-on-dark-soft); margin-bottom: 26px; }
.contact-detail { margin-bottom: 30px; }
.contact-detail .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 6px; }
.contact-detail .v { font-size: 1.1rem; color: var(--text); }
.contact-detail .v a { transition: color 0.2s; }
.contact-detail .v a:hover { color: var(--accent-bright); }

/* ---------- Footer (dark contrast block) ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--ink-2);
  padding: 64px 0 36px; font-size: 0.9rem;
  color: var(--text-on-dark-soft);
}
.site-footer .logo { color: var(--text-on-dark); }
.site-footer .logo-tag { color: var(--text-on-dark-soft); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.footer-brand .logo-name { font-size: 1.02rem; }
.footer-brand p { color: var(--text-on-dark-soft); margin-top: 16px; max-width: 270px; line-height: 1.65; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-on-dark-soft); margin-bottom: 16px; font-weight: 600; opacity: 0.75; }
.footer-col a { display: block; color: var(--text-on-dark-soft); margin-bottom: 11px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-on-dark); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid var(--border-on-dark); padding-top: 24px; color: var(--text-on-dark-soft); opacity: 0.8;
}

/* ---------- Icon enhancements ---------- */
/* Stat icons (home) */
.stat .stat-ico {
  width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.stat .stat-ico svg { width: 24px; height: 24px; }
.on-dark .stat .stat-ico { color: var(--accent-light); background: rgba(79, 134, 247, 0.14); border-color: rgba(79, 134, 247, 0.3); }

/* Icons inside trust-row pills */
.trust-row .pill { display: inline-flex; align-items: center; gap: 9px; }
.trust-row .pill svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--accent-bright); }

/* Contact detail rows with leading icon */
.contact-detail { display: flex; gap: 15px; align-items: flex-start; }
.contact-detail .ci {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.contact-detail .ci svg { width: 20px; height: 20px; }
.contact-detail .cd-text { padding-top: 1px; }

/* Faint watermark icon in service cards */
.card .card-wm {
  position: absolute; right: -8px; bottom: -16px; z-index: 0;
  color: var(--accent); opacity: 0.06;
  pointer-events: none; transition: opacity 0.4s var(--ease);
}
.card .card-wm svg { width: 116px; height: 116px; }
.card:hover .card-wm { opacity: 0.11; }
.card .num, .card h3, .card p { position: relative; z-index: 1; }

/* Project report metric inside cards */
.card .metric {
  position: relative; z-index: 1; margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card .metric .mn {
  font-size: 1.75rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.card .metric .ml { color: var(--text-tertiary); font-size: 0.82rem; margin-top: 6px; }

/* About — "at a glance" profile card */
.about-card { align-self: start; }
.about-card .ac-head { display: flex; align-items: center; gap: 11px; font-weight: 650; font-size: 1.05rem; color: var(--text); margin-bottom: 26px; position: relative; z-index: 1; }
.about-card .ac-head .logo-mark { width: 28px; height: 28px; flex: 0 0 28px; color: var(--accent-bright); }
.about-facts { display: grid; gap: 20px; position: relative; z-index: 1; }
.about-facts .fact { display: flex; align-items: baseline; gap: 16px; }
.about-facts .fact .n {
  font-size: 2rem; font-weight: 650; letter-spacing: -0.02em; min-width: 80px; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.about-facts .fact .l { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.4; }
.about-card .about-credo {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 1.05rem; font-style: italic; color: var(--text-secondary); line-height: 1.6; position: relative; z-index: 1;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero::after, .hero-sub::after, .btn-pulse::after { animation: none; }
  .hero::after, .hero-sub::after { opacity: 0.6; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-2, .stats { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split .visual { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .menu-btn { display: flex; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(247, 249, 252, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 24px 22px;
    transform: translateY(-120%);
    transition: transform 0.32s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--border-light); font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 14px; border-bottom: none !important; }
  .lang-toggle { align-self: flex-start; margin-top: 14px; }
  .lang-switch { align-self: flex-start; margin-top: 14px; }
  .grid-3, .grid-2, .stats { grid-template-columns: 1fr; }
  .stats { gap: 34px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .trust-line { gap: 8px 16px; }
  .modal-dialog { padding: 30px 22px 34px; }
  .case-full .cf-metrics { grid-template-columns: 1fr; gap: 16px; }
}

/* ===========================================================
   Accessibility focus + refinements
   =========================================================== */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .nav-cta:focus-visible { outline-offset: 4px; }

/* Clickable case cards */
.case[data-target] { cursor: pointer; }
.case[data-target]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.case-more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px;
  color: var(--accent-bright); font-size: 0.9rem; font-weight: 600;
  transition: gap 0.25s var(--ease);
}
.case-more::after {
  content: '';
  width: 15px; height: 15px;
  background: var(--accent-bright);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M5 12h12l-5-5 1.4-1.4L21 12l-7.6 6.4L12 17l5-5H5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M5 12h12l-5-5 1.4-1.4L21 12l-7.6 6.4L12 17l5-5H5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.case[data-target]:hover .case-more { gap: 12px; }

/* ===========================================================
   Case-study modal (lightbox) — light dialog
   =========================================================== */
body.modal-open { overflow: hidden; }

.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(11, 18, 32, 0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.25s var(--ease);
}
.modal-dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 720px; max-height: 86vh; overflow-y: auto;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 44px 44px 48px;
  box-shadow: 0 40px 100px rgba(11, 18, 32, 0.3);
  animation: modalIn 0.34s var(--ease);
}
.modal-dialog::-webkit-scrollbar { width: 10px; }
.modal-dialog::-webkit-scrollbar-thumb { background: rgba(16, 34, 70, 0.18); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease);
}
.modal-close:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }

.case-full[hidden] { display: none; }
.case-full .cf-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-bright); background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 6px 14px; border-radius: 980px; margin-bottom: 20px;
}
.case-full h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.15; margin-bottom: 26px; }
.case-full h4 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-tertiary); margin: 26px 0 10px;
}
.case-full p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }
.case-full .cf-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--border-light);
}
.case-full .cf-metrics .n {
  font-size: 1.9rem; font-weight: 650; letter-spacing: -0.02em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.case-full .cf-metrics .l { font-size: 0.82rem; color: var(--text-tertiary); margin-top: 4px; }
.case-full .cf-note { margin-top: 28px; font-size: 0.82rem; color: var(--text-tertiary); font-style: italic; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-dialog { animation: none; }
}
