/* ============================================================
   DATAWERK — Shared Stylesheet
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── CSS Variables ── */
:root {
  /* Colors */
  --navy:        #0d1117;
  --navy-mid:    #141b27;
  --navy-soft:   #1c2740;
  --ink:         #111827;
  --slate:       #6b7280;
  --mist:        #e8ecf1;
  --snow:        #f4f6f9;
  --white:       #ffffff;

  /* Accent */
  --accent-from: #4f7ef8;
  --accent-to:   #8b5cf6;
  --accent:      #4f7ef8;
  --accent-light:#dde9ff;

  /* Gradients */
  --grad-accent: linear-gradient(135deg, var(--accent-from) 0%, var(--accent-to) 100%);
  --grad-dark:   linear-gradient(160deg, #0d1117 0%, #141b27 60%, #1a2035 100%);
  --grad-card:   linear-gradient(145deg, #1c2740 0%, #151e30 100%);

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 7rem;

  /* Radii */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(0,0,0,.08);
  --shadow-md:  0 6px 32px rgba(0,0,0,.12);
  --shadow-lg:  0 16px 56px rgba(0,0,0,.18);
  --shadow-card:0 4px 24px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

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

/* ── Typography ── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }

p { max-width: 68ch; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--slate);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section { padding: var(--space-2xl) 0; }
.section--sm { padding: var(--space-xl) 0; }

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), opacity 0.22s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(79,126,248,.35);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(79,126,248,.48); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(79,126,248,.3);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-soft); }

/* ── Header / Nav ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s, box-shadow 0.35s;
}

.site-header.scrolled {
  background: rgba(13,17,23,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

/* On non-hero pages, always show solid header */
.site-header.solid {
  background: rgba(13,17,23,.98);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,.72);
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.nav-cta {
  font-size: 0.85rem !important;
  padding: 0.5rem 1.2rem !important;
  background: var(--grad-accent) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  font-weight: 500 !important;
}

.nav-cta:hover {
  background: var(--grad-accent) !important;
  opacity: 0.9;
  box-shadow: 0 4px 18px rgba(79,126,248,.4);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  border: none;
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.28s;
  pointer-events: none;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem var(--space-md);
  gap: 0;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(255,255,255,.7);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  width: 100%;
  transition: color 0.18s, padding-left 0.2s;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--white); padding-left: 0.5rem; }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 2.5rem;
}

.mobile-nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
}

.mobile-nav-logo span { background: var(--grad-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.mobile-nav-close {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.07);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}

.mobile-nav-close:hover {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

.mobile-nav-cta {
  margin-top: 2rem;
  width: 100%;
}

.mobile-nav-cta a {
  display: block;
  text-align: center;
  padding: 1rem !important;
  background: var(--grad-accent) !important;
  color: var(--white) !important;
  border-radius: 50px;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 500;
  border-bottom: none !important;
}

.mobile-nav-cta a:hover { padding-left: 0 !important; opacity: 0.9; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-brand .logo { font-size: 1.2rem; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 28ch; }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,.58);
  padding: 0.25rem 0;
  transition: color 0.18s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

/* ── Hero (shared dark hero for inner pages) ── */
.page-hero {
  background: var(--grad-dark);
  padding: 7rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 600px) {
  .page-hero {
    padding: 5.5rem 0 2.5rem;
  }
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,126,248,.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.page-hero .lead { color: rgba(255,255,255,.65); }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,.05);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-dark {
  background: var(--grad-card);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 4px 28px rgba(0,0,0,.3);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Tag Pills ── */
.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 500;
  border-radius: 50px;
}

.tag-dark {
  background: rgba(79,126,248,.15);
  color: #93b4fa;
}

/* ── Form Styles ── */
.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #dde2ea;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,126,248,.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--grad-accent);
  border-radius: 3px;
  margin: 1.2rem 0;
}

.divider-center { margin-left: auto; margin-right: auto; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand { grid-column: span 2; }
}

@media (max-width: 600px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 5rem;
  }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}


/* ============================================================
   HOME PAGE
   ============================================================ */

/* Hero */
.hero {
  min-height: 100svh;
  background: #0d1424;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Subtle radial glow behind dashboard */
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,126,248,.1) 0%, transparent 70%);
  top: 10%; right: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Hero Visual — Dashboard mockup */
