/* ==========================================================================
   Pixelform — Design System & Styles
   ========================================================================== */

/* Bewusst keine Google Fonts / externen Font-CDNs eingebunden (DSGVO: kein
   Datenabfluss an Dritte). Stattdessen ein hochwertiger System-Font-Stack,
   der auf allen Plattformen ohne Nachladen sofort verfügbar ist. */

:root {
  /* --- Color: surfaces --- */
  --bg: #05060a;
  --bg-soft: #090b11;
  --surface: #10131c;
  --surface-2: #151a27;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* --- Color: text --- */
  --text: #f5f6f8;
  --text-dim: #9aa0ae;
  --text-faint: #868da0;

  /* --- Color: accents --- */
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #38f2c0;
  --accent-grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --danger: #ff5c7c;

  /* --- Radii / shadows --- */
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(124, 92, 255, 0.25), 0 20px 60px -20px rgba(124, 92, 255, 0.35);

  /* --- Motion --- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.2s;
  --dur: 0.5s;
  --dur-slow: 0.9s;

  /* --- Type --- */
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* --- Layout --- */
  --container: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--surface);
  color: var(--text);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section { position: relative; padding-block: clamp(72px, 12vw, 160px); }
section[id] { scroll-margin-top: 96px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 12px 2px rgba(124, 92, 255, 0.7);
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head p { margin-top: 16px; color: var(--text-dim); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 14px;
  --btn-pad-x: 26px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
  isolation: isolate;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent-grad);
  color: #05060a;
  box-shadow: 0 10px 30px -8px rgba(124, 92, 255, 0.6);
}
.btn-primary:hover { box-shadow: 0 14px 40px -6px rgba(124, 92, 255, 0.8); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.btn-sm { --btn-pad-y: 10px; --btn-pad-x: 18px; font-size: 13.5px; }

.btn .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-block: 12px;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}
.logo .dot { color: var(--accent-2); }
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent-grad);
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after {
  content: "";
  position: absolute; inset: 6px;
  background: var(--bg);
  border-radius: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.nav-links a { position: relative; transition: color var(--dur-fast) var(--ease); padding: 4px 0; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent-2);
  transition: width var(--dur-fast) var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--text); transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 6, 10, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-family: var(--font-sans);
  font-size: 28px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  visibility: hidden;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow.a { width: 520px; height: 520px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(124,92,255,0.45), transparent 70%); animation: float-a 16s var(--ease-in-out) infinite; }
.hero-glow.b { width: 460px; height: 460px; bottom: -140px; right: -100px; background: radial-gradient(circle, rgba(34,211,238,0.4), transparent 70%); animation: float-b 20s var(--ease-in-out) infinite; }

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.08); }
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, black 0%, transparent 75%);
  z-index: 0;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero-tag .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(56, 242, 192, 0.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 242, 192, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(56, 242, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 242, 192, 0); }
}

.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  max-width: 920px;
}
.hero h1 span.line { display: block; overflow: hidden; }
.hero h1 span.line > span { display: inline-block; }

.hero-sub {
  margin-top: 26px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 560px;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 80px;
  display: flex;
  gap: clamp(24px, 5vw, 56px);
  flex-wrap: wrap;
}
.hero-meta .stat { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .stat b {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
}
.hero-meta .stat span { font-size: 13px; color: var(--text-faint); font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ---------- Marquee ---------- */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 28px;
  overflow: hidden;
  position: relative;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
}
.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.marquee-track {
  display: flex;
  width: max-content;
  gap: 64px;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.marquee-track span::before { content: "//"; color: var(--accent); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Services: big banner rows ---------- */
.services-list { display: flex; flex-direction: column; margin-top: 24px; }

.service-row {
  position: relative;
  border-top: 1px solid var(--border);
  overflow: hidden;
  transition: background var(--dur) var(--ease);
}
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row:hover { background: var(--bg-soft); }

.service-bg-num {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(160px, 22vw, 340px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transition: opacity var(--dur) var(--ease), -webkit-text-stroke-color var(--dur) var(--ease);
}
.service-row:hover .service-bg-num {
  opacity: 0.9;
  -webkit-text-stroke-color: rgba(124, 92, 255, 0.35);
}

.service-row-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(56px, 9vw, 108px);
}
.service-row.reverse .service-row-inner { flex-direction: row-reverse; }

.service-main { flex: 1.1; min-width: 0; }
.service-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--accent-2);
  margin-bottom: 26px;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.service-row:hover .service-icon { transform: translateY(-4px) rotate(-4deg); border-color: var(--accent-2); }

.service-main h3 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 16px; letter-spacing: -0.01em; }
.service-main p { color: var(--text-dim); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.7; max-width: 46ch; }
.service-main .tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.service-main .tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}

.service-visual {
  flex: 0.9;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.6;
}
.service-visual .blob {
  position: absolute;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(54px);
  opacity: 0.55;
  animation: float-blob 9s var(--ease-in-out) infinite;
}
.service-visual .big-icon {
  position: relative;
  z-index: 1;
  width: 32%;
  height: auto;
  color: var(--text);
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.45));
  animation: float-icon 6s var(--ease-in-out) infinite;
}
.service-row:hover .service-visual .big-icon { animation-play-state: paused; transform: translateY(-10px) scale(1.04); }

