/* ============================================================
   AF SOFTWARE ENGINEERING — Professional Design System 2025
   ============================================================ */

:root {
  --bg:          #04080f;
  --bg-surface:  #070d18;
  --bg-card:     rgba(255,255,255,.035);
  --bg-card-h:   rgba(255,255,255,.07);

  /* Brand accent — electric blue */
  --accent:       #3b82f6;
  --accent-light: #60a5fa;
  --accent-dim:   rgba(59,130,246,.18);
  --accent-glow:  rgba(59,130,246,.35);
  --accent-rgb:   59,130,246;

  /* Text */
  --text:   #eef2ff;
  --muted:  rgba(200,215,255,.72);
  --subtle: rgba(200,215,255,.45);

  /* Borders */
  --line:       rgba(255,255,255,.08);
  --line-hover: rgba(59,130,246,.55);

  /* Spacing / radius */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --container: 1200px;
  --header-h:  72px;

  /* Transitions */
  --t: 200ms cubic-bezier(.3,.9,.2,1);
}

/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }
body {
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

/* ─── Layout ─────────────────────────────────────── */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ─── Header ─────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(4,8,15,.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background var(--t), border-color var(--t);
}
.site-header.scrolled {
  background: rgba(4,8,15,.96);
  border-bottom-color: rgba(59,130,246,.25);
  box-shadow: 0 0 0 1px rgba(59,130,246,.1), 0 8px 32px rgba(0,0,0,.4);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}
.brand-name span {
  color: var(--accent-light);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: background var(--t), color var(--t);
}
.nav a:hover { background: rgba(255,255,255,.07); color: var(--text); }
.nav a.is-active {
  background: rgba(59,130,246,.15);
  color: var(--accent-light);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,.25);
}
.nav .btn-contact {
  margin-left: 8px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(59,130,246,.35);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav .btn-contact:hover {
  background: var(--accent-light);
  box-shadow: 0 0 28px rgba(59,130,246,.55);
  color: #fff;
}

/* ─── Burger ─────────────────────────────────────── */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

/* ─── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(4,8,15,.5) 10%, rgba(4,8,15,.72) 56%, rgba(4,8,15,.88) 100%),
    url("../assets/hero.jpg") center/cover no-repeat;
}

/* Hero background mesh */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59,130,246,.22), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139,92,246,.12), transparent),
    radial-gradient(ellipse 50% 60% at 0% 60%, rgba(6,182,212,.1), transparent);
  pointer-events: none;
  z-index: 0;
}
/* Subtle grid lines */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.6) 0%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy { max-width: 580px; }
.hero-copy {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(96,165,250,.22);
  background: rgba(7,13,22,.58);
  box-shadow: 0 30px 60px rgba(0,0,0,.32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating code card in hero */
.hero-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: rgba(7,13,22,.78);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(59,130,246,.15), 0 30px 70px rgba(0,0,0,.5), 0 0 60px rgba(59,130,246,.15);
}
.hero-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
}
.hero-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hero-card-dot:nth-child(1) { background: #ff5f56; }
.hero-card-dot:nth-child(2) { background: #febc2e; }
.hero-card-dot:nth-child(3) { background: #28c840; }
.hero-card-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  color: var(--subtle);
  font-family: monospace;
}
.hero-card-body {
  padding: 22px 22px 10px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(200,215,255,.85);
}
.hero-card-line { display: flex; gap: 14px; }
.ln { color: var(--subtle); user-select: none; min-width: 18px; text-align: right; }
.kw  { color: #c084fc; }  /* keyword - purple */
.cl  { color: #67e8f9; }  /* class - cyan */
.mt  { color: #93c5fd; }  /* method - blue */
.st  { color: #86efac; }  /* string - green */
.cm  { color: rgba(148,163,184,.6); }  /* comment - subtle */
.nu  { color: #fca5a5; }  /* number - red */

/* Glow orb behind card */
.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.2), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: 100px;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.3);
  font-size: 12px;
  color: var(--accent-light);
  font-weight: 500;
  letter-spacing: .01em;
  margin-bottom: 20px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 6px var(--accent-light);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* Hero headings */
.hero h1 {
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(222,234,255,.9);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

/* Trust row */
.trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(219,230,252,.92);
}
.trust-icon {
  color: var(--accent-light);
  font-size: 14px;
}

/* ─── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) !important; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: rgba(59,130,246,.5);
  box-shadow: 0 0 0 0 rgba(59,130,246,0);
}
.btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 0 24px rgba(59,130,246,.45);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.05);
  color: var(--text);
  transform: translateY(-1px);
}
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* ─── Stats Bar ─────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7,13,22,.6);
  padding: 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 30px 20px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat-item:last-child { border-right: 0; }
.stat-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── Sections ─────────────────────────────────────── */
.section {
  padding: 96px 0;
}
.section-alt {
  background: rgba(7,13,22,.5);
}
.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--accent-light);
  border-radius: 2px;
}
.section-head h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.section-head .lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
}
.section-head.centered .lead { margin: 0 auto; }

/* ─── SEO Content Blocks ─────────────────────────────────────── */
.seo-content {
  max-width: 980px;
}
.seo-content p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 14px;
}
.seo-content h3 {
  margin: 26px 0 10px;
  font-size: 20px;
  letter-spacing: -.01em;
}
.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.link-cloud a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.link-cloud a:hover {
  border-color: rgba(59,130,246,.5);
  background: rgba(59,130,246,.12);
  transform: translateY(-1px);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 26px;
}
.faq-item {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
}
.faq-item h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.faq-item p {
  margin: 0;
  font-size: 14px;
}

/* ─── Service Cards ─────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  overflow: hidden;
  text-decoration: none;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 300px at 0% 0%, rgba(59,130,246,.08), transparent);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.service-card:hover {
  background: var(--bg-card-h);
  border-color: rgba(59,130,246,.35);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 0 0 1px rgba(59,130,246,.15);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.25);
  font-size: 22px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.service-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 10px;
}
.service-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}
.service-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--t);
}
.service-card:hover .service-link { gap: 9px; }

/* ─── Feature chips / tags ─────────────────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tag {
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ─── Slice / Split sections ─────────────────────────────────────── */
.slice {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.slice-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.slice-inner.reverse {
  direction: rtl;
}
.slice-inner.reverse > * { direction: ltr; }

.slice-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(7,13,22,.8);
  border: 1px solid rgba(59,130,246,.2);
  box-shadow: 0 0 0 1px rgba(59,130,246,.1), 0 30px 60px rgba(0,0,0,.4), 0 0 40px rgba(59,130,246,.1);
  min-height: 380px;
  background-size: cover;
  background-position: center;
}
.slice-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 50% 50%, transparent, rgba(4,8,15,.3));
  pointer-events: none;
}
.slice-media-framework { background-image: url("../assets/robot-cell.jpg"); }
.slice-media-industrie { background-image: url("../assets/industrie40.jpg"); }
.slice-media-beratung { background-image: url("../assets/usecase-pallet.jpg"); }

