/* ==========================================================================
   OEDER STUDIOS — SUB-PAGE BASE STYLES (Shared by websites.html & apps.html)
   ========================================================================== */

:root {
  --ink-deep: #0A0A0B;
  --ink-soft: #0E0E10;
  --ink-line: rgba(245, 242, 236, 0.08);
  --ink-line-strong: rgba(245, 242, 236, 0.16);
  --paper: #F5F2EC;
  --paper-mute: rgba(245, 242, 236, 0.55);
  --paper-dim: rgba(245, 242, 236, 0.3);
  --gold: #C9A961;
  --gold-deep: #9D7E3B;
  --bordeaux: #9B2A28;
  --bordeaux-deep: #7B1818;
  --accent: var(--bordeaux);
  --accent-glow: rgba(155, 42, 40, 0.4);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter Tight', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-premium: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-dramatic: cubic-bezier(0.83, 0, 0.17, 1);
  --pad-x: clamp(24px, 5vw, 64px);
}

/* Per-page accent overrides */
body[data-page="websites"] { --accent: var(--bordeaux); --accent-glow: rgba(155, 42, 40, 0.4); }
body[data-page="apps"]     { --accent: var(--gold);     --accent-glow: rgba(201, 169, 97, 0.4); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ink-deep);
  color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
button, input, select, textarea {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input, select, textarea { cursor: text; }

/* ==========================================================================
   LOADER
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink-deep);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0s 0.6s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-content {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.loader-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 28px; color: var(--paper);
  letter-spacing: 0.02em;
}
.loader-word { display: inline-block; }
.loader-divider {
  display: inline-block;
  width: 1px; height: 0.78em;
  background: var(--gold);
}
.loader-bar {
  width: 120px; height: 1px;
  background: rgba(245, 242, 236, 0.1);
  overflow: hidden;
}
.loader-fill {
  width: 0; height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  animation: loaderFill 1.4s var(--ease-premium) forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 20px var(--pad-x);
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink-line);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--paper);
  transition: opacity 0.3s var(--ease);
}
.nav-brand:hover { opacity: 0.75; }
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-word { display: inline-block; }
.brand-divider {
  display: inline-block;
  width: 1px;
  height: 0.78em;
  background: var(--gold);
}
.nav-context {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 12px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  justify-content: center;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  transition: color 0.3s var(--ease);
}
.nav-link:hover { color: var(--paper); }
.nav-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  font-weight: 500;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 12px 20px;
  border: 1px solid var(--gold);
  border-radius: 24px;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--ink-deep);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--paper);
}

/* ==========================================================================
   BACK-PILL (Top right corner, jumps back to /)
   ========================================================================== */
.back-pill {
  position: fixed;
  top: 84px;
  right: var(--pad-x);
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(10, 10, 11, 0.8);
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--paper-mute);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease);
}
.back-pill:hover {
  color: var(--gold);
  border-color: rgba(201, 169, 97, 0.4);
  transform: translateX(-4px);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--pad-x) 80px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 80%, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, var(--ink-deep) 0%, var(--ink-soft) 100%);
}

.hero-meta {
  position: absolute;
  top: 100px;
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--paper-mute);
}
.meta-label { color: var(--accent); }
.meta-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  flex: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
.eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-bottom: 32px;
}
.hero-headline em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.reveal-line {
  display: block;
  overflow: hidden;
}
.reveal-inner {
  display: inline-block;
  transform: translateY(100%);
  animation: revealUp 1s var(--ease-premium) forwards;
}
.reveal-line:nth-of-type(2) .reveal-inner { animation-delay: 0.1s; }
.reveal-line:nth-of-type(3) .reveal-inner { animation-delay: 0.2s; }
@keyframes revealUp {
  to { transform: translateY(0); }
}

.hero-sub {
  font-size: 17px;
  color: var(--paper-mute);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 32px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, black) 100%);
  color: var(--paper);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 45%, transparent);
}
.btn-ghost {
  color: var(--paper);
  border: 1px solid var(--ink-line-strong);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-large {
  padding: 22px 36px;
  font-size: 13px;
}

.hero-stats {
  display: flex;
  gap: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--ink-line);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
}
.stat-suffix {
  font-size: 28px;
  color: var(--paper-mute);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--paper-mute);
  text-transform: uppercase;
}