.hero-visual {
  position: relative;
  z-index: 1;
}

.dashboard-mock {
  background: #111827;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(79,126,248,.1),
    0 24px 64px rgba(0,0,0,.5),
    0 8px 24px rgba(0,0,0,.3);
}

/* Top bar */
.db-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: #0d1117;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.db-dots { display: flex; gap: 5px; }
.db-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.db-dot.red    { background: #f87171; }
.db-dot.yellow { background: #fbbf24; }
.db-dot.green  { background: #34d399; }

.db-title {
  font-size: 0.72rem;
  color: rgba(255,255,255,.4);
  flex: 1;
  text-align: center;
  letter-spacing: 0.02em;
}

.db-badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.25);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
}

/* KPI row */
.db-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.db-kpi {
  padding: 0.85rem 0.75rem;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.db-kpi:last-child { border-right: none; }

.db-kpi-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.db-kpi-value {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255,255,255,.9);
  line-height: 1.1;
}

.db-kpi-delta {
  font-size: 0.65rem;
  font-weight: 600;
}
.db-kpi-delta.up   { color: #34d399; }
.db-kpi-delta.down { color: #f87171; }

/* Charts */
.db-charts {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
}

.db-chart-main {
  padding: 0.85rem 0.85rem 0.6rem;
  border-right: 1px solid rgba(255,255,255,.06);
}

.db-chart-side {
  padding: 0.85rem 0.85rem 0.6rem;
}

.db-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.db-chart-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.db-chart-legend {
  display: flex;
  gap: 0.6rem;
}

.db-chart-legend span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.58rem;
  color: rgba(255,255,255,.35);
}

.db-chart-legend i {
  display: block;
  width: 7px; height: 7px;
  border-radius: 2px;
}

.db-svg {
  width: 100%;
  height: 80px;
  display: block;
}

.db-x-labels {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0.1rem 0;
}

.db-x-labels span {
  font-size: 0.58rem;
  color: rgba(255,255,255,.25);
}

/* Funnel */
.db-funnel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.db-funnel-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.db-funnel-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,.35);
  width: 52px;
  flex-shrink: 0;
}

.db-funnel-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--c, #4f7ef8);
  width: var(--w, 100%);
  max-width: var(--w, 100%);
  opacity: 0.85;
}

.db-funnel-val {
  font-size: 0.62rem;
  color: rgba(255,255,255,.5);
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

.hero-content .eyebrow { margin-bottom: 1.25rem; }
.hero-content h1 { color: var(--white); margin-bottom: 1.4rem; }
.hero-content .lead { color: rgba(255,255,255,.62); margin-bottom: 2.2rem; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 3.2rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.7);
}

.hero-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-accent);
  flex-shrink: 0;
}

/* Hero responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-visual { max-width: 560px; }
  .db-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .db-kpi:nth-child(2) { border-right: none; }
}

@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-visual { display: none; }
}

/* Smarter Way section */
.smarter {
  background: var(--snow);
}

.smarter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.smarter-text h2 { margin-bottom: 1rem; }
.smarter-text .lead { margin-bottom: 1.5rem; }

.smarter-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.83rem;
  color: var(--slate);
  line-height: 1.4;
}

.smarter-visual {
  position: relative;
}