.hero-actions-wrap { flex-wrap: wrap; }
.hero-actions-centered {
  justify-content: center;
  margin-top: 18px;
}

.hero-card-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.cases-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 20px;
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.case-card:hover {
  border-color: rgba(59,130,246,.35);
  background: var(--bg-card-h);
  transform: translateY(-2px);
}
.case-kpi {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 10px;
}
.case-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.case-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.case-link {
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
}

.slice-copy h2 {
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.slice-copy .lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.slice-copy .list {
  padding-left: 0;
  margin-bottom: 28px;
  list-style: none;
}
.slice-copy .list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.slice-copy .list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ─── Process Steps ─────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}
.step {
  padding: 32px 24px;
  background: var(--bg-surface);
  transition: background var(--t);
  position: relative;
}
.step:hover { background: rgba(7,20,40,.8); }
.step-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 14px;
  font-family: monospace;
}
.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.step-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Icon Boxes (feature grid) ─────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-box {
  padding: 32px 28px;
  background: var(--bg-surface);
  transition: background var(--t);
  position: relative;
  overflow: hidden;
}
.feature-box:hover { background: rgba(7,20,40,.85); }
.feature-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.feature-box:hover::before { opacity: 1; }

.feature-ico {
  font-size: 24px;
  margin-bottom: 16px;
  display: block;
}
.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.feature-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── CTA Section ─────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(59,130,246,.14), transparent),
    radial-gradient(ellipse 50% 100% at 0% 50%, rgba(99,102,241,.1), transparent),
    radial-gradient(ellipse 50% 100% at 100% 50%, rgba(6,182,212,.08), transparent);
  pointer-events: none;
}
.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
  pointer-events: none;
}
.cta-card {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-card h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.cta-card p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 55ch;
  margin: 0 auto 36px;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── Footer ─────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(2,5,10,.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}
.footer-logo-name {
  font-size: 14px;
  font-weight: 700;
}
.footer-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 28ch;
  margin-bottom: 20px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-links { }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--t);
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 13px;
  color: var(--subtle);
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 13px;
  color: var(--subtle);
  transition: color var(--t);
}
.footer-legal a:hover { color: var(--muted); }
.footer-backtop { color: var(--muted); }
.footer-contact-block { margin-top: 20px; }
.footer-contact-text { font-size: 13px; line-height: 1.7; }
.footer-mail-link { color: var(--accent-light); }

/* ─── Page Hero (inner pages) ─────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(59,130,246,.15), transparent),
    radial-gradient(ellipse 60% 60% at 0% 100%, rgba(139,92,246,.08), transparent);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black, transparent 80%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 16px;
}
.page-hero h1 .gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero .lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: 28px;
}

/* ─── Page hero actions ─────────────────────────────────────── */
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-top-offset { padding-top: 120px; }
.legal-content-wrap {
  max-width: 65ch;
  line-height: 1.8;
}
.legal-h2 { margin-top: 32px; }
.legal-updated {
  margin-top: 32px;
  font-size: 0.9em;
}

.thankyou-card {
  border: 1px solid rgba(59,130,246,.35);
  border-radius: var(--radius-lg);
  background: rgba(7,13,24,.74);
  padding: 28px;
  max-width: 760px;
  margin: 0 auto;
}
.thankyou-ticket {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(59,130,246,.3);
  background: rgba(59,130,246,.14);
  font-family: monospace;
  font-size: 15px;
}
.thankyou-steps {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.notfound-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
}
.notfound-code {
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--accent-light);
  line-height: .95;
}
.notfound-text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

/* ─── Framework page ─────────────────────────────────────── */
.framework-interactive {
  padding: 0;
}
.interactive-wrap {
  border: 1px solid rgba(59,130,246,.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(7,13,22,.9);
  box-shadow: 0 0 0 1px rgba(59,130,246,.08), 0 40px 80px rgba(0,0,0,.5);
}
#image-container {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
}
#mainImage {
  width: 100%;
  height: auto;
  display: block;
}
.hotspot {
  position: absolute;
  cursor: pointer;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(96,165,250,.35);
  transition: background .15s ease;
}
.hotspot:hover { background: rgba(96,165,250,.3); }

/* ─── Blog cards ─────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  text-decoration: none;
}
.blog-card:hover {
  border-color: rgba(59,130,246,.35);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.blog-card-top {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.blog-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.25);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.blog-date {
  font-size: 12px;
  color: var(--subtle);
}
.blog-card-body {
  padding: 0 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}
.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  transition: gap var(--t);
}
.blog-card:hover .blog-card-link { gap: 8px; }

/* ─── Contact page ─────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-info { }
.contact-info-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -.01em;
}
.contact-info-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.2);
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.contact-info-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.contact-info-text a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(96,165,250,.35);
}

.contact-checklist {
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.contact-checklist-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.contact-checklist-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-checklist-list li {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
}
.contact-checklist-list li:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.contact-checklist-mark {
  color: var(--accent-light);
  flex-shrink: 0;
}

.contact-next-steps {
  margin-top: 26px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.contact-next-steps h3 {
  font-size: 20px;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
.contact-next-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.contact-step-item {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.contact-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-light);
  border: 1px solid rgba(59,130,246,.35);
  background: rgba(59,130,246,.12);
  margin-bottom: 10px;
}
.contact-step-item h4 {
  font-size: 14px;
  margin-bottom: 6px;
}
.contact-step-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Ticket form ─────────────────────────────────────── */
.ticket-shell {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.ticket-info-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}
.ticket-info-box strong {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-light);
}
.ticket-success-message {
  display: none;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.3);
  margin-bottom: 20px;
  text-align: center;
}
.ticket-success-message.show { display: block; }
.ticket-success-message h3 {
  font-size: 22px;
  color: #4ade80;
  margin-bottom: 8px;
}
.ticket-number {
  display: inline-block;
  margin: 12px 0;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(74,222,128,.15);
  border: 1px solid rgba(74,222,128,.3);
  font-weight: 700;
  font-family: monospace;
  color: #4ade80;
}
.ticket-form-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.ticket-form-title-top {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ticket-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ticket-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.ticket-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.required { color: #f87171; }
.ticket-form-group input,
.ticket-form-group select,
.ticket-form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--t), background var(--t);
}
.ticket-form-group select { color-scheme: dark; }
.ticket-form-group select option { background: #0d1526; color: var(--text); }
.ticket-form-group textarea { min-height: 140px; resize: vertical; }
.ticket-form-group input:focus,
.ticket-form-group select:focus,
.ticket-form-group textarea:focus {
  outline: none;
  border-color: rgba(59,130,246,.6);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.ticket-form-group.error input,
.ticket-form-group.error select,
.ticket-form-group.error textarea {
  border-color: rgba(248,113,113,.7);
}
.ticket-error-message {
  display: none;
  font-size: 12px;
  color: #fca5a5;
}
.ticket-error-message.show { display: block; }
.contact-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.contact-privacy-note {
  font-size: 12px;
  margin-top: 14px;
}
.contact-privacy-link { color: var(--accent-light); }
.ticket-submit-btn[disabled] { opacity: .6; cursor: not-allowed; }
.ticket-loading {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(59,130,246,.35);
  background: rgba(7,13,24,.96);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
}
.consent-banner-text {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.consent-banner-text a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(96,165,250,.35);
}
.consent-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 110;
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(59,130,246,.42);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 12px 26px rgba(0,0,0,.38);
}

/* ─── Career page ─────────────────────────────────────── */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.job-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}
.job-card:hover {
  background: var(--bg-card-h);
  border-color: rgba(59,130,246,.35);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.job-tag-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.job-tag {
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.25);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.job-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 10px;
}
.job-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--subtle);
}
.job-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.job-requirements { margin-bottom: 20px; }
.job-requirements h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 10px;
}
.job-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.job-requirements li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--muted);
}
.job-requirements li::before {
  content: "✓";
  color: var(--accent-light);
  font-size: 12px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ─── Utility ─────────────────────────────────────── */
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.accent { color: var(--accent-light); }
.fw-bold { font-weight: 700; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.divider {
  height: 1px;
  background: var(--line);
  margin: 40px 0;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ─── Scroll reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-content: flex-start; }
  .hero-card { max-width: 100%; }
  .hero-copy { padding: 18px 16px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-next-steps-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(4,8,15,.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
    display: none;
    z-index: 99;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav .btn-contact { margin-left: 0; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .slice-inner { grid-template-columns: 1fr; }
  .slice-inner.reverse { direction: ltr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ticket-form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(30px, 8vw, 44px); }
  .section { padding: 64px 0; }
  .slice { padding: 64px 0; }
  .job-grid { grid-template-columns: 1fr; }
  .mobile-sticky-cta { display: inline-flex; }
  .consent-banner {
    grid-template-columns: 1fr;
    bottom: 70px;
  }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .ticket-shell { padding: 22px; }
}