/* === HERO VISUAL: 3D Browser Stack === */
.hero-visual {
  position: relative;
  width: 100%;
  perspective: 1400px;
}
.browser-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  transform-style: preserve-3d;
  animation: stackFloat 6s ease-in-out infinite;
}
@keyframes stackFloat {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
  50%      { transform: rotateY(-8deg) rotateX(4deg) translateY(-12px); }
}

.browser-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(180deg, #0E0E10 0%, #08080A 100%);
  border: 1px solid rgba(201, 169, 97, 0.3);
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.8),
    0 0 80px -10px color-mix(in srgb, var(--accent) 25%, transparent);
}
.browser-card-3 {
  transform: translate(40px, 40px) translateZ(-100px);
  opacity: 0.4;
}
.browser-card-2 {
  transform: translate(20px, 20px) translateZ(-50px);
  opacity: 0.7;
}
.browser-card-1 {
  z-index: 3;
  overflow: hidden;
}
.bc-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}
.bc-dots { display: flex; gap: 6px; }
.bc-dots span { width: 9px; height: 9px; border-radius: 50%; }
.bc-dots span:nth-child(1) { background: #FF5F57; opacity: 0.65; }
.bc-dots span:nth-child(2) { background: #FEBC2E; opacity: 0.65; }
.bc-dots span:nth-child(3) { background: #28C840; opacity: 0.65; }
.bc-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--paper-mute);
  letter-spacing: 0.04em;
}
.bc-status {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold);
  padding: 3px 8px;
  border: 1px solid rgba(201, 169, 97, 0.4);
  border-radius: 3px;
}
.bc-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245, 242, 236, 0.05);
}
.bc-logo {
  width: 60px; height: 10px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  border-radius: 2px;
}
.bc-nav-links { display: flex; gap: 12px; }
.bc-nav-links span {
  width: 36px; height: 5px;
  background: rgba(245, 242, 236, 0.3);
  border-radius: 1px;
}
.bc-cta-mini {
  width: 50px; height: 16px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, black));
  border-radius: 3px;
}
.bc-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
}
.bc-eyebrow {
  width: 70px; height: 5px;
  background: var(--accent);
  border-radius: 1px;
}
.bc-h1 {
  height: 18px;
  width: 80%;
  background: var(--paper);
  border-radius: 3px;
}
.bc-h2 {
  height: 18px;
  width: 55%;
  background: linear-gradient(90deg, var(--paper) 0%, var(--accent) 100%);
  border-radius: 3px;
}
.bc-sub {
  height: 6px;
  width: 70%;
  background: rgba(245, 242, 236, 0.3);
  border-radius: 1px;
  margin-top: 6px;
}
.bc-cta-primary {
  width: 100px; height: 22px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, black));
  border-radius: 4px;
  margin-top: 8px;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent);
}
.bc-featured {
  height: 70px;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--gold) 30%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, #2A1010 0%, #110707 100%);
  border-radius: 6px;
}
.bc-cards {
  display: flex;
  gap: 8px;
}
.bc-card {
  flex: 1;
  height: 60px;
  background: linear-gradient(135deg, #1F0F0F, #110707);
  border-radius: 4px;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.browser-stack-glow {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 120%;
  height: 30%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* === HERO SCROLL INDICATOR === */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--paper-mute);
  animation: heroScrollIn 1.5s var(--ease) 1s both;
  z-index: 2;
}
@keyframes heroScrollIn {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hero-scroll > span:first-child { padding-left: 0.3em; }
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--gold);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 50%;
  background: var(--paper);
  animation: scrollLineDown 2s var(--ease) infinite;
}
@keyframes scrollLineDown {
  0%, 100% { transform: translateY(-100%); }
  50% { transform: translateY(200%); }
}

/* ==========================================================================
   SECTIONS — Shared
   ========================================================================== */
section {
  padding: 140px var(--pad-x);
}

.section-head {
  max-width: 800px;
  margin: 0 auto 80px;
  text-align: center;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-num {
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-bottom: 24px;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-intro {
  font-size: 17px;
  color: var(--paper-mute);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   SERVICES (Was wir bauen)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  background: linear-gradient(180deg, var(--ink-soft) 0%, var(--ink-deep) 100%);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.4s var(--ease);
}
.service-card:hover {
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
.service-card-featured {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--ink-soft)) 0%, var(--ink-deep) 100%);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.service-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-deep);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  padding: 5px 14px;
  border-radius: 12px;
}
.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--gold);
}
.service-icon {
  width: 56px;
  height: 56px;
  color: var(--paper-mute);
}
.service-icon svg {
  width: 100%;
  height: 100%;
}
.service-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  color: var(--paper);
}
.service-title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.service-desc {
  font-size: 14px;
  color: var(--paper-mute);
  line-height: 1.6;
}
.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-line);
  flex: 1;
}
.service-features li {
  font-size: 13px;
  color: var(--paper);
  padding-left: 20px;
  position: relative;
}
.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}
.service-features code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  background: rgba(201, 169, 97, 0.1);
  padding: 1px 6px;
  border-radius: 3px;
}
.service-cta {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}
.service-link:hover { gap: 16px; }

/* ==========================================================================
   PROCESS (Wie wir arbeiten)
   ========================================================================== */
.process {
  background: linear-gradient(180deg, var(--ink-deep) 0%, var(--ink-soft) 100%);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
}
.process-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 60px;
}
.step-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
  background: var(--ink-deep);
}
.step-line {
  position: absolute;
  top: 80px;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.step-content {
  padding-top: 16px;
}
.step-day {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 12px;
}
.step-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  color: var(--paper);
  margin-bottom: 12px;
}
.step-desc {
  font-size: 15px;
  color: var(--paper-mute);
  line-height: 1.7;
  margin-bottom: 20px;
}
.step-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-deliverables li {
  font-size: 13px;
  color: var(--paper);
  padding-left: 20px;
  position: relative;
}
.step-deliverables li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: linear-gradient(180deg, var(--ink-soft) 0%, var(--ink-deep) 100%);
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.4s var(--ease);
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
}
.price-card-featured {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 15%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--ink-soft)) 0%, var(--ink-deep) 100%);
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
  transform: scale(1.02);
}
.price-card-featured:hover {
  transform: translateY(-4px) scale(1.02);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-deep);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  padding: 6px 14px;
  border-radius: 12px;
  white-space: nowrap;
}
.price-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-line);
}
.price-tier {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
}
.price-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  color: var(--paper);
  line-height: 1;
  margin-top: 4px;
}
.price-tag {
  font-size: 13px;
  color: var(--paper-mute);
  margin-top: 4px;
}
.price-cost {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.price-currency {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--paper-mute);
}
.price-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--paper);
}
.price-period {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--paper-mute);
  text-transform: uppercase;
}
.price-maintenance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(201, 169, 97, 0.05);
  border: 1px solid rgba(201, 169, 97, 0.15);
  border-radius: 8px;
}
.maint-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--paper-mute);
}
.maint-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.price-features li {
  font-size: 14px;
  color: var(--paper);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}
.price-features li.price-feature-disabled {
  color: var(--paper-dim);
}
.price-features li.price-feature-disabled::before {
  content: '—';
  color: var(--paper-dim);
}
.price-features code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  background: rgba(201, 169, 97, 0.1);
  padding: 1px 6px;
  border-radius: 3px;
}
.price-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 18px 28px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink-deep);
  border: 1px solid var(--gold);
  border-radius: 32px;
  transition: all 0.3s var(--ease);
}
.price-cta:hover {
  background: var(--gold);
  color: var(--ink-deep);
}
.price-cta-featured {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink-deep);
  border: none;
}
.price-cta-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--paper-mute);
  margin-top: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   SHOWCASE
   ========================================================================== */
.showcase {
  background: var(--ink-soft);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.showcase-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}
.case-card {
  background: linear-gradient(180deg, var(--ink-deep) 0%, var(--ink-soft) 100%);
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.4s var(--ease);
}
.case-card-featured {
  background:
    radial-gradient(circle at 70% 0%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink-deep) 0%, var(--ink-soft) 100%);
}
.case-card:hover {
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
  transform: translateY(-4px);
}
.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.case-tag { color: var(--gold); }
.case-year { color: var(--paper-mute); }
.case-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  color: var(--paper);
  line-height: 1.1;
}
.case-title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.case-desc {
  font-size: 15px;
  color: var(--paper-mute);
  line-height: 1.6;
}
.case-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.case-stack span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 12px;
}
.case-visual {
  margin-top: 12px;
}
.case-browser {
  background: var(--ink-deep);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.cb-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--ink-line);
}
.cb-dots { display: flex; gap: 5px; }
.cb-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.cb-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--paper-mute);
}
.cb-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
}
.cb-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cb-nav-logo {
  width: 80px; height: 10px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  border-radius: 2px;
}
.cb-nav-items { display: flex; gap: 12px; }
.cb-nav-items span {
  width: 40px; height: 4px;
  background: rgba(245, 242, 236, 0.3);
  border-radius: 1px;
}
.cb-hero-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
}
.cb-hero-eyebrow {
  width: 100px; height: 5px;
  background: var(--bordeaux);
  border-radius: 1px;
}
.cb-hero-h1 {
  height: 20px;
  width: 70%;
  background: var(--paper);
  border-radius: 3px;
}
.cb-hero-h2 {
  height: 20px;
  width: 50%;
  background: linear-gradient(90deg, var(--paper), var(--bordeaux));
  border-radius: 3px;
}
.cb-hero-cta {
  width: 110px; height: 28px;
  background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-deep));
  border-radius: 4px;
  margin-top: 8px;
  box-shadow: 0 0 16px rgba(155, 42, 40, 0.4);
}
.cb-featured-img {
  height: 80px;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 169, 97, 0.3) 0%, transparent 60%),
    linear-gradient(135deg, #2A1010 0%, #110707 100%);
  border-radius: 6px;
}
.case-card-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  transition: gap 0.3s var(--ease);
}
.case-link:hover { gap: 18px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  background:
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--accent) 15%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, var(--ink-soft) 0%, var(--ink-deep) 100%);
}
.contact-inner {
  max-width: 920px;
  margin: 0 auto;
}
.section-label-light .section-num {
  border-color: rgba(201, 169, 97, 0.4);
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  color: var(--paper);
  margin: 28px 0;
  text-align: center;
}
.contact-title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-intro {
  font-size: 16px;
  color: var(--paper-mute);
  text-align: center;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}
.contact-channel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: linear-gradient(180deg, var(--ink-soft) 0%, var(--ink-deep) 100%);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.contact-channel:hover {
  border-color: rgba(201, 169, 97, 0.4);
  transform: translateY(-2px);
}
.channel-glow {
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 120%;
  height: 100%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 25%, transparent) 0%, transparent 60%);
  filter: blur(30px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.contact-channel:hover .channel-glow { opacity: 1; }
.channel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--paper-mute);
  position: relative;
  z-index: 1;
}
.channel-value {
  font-size: 15px;
  color: var(--paper);
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--paper-mute);
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--paper);
  padding: 14px 16px;
  background: var(--ink-deep);
  border: 1px solid var(--ink-line-strong);
  border-radius: 8px;
  transition: border-color 0.3s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea {
  resize: vertical;
  font-family: var(--font-body);
}
.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--paper-dim);
  margin-top: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 80px var(--pad-x) 40px;
  background: var(--ink-deep);
  border-top: 1px solid var(--ink-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto 60px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-part-of {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
.footer-logo {
  margin: 8px 0 12px;
  font-size: 26px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--paper-mute);
  line-height: 1.6;
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--paper);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-list a {
  font-size: 13px;
  color: var(--paper-mute);
  transition: color 0.3s var(--ease);
}
.footer-list a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--ink-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--paper-mute);
  text-transform: uppercase;
}
.footer-legal {
  list-style: none;
  display: flex;
  gap: 24px;
}
.footer-legal a {
  color: var(--paper-mute);
  transition: color 0.3s var(--ease);
}
.footer-legal a:hover { color: var(--gold); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav { grid-template-columns: 1fr auto; }

  .hero-grid-layout { grid-template-columns: 1fr; gap: 56px; }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card-featured { transform: none; }
  .price-card-featured:hover { transform: translateY(-4px); }
  .showcase-grid { grid-template-columns: 1fr; }
  .contact-channels { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
  .footer-col-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav { padding: 16px var(--pad-x); }
  .nav-context { display: none; }
  .back-pill { top: 72px; }
  .hero { padding: 120px var(--pad-x) 60px; }
  .hero-meta { top: 80px; }
  .hero-headline { font-size: clamp(40px, 11vw, 64px); }
  .hero-cta-group {
    flex-direction: column; align-items: stretch;
    margin-bottom: 48px;
  }
  .btn { justify-content: center; padding: 18px 24px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; padding-top: 28px; }
  .stat-value { font-size: 32px; }
  .hero-scroll { display: none; }

  section { padding: 80px var(--pad-x); }
  .section-head { margin-bottom: 56px; }
  .section-title { font-size: clamp(32px, 8vw, 48px); }

  .process-step { grid-template-columns: 60px 1fr; gap: 24px; }
  .step-num { width: 50px; height: 50px; font-size: 18px; }
  .step-line { top: 50px; }
  .step-title { font-size: 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-legal { flex-wrap: wrap; justify-content: center; }

  /* ===== HERO-VISUAL Browser-Stack — Mobile Fix ===== */
  /* Container: contain the stack visually, no overflow */
  .hero-visual {
    max-width: 88%;
    margin: 0 auto;
    padding: 30px 30px 30px 20px; /* room for stacked cards */
    overflow: visible;
  }
  /* Less aggressive 3D tilt on mobile so cards don't fly out sideways */
  @keyframes stackFloat {
    0%, 100% { transform: rotateY(-4deg) rotateX(2deg) translateY(0); }
    50%      { transform: rotateY(-4deg) rotateX(2deg) translateY(-8px); }
  }
  /* Stacked cards: smaller offset so they don't overlap the screen edges */
  .browser-card-3 {
    transform: translate(20px, 20px) translateZ(-60px);
    opacity: 0.35;
  }
  .browser-card-2 {
    transform: translate(10px, 10px) translateZ(-30px);
    opacity: 0.65;
  }
  /* Inner browser content padding tighter so nothing overflows */
  .bc-body { padding: 16px; gap: 10px; }
  .bc-bar { padding: 10px 12px; gap: 10px; }
  .bc-url { font-size: 10px; }
  .bc-h1, .bc-h2 { height: 14px; }
  .bc-cta-primary { width: 80px; height: 20px; }
  .bc-featured { height: 56px; }
  .bc-cards { gap: 6px; }
  .bc-card { height: 46px; }
  /* Glow further down so it doesn't reach the next section */
  .browser-stack-glow {
    bottom: -5%;
    height: 20%;
    opacity: 0.6;
  }
}

/* ==========================================================================
   CLICKABLE SERVICE & PRICE CARDS
   ========================================================================== */
.service-card,
.price-card {
  cursor: pointer;
}
.service-card .service-link,
.price-card .price-cta {
  pointer-events: none;
}

/* ==========================================================================
   FAN-KARTEN SHOWCASE
   ========================================================================== */
.showcase-fan {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 80px 80px;
}

.fan-track {
  position: relative;
  height: 580px;
  perspective: 1500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fan-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  max-width: 100%;
  transform-style: preserve-3d;
  transform-origin: center center;
  cursor: pointer;
  transition:
    transform 0.7s var(--ease-premium),
    opacity 0.5s var(--ease),
    z-index 0s 0.3s;
  opacity: 0.4;
}

.fan-card:nth-child(1) { transform: translate(-50%, -50%) translateX(-280px) rotateY(25deg) scale(0.85); z-index: 1; }
.fan-card:nth-child(2) { transform: translate(-50%, -50%) translateX(0) scale(0.95); z-index: 2; opacity: 0.7; }
.fan-card:nth-child(3) { transform: translate(-50%, -50%) translateX(280px) rotateY(-25deg) scale(0.85); z-index: 1; }

.fan-card.is-active {
  transform: translate(-50%, -50%) translateX(0) scale(1) !important;
  z-index: 10 !important;
  opacity: 1 !important;
  transition: transform 0.7s var(--ease-premium), opacity 0.5s var(--ease);
}

.fan-card.is-left {
  transform: translate(-50%, -50%) translateX(-280px) rotateY(25deg) scale(0.85) !important;
  z-index: 1 !important;
  opacity: 0.4 !important;
}

.fan-card.is-right {
  transform: translate(-50%, -50%) translateX(280px) rotateY(-25deg) scale(0.85) !important;
  z-index: 1 !important;
  opacity: 0.4 !important;
}

.fan-card-inner {
  background: linear-gradient(180deg, var(--ink-soft), var(--ink-deep));
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow:
    0 40px 100px -20px rgba(0,0,0,0.7),
    0 0 60px -10px color-mix(in srgb, var(--accent) 20%, transparent);
}

.fan-card.is-active .fan-card-inner {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.fan-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.fan-tag { color: var(--gold); }
.fan-year { color: var(--paper-mute); }

.fan-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  color: var(--paper);
}
.fan-title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fan-desc {
  font-size: 14px;
  color: var(--paper-mute);
  line-height: 1.6;
}

.fan-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fan-stack span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 10px;
}

.fan-preview {
  margin-top: 8px;
  height: 220px;
  background: var(--ink-deep);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.fan-browser {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.fbn-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--ink-line);
}
.fbn-dots { display: flex; gap: 4px; }
.fbn-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.fbn-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--paper-mute);
}
.fbn-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fbn-body-dark {
  background: linear-gradient(180deg, #100806, #050203);
}
.fbn-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fbn-logo {
  width: 60px; height: 8px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  border-radius: 1px;
}
.fbn-links { display: flex; gap: 10px; }
.fbn-links span {
  width: 30px; height: 4px;
  background: rgba(245, 242, 236, 0.3);
  border-radius: 1px;
}
.fbn-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fbn-eyebrow {
  width: 80px; height: 4px;
  background: var(--bordeaux);
  border-radius: 1px;
}
.fbn-h1 {
  height: 14px; width: 70%;
  background: var(--paper);
  border-radius: 2px;
}
.fbn-h2 {
  height: 14px; width: 50%;
  background: linear-gradient(90deg, var(--paper), var(--bordeaux));
  border-radius: 2px;
}
.fbn-cta {
  width: 80px; height: 18px;
  background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-deep));
  border-radius: 3px;
  margin-top: 4px;
  box-shadow: 0 0 10px rgba(155, 42, 40, 0.4);
}
.fbn-featured {
  flex: 1;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 169, 97, 0.3) 0%, transparent 60%),
    linear-gradient(135deg, #2A1010, #110707);
  border-radius: 6px;
}

.fan-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--paper-mute);
}
.fan-placeholder-icon {
  opacity: 0.4;
  animation: phRotate 8s linear infinite;
}
@keyframes phRotate {
  to { transform: rotate(360deg); }
}
.fan-placeholder-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* Fan navigation buttons */
.fan-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 169, 97, 0.3);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s var(--ease);
}
.fan-nav:hover {
  background: var(--gold);
  color: var(--ink-deep);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 169, 97, 0.4);
}
.fan-nav-prev { left: 0; }
.fan-nav-next { right: 0; }

/* Fan dots indicator */
.fan-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.fan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 242, 236, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.fan-dot.is-active {
  background: var(--gold);
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(201, 169, 97, 0.5);
}

/* ==========================================================================
   MODAL (Service Detail + Case Study)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.modal.is-open {
  display: flex;
  animation: modalFade 0.4s var(--ease-premium);
}
@keyframes modalFade { from { opacity: 0; } }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(20px);
  cursor: pointer;
}

.modal-window {
  position: relative;
  background: linear-gradient(180deg, var(--ink-soft), var(--ink-deep));
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 56px 48px;
  box-shadow:
    0 60px 120px -20px rgba(0, 0, 0, 0.8),
    0 0 100px -20px color-mix(in srgb, var(--accent) 30%, transparent);
  animation: modalSlideUp 0.5s var(--ease-premium);
}
.modal-window-wide { max-width: 980px; }
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.6);
  border: 1px solid var(--ink-line);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s var(--ease);
}
.modal-close:hover {
  background: var(--gold);
  color: var(--ink-deep);
  border-color: var(--gold);
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.modal-eyebrow-num {
  padding: 4px 10px;
  border: 1px solid rgba(201, 169, 97, 0.4);
  border-radius: 12px;
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  color: var(--paper);
}
.modal-title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 24px;
  background: rgba(201, 169, 97, 0.06);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 12px;
  margin: 12px 0;
}
.modal-price-value {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--paper);
  line-height: 1;
}
.modal-price-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--paper-mute);
  text-transform: uppercase;
}
.modal-price-maint {
  margin-left: auto;
  text-align: right;
}
.modal-price-maint-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--paper-mute);
  text-transform: uppercase;
}
.modal-price-maint-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink-line);
}
.modal-section-text {
  font-size: 15px;
  color: var(--paper);
  line-height: 1.7;
}
.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-features li {
  font-size: 14px;
  color: var(--paper);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.modal-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
  font-size: 16px;
}
.modal-features code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  background: rgba(201, 169, 97, 0.1);
  padding: 1px 6px;
  border-radius: 3px;
}

.modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink-deep);
  border: none;
  border-radius: 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}
.modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
}

/* Modal responsive */
@media (max-width: 768px) {
  .modal-window {
    padding: 40px 24px;
    max-height: 92vh;
  }
  .modal-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .modal-price-maint {
    margin-left: 0;
    text-align: left;
  }

  /* Fan-Karten Mobile */
  .showcase-fan {
    padding: 20px 0 60px;
  }
  .fan-track {
    height: 540px;
  }
  .fan-card {
    width: calc(100vw - 80px);
    max-width: 380px;
  }
  .fan-card:nth-child(1),
  .fan-card.is-left {
    transform: translate(-50%, -50%) translateX(-90vw) rotateY(15deg) scale(0.8) !important;
  }
  .fan-card:nth-child(3),
  .fan-card.is-right {
    transform: translate(-50%, -50%) translateX(90vw) rotateY(-15deg) scale(0.8) !important;
  }
  .fan-title { font-size: 30px; }
  .fan-card-inner { padding: 24px; }
  .fan-preview { height: 160px; }
  .fan-nav {
    width: 44px;
    height: 44px;
  }
  .fan-nav-prev { left: -10px; }
  .fan-nav-next { right: -10px; }
}

/* ==========================================================================
   APPS PAGE — Hero Phone-Stack (3 floating iPhones)
   ========================================================================== */
.hero-app {
  background:
    radial-gradient(circle at 70% 80%, color-mix(in srgb, var(--gold) 14%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, var(--ink-deep) 0%, var(--ink-soft) 100%);
}

.hero-visual-app-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 540px;
  perspective: 1600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-stack {
  position: relative;
  width: 280px;
  height: 540px;
  transform-style: preserve-3d;
  animation: pstFloat 6s ease-in-out infinite;
}
@keyframes pstFloat {
  0%, 100% { transform: rotateY(-12deg) rotateX(2deg) translateY(0); }
  50%      { transform: rotateY(-12deg) rotateX(2deg) translateY(-12px); }
}

.phone-stack-card {
  position: absolute;
  width: 220px;
  height: 460px;
  background: linear-gradient(180deg, #1a1a1c 0%, #0a0a0b 100%);
  border: 2px solid rgba(201, 169, 97, 0.35);
  border-radius: 32px;
  padding: 8px;
  box-shadow:
    0 40px 100px -20px rgba(0,0,0,0.85),
    0 0 80px -10px rgba(201, 169, 97, 0.3);
}
.phone-stack-card-3 {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) translate(70px, 50px) rotateY(-15deg) scale(0.85);
  opacity: 0.5;
  z-index: 1;
}
.phone-stack-card-2 {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) translate(35px, 25px) rotateY(-8deg) scale(0.92);
  opacity: 0.75;
  z-index: 2;
}
.phone-stack-card-1 {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.psc-notch {
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 30%; height: 12px;
  background: #0a0a0b;
  border-radius: 6px; z-index: 10;
}
.psc-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #0e0708, #050203);
  border-radius: 24px;
  padding: 38px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.psc-status {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--paper-mute);
  margin-bottom: 6px;
}
.psc-time { color: var(--paper); }
.psc-header {
  display: flex; align-items: center; justify-content: space-between;
}
.psc-title {
  width: 70px; height: 12px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  border-radius: 2px;
}
.psc-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.4);
}
.psc-hero {
  height: 110px;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 169, 97, 0.5) 0%, transparent 60%),
    linear-gradient(135deg, #2A1010 0%, #110707 100%);
  border-radius: 10px;
  margin: 8px 0;
}
.psc-hero-featured {
  box-shadow: inset 0 0 30px rgba(201, 169, 97, 0.15);
}
.psc-section-title {
  height: 6px; width: 50%;
  background: rgba(245, 242, 236, 0.4);
  border-radius: 1px;
}
.psc-list {
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.psc-list-item {
  display: flex; align-items: center; gap: 10px;
}
.psc-list-img {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #2A1010, #110707);
  border-radius: 6px;
  flex-shrink: 0;
}
.psc-list-text {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.psc-list-line1 {
  height: 6px; width: 80%;
  background: var(--paper);
  border-radius: 1px;
}
.psc-list-line2 {
  height: 4px; width: 50%;
  background: rgba(245, 242, 236, 0.4);
  border-radius: 1px;
}
.psc-row {
  height: 12px; width: 100%;
  background: rgba(245, 242, 236, 0.1);
  border-radius: 4px;
}
.psc-tabbar {
  display: flex; gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-top: auto;
}
.psc-tab {
  flex: 1; height: 8px;
  background: rgba(245, 242, 236, 0.15);
  border-radius: 3px;
}
.psc-tab.is-active {
  background: var(--gold);
}

.phone-stack-glow {
  position: absolute;
  bottom: -10%;
  left: -20%;
  width: 140%;
  height: 30%;
  background: radial-gradient(ellipse, rgba(201, 169, 97, 0.3) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
}

/* ==========================================================================
   APPS PAGE — Fan-Preview Phone (smaller for fan cards)
   ========================================================================== */
.fan-phone {
  position: relative;
  width: 120px;
  height: 220px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1a1a1c, #0a0a0b);
  border: 2px solid rgba(201, 169, 97, 0.35);
  border-radius: 20px;
  padding: 5px;
  box-shadow:
    0 20px 50px -10px rgba(0,0,0,0.7),
    0 0 40px -5px rgba(201, 169, 97, 0.25);
}
.fp-notch {
  position: absolute; top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 30%; height: 8px;
  background: #0a0a0b;
  border-radius: 4px; z-index: 10;
}
.fp-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #0e0708, #050203);
  border-radius: 14px;
  padding: 24px 8px 8px;
  display: flex; flex-direction: column; gap: 5px;
  overflow: hidden;
}
.fp-screen-dark {
  background: linear-gradient(180deg, #100806, #050203);
}
.fp-header {
  display: flex; align-items: center; justify-content: space-between;
}
.fp-title {
  width: 40px; height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  border-radius: 1px;
}
.fp-avatar {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.4);
}
.fp-hero {
  height: 60px;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 169, 97, 0.4), transparent 60%),
    linear-gradient(135deg, #2A1010, #110707);
  border-radius: 5px;
  margin: 4px 0;
}
.fp-hero-bordeaux {
  background:
    radial-gradient(circle at 30% 30%, rgba(155, 42, 40, 0.5), transparent 60%),
    linear-gradient(135deg, #2A0808, #110404);
}
.fp-row {
  height: 8px; width: 100%;
  background: rgba(245, 242, 236, 0.08);
  border-radius: 2px;
}
.fp-tabbar {
  height: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-visual-app-stack { min-height: 480px; }
  .phone-stack { width: 240px; height: 480px; }
  .phone-stack-card { width: 200px; height: 420px; }
}
@media (max-width: 768px) {
  .hero-visual-app-stack { min-height: 420px; }
  .phone-stack { width: 200px; height: 420px; }
  .phone-stack-card { width: 180px; height: 380px; }
  .phone-stack-card-3 { transform: translate(-50%, -50%) translate(45px, 30px) rotateY(-15deg) scale(0.85); }
  .phone-stack-card-2 { transform: translate(-50%, -50%) translate(22px, 16px) rotateY(-8deg) scale(0.92); }
}