.smarter-card {
  background: var(--grad-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.smarter-card p {
  color: rgba(255,255,255,.65);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: none;
}

.smarter-card p + p { margin-top: 1rem; }

.sc-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.sc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.sc-dot.green { background: #34d399; }
.sc-dot.yellow { background: #fbbf24; }
.sc-dot.red { background: #f87171; }

/* How We Work */
.how-we-work { background: var(--white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-xl);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 56px; left: calc(16.66% + 1rem); right: calc(16.66% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
  opacity: 0.25;
  z-index: 0;
}

.step-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
  z-index: 1;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79,126,248,.2);
}

.step-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(79,126,248,.35);
  position: relative;
}

.step-num {
  position: absolute;
  top: -6px; right: -6px;
  width: 22px; height: 22px;
  background: var(--white);
  border: 2px solid var(--accent-light);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 { margin-bottom: 0.75rem; }
.step-card p { font-size: 0.9rem; color: var(--slate); max-width: none; }

.step-duration {
  margin-top: 1.2rem;
  display: inline-block;
  padding: 0.28rem 0.75rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Packages */
.packages { background: var(--navy); position: relative; overflow: hidden; }

.packages::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,126,248,.08) 0%, transparent 65%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.packages .eyebrow { color: rgba(255,255,255,.55); margin-bottom: 0.75rem; }
.packages h2 { color: var(--white); margin-bottom: 1rem; }
.packages > .container > .lead { color: rgba(255,255,255,.55); margin-bottom: var(--space-xl); }

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pkg-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.pkg-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79,126,248,.35);
  box-shadow: 0 16px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(79,126,248,.15);
}

.pkg-card.featured {
  background: linear-gradient(145deg, rgba(79,126,248,.14) 0%, rgba(139,92,246,.08) 100%);
  border-color: rgba(79,126,248,.3);
}

.pkg-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: var(--grad-accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 50px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.pkg-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.pkg-tagline {
  color: rgba(255,255,255,.45);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.pkg-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin-bottom: 1.2rem;
}

.pkg-description {
  color: rgba(255,255,255,.62);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
  max-width: none;
  margin-bottom: 1.6rem;
}

.pkg-price {
  margin-bottom: 1.5rem;
}

.pkg-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.3rem 0;
}

.pkg-price-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pkg-price-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
}

.pkg-cta { width: 100%; text-align: center; justify-content: center; }

/* Continuity block */
.continuity-block {
  margin-top: var(--space-xl);
  background: rgba(79,126,248,.08);
  border: 1px solid rgba(79,126,248,.2);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.8rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.cb-icon {
  width: 52px; height: 52px;
  background: var(--grad-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cb-icon svg { width: 24px; height: 24px; stroke: white; fill: none; stroke-width: 2; }

.cb-content h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.cb-content p {
  color: rgba(255,255,255,.6);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: none;
}

/* Testimonials */
.testimonials { background: var(--snow); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-xl);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.1rem;
}

.testimonial-stars span {
  color: #f59e0b;
  font-size: 0.95rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #374151;
  flex: 1;
  margin-bottom: 1.5rem;
  max-width: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-top: 1px solid var(--mist);
  padding-top: 1.2rem;
}

.testimonial-logo {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--mist);
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-logo-placeholder {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dde2ea, #c8cfd9);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--slate);
  display: block;
}

/* Contact section */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-photo {
  position: sticky;
  top: 7rem;
}

.contact-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.contact-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--mist), #d4dae4);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 0.85rem;
  text-align: center;
}

.contact-card { }

.contact-card h2 { margin-bottom: 0.75rem; }
.contact-card .lead { margin-bottom: 1.5rem; }

.contact-bullets {
  margin-bottom: 2rem;
}

.contact-bullet {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--mist);
  font-size: 0.92rem;
  color: #374151;
}

.contact-bullet:last-child { border-bottom: none; }

.cb-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.cb-check svg { width: 11px; stroke: white; fill: none; stroke-width: 2.5; }

.contact-form {
  background: var(--snow);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid rgba(0,0,0,.05);
}

.contact-form h4 {
  font-size: 1rem;
  margin-bottom: 1.4rem;
  color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

/* ── Responsive: Home ── */
@media (max-width: 900px) {
  .smarter-grid { grid-template-columns: 1fr; }
  .smarter-stats { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .packages-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-photo { display: none; }
  .continuity-block { grid-template-columns: 1fr; }
  .cb-icon { display: none; }
}

@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .smarter-stats { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
   PROJECTS PAGE
   ============================================================ */

/* ============================================================
   PROJECTS PAGE — stacked row layout
   ============================================================ */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.project-row {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.project-row:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Image banner */
.project-row-img {
display: none;
}

.project-row-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.5s var(--ease-out), opacity 0.4s;
}

.project-row:hover .project-row-img img {
  transform: scale(1.03);
  opacity: 1;
}

.project-row-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Hide placeholder text when real image loads */
.project-row-img img + .project-row-img-placeholder {
  display: none;
}

.project-row-num {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255,255,255,.35);
  letter-spacing: 0.04em;
  z-index: 2;
}

/* Body */
.project-row-body {
  padding: 2rem 2.25rem 2.25rem;
}

.project-row-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--mist);
}

.project-row-title {
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.project-client-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.1rem;
}
.project-client-logo img {
  height: 70px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: opacity .2s;
}
.project-client-logo img:hover {
  opacity: 1;
}