@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -12px) scale(1.1); }
}

@media (max-width: 900px) {
  .service-row-inner { flex-direction: column !important; align-items: stretch; gap: 32px; }
  .service-visual { aspect-ratio: 16 / 10; }
  .service-bg-num { font-size: 26vw; }
}

/* ---------- Process ---------- */
.process-list { display: flex; flex-direction: column; }
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding-block: 36px;
  border-top: 1px solid var(--border);
  position: relative;
}
.process-item:last-child { border-bottom: 1px solid var(--border); }
.process-item .pnum {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent-2);
}
.process-item h3 { font-size: 22px; margin-bottom: 10px; }
.process-item p { color: var(--text-dim); max-width: 560px; }
.process-item .pdur {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  white-space: nowrap;
}
.process-row-end { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Why / features split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split > div {
  /* Without this, the unwrapped <pre> in .code-panel-body forces this grid
     item (and the whole page) wider than the viewport on narrow screens,
     since grid items default to min-width:auto (= their content's min-content
     size) regardless of overflow set further down the tree. */
  min-width: 0;
}
.feature-list { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }
.feature-item { display: flex; gap: 18px; }
.feature-item .fi-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-3);
}
.feature-item h4 { font-size: 16.5px; margin-bottom: 6px; }
.feature-item p { color: var(--text-dim); font-size: 14.5px; }

.code-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.code-panel-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.code-panel-head span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.code-panel-head span:nth-child(1) { background: #ff5f57; }
.code-panel-head span:nth-child(2) { background: #febc2e; }
.code-panel-head span:nth-child(3) { background: #28c840; }
.code-panel-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-dim);
  overflow-x: auto;
}
.code-panel-body .c-kw { color: #ff79c6; }
.code-panel-body .c-fn { color: var(--accent-2); }
.code-panel-body .c-str { color: var(--accent-3); }
.code-panel-body .c-com { color: var(--text-faint); }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.portfolio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.portfolio-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.portfolio-thumb {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #14101f, #0c1520);
  display: flex; align-items: center; justify-content: center;
}
.portfolio-thumb .glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; filter: blur(60px); opacity: 0.5; }
.portfolio-thumb span.mono {
  position: relative; z-index: 1;
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.portfolio-body { padding: 26px 28px; }
.portfolio-body .cat { font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.08em; }
.portfolio-body h3 { margin-top: 8px; font-size: 19px; }
.portfolio-body p { margin-top: 8px; color: var(--text-dim); font-size: 14.5px; }
.portfolio-body .link { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; }

/* ---------- Counters strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stats-strip .stat-cell {
  padding: 36px 28px;
  border-left: 1px solid var(--border);
  text-align: center;
}
.stats-strip .stat-cell:first-child { border-left: none; }
.stats-strip b { font-family: var(--font-sans); font-size: clamp(28px, 3vw, 40px); display: block; }
.stats-strip span { font-size: 13px; color: var(--text-faint); font-family: var(--font-mono); }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.contact-info h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; }
.contact-info p { color: var(--text-dim); margin-bottom: 32px; }
.contact-detail { display: flex; align-items: center; gap: 14px; padding-block: 4px; margin-bottom: 14px; }
.contact-detail .ci-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; color: var(--accent-2); flex-shrink: 0;
}
.contact-detail a, .contact-detail span.txt { font-size: 14.5px; }
.contact-detail a:hover { color: var(--accent-2); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; position: relative; }
.field label {
  display: block;
  font-size: 12.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.field label .req { color: var(--accent-2); margin-left: 3px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-size: 15px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%); background-position: calc(100% - 22px) center, calc(100% - 16px) center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }

.form-note { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }
.form-hint { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--text-faint); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding-block: 56px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--text-dim); max-width: 320px; margin-top: 14px; font-size: 14.5px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 18px; }
.footer-col a, .footer-col span.txt { display: block; padding-block: 4px; margin-bottom: 6px; font-size: 14.5px; color: var(--text-dim); transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,0.10), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
  will-change: transform;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  z-index: 60;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), background var(--dur-fast);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--surface-2); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
  transform: translateY(140%);
  opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  pointer-events: none;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-msg {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cookie-msg svg { flex-shrink: 0; margin-top: 2px; color: var(--accent-3); }
.cookie-msg p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
}
.cookie-banner strong { color: var(--text); font-weight: 600; }
.cookie-banner a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 500px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
}

/* ---------- Legal pages ---------- */
.legal-page { padding-top: 160px; padding-bottom: 100px; }
.legal-page h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.legal-page .updated { color: var(--text-faint); font-family: var(--font-mono); font-size: 13px; margin-bottom: 48px; }
.legal-page h2 { font-size: 20px; margin-top: 44px; margin-bottom: 14px; }
.legal-page h3 { font-size: 16px; margin-top: 26px; margin-bottom: 10px; color: var(--text); }
.legal-page p, .legal-page li { color: var(--text-dim); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-page strong { color: var(--text); font-weight: 600; }
.placeholder {
  background: rgba(255, 92, 124, 0.08);
  color: var(--danger);
  padding: 1px 6px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.92em;
  border: 1px solid rgba(255, 92, 124, 0.25);
}
.legal-page .callout {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-top: 120px; }
  .footer-top { flex-direction: column; }
}