.project-row-client {
  font-size: 0.85rem;
  color: var(--slate);
}

/* Three-column deliverables */
.project-row-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-row-block {}

.project-block-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.project-row-block p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.8;
  max-width: none;
}

/* Outcome column — subtle highlight */
.project-row-block--outcome {
  background: linear-gradient(135deg, #f0f4ff 0%, #f8f0ff 100%);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.1rem;
  border: 1px solid rgba(79,126,248,.1);
}

.project-row-block--outcome .project-block-label {
  color: var(--accent-to);
}

.project-row-block--outcome p {
  color: #374151;
}

/* Responsive */
@media (max-width: 900px) {
  .project-row-img { aspect-ratio: 16/5; }
  .project-row-body { padding: 1.5rem 1.5rem 1.75rem; }
  .project-row-cols { grid-template-columns: 1fr 1fr; }
  .project-row-block--outcome { grid-column: span 2; }
}

@media (max-width: 600px) {
  /* Hide the image banner entirely on mobile when no real image is loaded */
  .project-row-img { display: none; }
  .project-row-img:has(img[src]:not([src=""])) { display: block; aspect-ratio: 16/7; }
  .project-row-body { padding: 1.25rem 1.25rem 1.5rem; }
  .project-row-cols { grid-template-columns: 1fr; }
  .project-row-block--outcome { grid-column: span 1; }
  .project-list { gap: 1.5rem; }
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-intro {
  background: var(--snow);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-photo-block img,
.about-photo-block .photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-photo-block .photo-placeholder {
  background: linear-gradient(145deg, var(--mist), #d4dae4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 0.85rem;
}

.about-text h2 { margin-bottom: 1rem; }
.about-text .lead { margin-bottom: 1.5rem; }
.about-text p { color: var(--slate); font-size: 0.95rem; margin-bottom: 1rem; max-width: none; }

.principles { background: var(--white); }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-lg);
}

.principle-card {
  background: var(--snow);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(0,0,0,.05);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.principle-num {
  font-family: var(--font-display);
  font-size: 2rem;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.principle-card h4 { margin-bottom: 0.5rem; }
.principle-card p { font-size: 0.88rem; color: var(--slate); max-width: none; }

.operating-model { background: var(--navy); }

.operating-model .eyebrow { color: rgba(255,255,255,.5); }
.operating-model h2 { color: var(--white); margin-bottom: 1rem; }
.operating-model .lead { color: rgba(255,255,255,.55); margin-bottom: var(--space-lg); }

.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: var(--space-lg);
}

.model-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  transition: border-color 0.3s, background 0.3s;
}

.model-card:hover {
  border-color: rgba(79,126,248,.3);
  background: rgba(79,126,248,.05);
}

.model-card h4 { color: var(--white); margin-bottom: 0.6rem; }
.model-card p { color: rgba(255,255,255,.55); font-size: 0.9rem; max-width: none; }

.who-its-for { background: var(--snow); }

.who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: var(--space-lg);
}

.who-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem;
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.who-item h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.who-item p { font-size: 0.88rem; color: var(--slate); max-width: none; }

.about-cta { background: var(--white); text-align: center; }
.about-cta h2 { margin-bottom: 1rem; }
.about-cta .lead { margin-bottom: 2rem; }

@media (max-width: 900px) {
  .about-intro-grid { grid-template-columns: 1fr; }
  .about-photo-block { max-width: 400px; margin: 0 auto; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .principles-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ============================================================ */

.legal-content { background: var(--white); }

.legal-body {
  max-width: 740px;
}

.legal-body h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mist);
}

.legal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-body p {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  max-width: none;
}

.legal-body a { color: var(--accent); text-decoration: underline; }

.legal-notice {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.87rem;
  color: #92400e;
  margin-bottom: 2.5rem;
}


/* ============================================================
   COOKIE BANNER (optional, deactivated by default)
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem; right: 1.5rem;
  max-width: 520px;
  background: var(--navy);
  color: rgba(255,255,255,.8);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.08);
  z-index: 9999;
  display: none; /* JS reveals this */
}

.cookie-banner.visible { display: block; }

.cookie-banner p { font-size: 0.87rem; max-width: none; margin-bottom: 1.1rem; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }

.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }