/* ============================================================
   FOUNDER COCKPIT — Plattform-Sektion + 3D-Portal-Übergang
   Reuses the global tokens from premium.css (--bg-dark, --gold,
   --text-h, --font-serif …). Two namespaces:
     .fcp-*  → the marketing "Platform" section + dashboard mockup
     .fcx-*  → the cinematic 3D portal that flips into the workspace
   ============================================================ */

/* ---------- Section shell ---------- */
.fcp {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(233, 203, 161, 0.10) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(12, 18, 51, 0.05) 0%, transparent 60%),
    var(--bg-dark);
  color: var(--text-on-dark);
  padding: clamp(72px, 9vw, 128px) 0;
}
.fcp::before {
  /* whisper grain, kills banding on the deep navy */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fcp__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 980px) {
  .fcp__inner { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
}
/* Let both columns shrink below their content's intrinsic min-width so the
   dashboard mockup can never force horizontal overflow (which would clip the
   copy on narrow screens). */
.fcp__copy, .fcp__stage { min-width: 0; }

/* ---------- Copy column ---------- */
.fcp__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.fcp__label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.fcp__h2 {
  margin-top: 20px;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
}
.fcp__h2 em { font-style: italic; font-weight: 400; color: var(--gold-bright); }
.fcp__lead {
  margin-top: 18px;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.65;
}

/* feature list */
.fcp__features {
  margin-top: 30px;
  display: grid;
  gap: 16px;
}
.fcp__feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.fcp__feat-ic {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(233, 203, 161, 0.12);
  border: 1px solid rgba(233, 203, 161, 0.22);
  color: var(--gold-bright);
}
.fcp__feat-ic svg { width: 18px; height: 18px; }
.fcp__feat-t { font-weight: 600; color: #fff; font-family: var(--font-sans); font-size: 0.98rem; }
.fcp__feat-d { margin-top: 2px; color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; line-height: 1.5; }

/* CTA row */
.fcp__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.fcp__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
  color: #0C1233;
  box-shadow: 0 10px 30px -8px rgba(233, 203, 161, 0.5);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
  position: relative;
  overflow: hidden;
}
.fcp__btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(233, 203, 161, 0.6); }
.fcp__btn svg { width: 18px; height: 18px; transition: transform var(--t-mid) var(--ease); }
.fcp__btn:hover svg { transform: translateX(3px); }
.fcp__btn::after {
  content: "";
  position: absolute; inset: 0;
  transform: translateX(-130%) skewX(-16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}
.fcp__btn:hover::after { animation: fcp-sheen 0.9s var(--ease) forwards; }
@keyframes fcp-sheen { to { transform: translateX(130%) skewX(-16deg); } }
.fcp__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-bottom: 2px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.fcp__link:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ---------- Dashboard mockup (browser frame) ---------- */
.fcp__stage { position: relative; }
.fcp__glow {
  position: absolute;
  inset: -6% -4% -10% -4%;
  background: radial-gradient(60% 60% at 70% 20%, rgba(233, 203, 161, 0.28), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.fcp-mock {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1030;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
  transform-origin: center;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
.fcp__stage:hover .fcp-mock { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.fcp-mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #11183c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.fcp-mock__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.fcp-mock__url {
  margin-left: 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 999px;
}
.fcp-mock__app { display: grid; grid-template-columns: 116px 1fr; min-height: 300px; }
.fcp-mock__side {
  background: #0c1234;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fcp-mock__brand {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-serif);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  color: #fff; margin-bottom: 10px; padding: 2px 4px;
}
.fcp-mock__brand i {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--gold); display: inline-block; flex: none;
}
.fcp-mock__nav {
  font-family: var(--font-sans);
  font-size: 0.66rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  padding: 7px 9px; border-radius: 8px;
  display: flex; align-items: center; gap: 7px;
}
.fcp-mock__nav::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); flex: none; }
.fcp-mock__nav--on {
  color: var(--gold-bright);
  background: rgba(233, 203, 161, 0.10);
  box-shadow: inset 2px 0 0 var(--gold);
  font-weight: 600;
}
.fcp-mock__nav--on::before { background: var(--gold); }
.fcp-mock__main { padding: 16px; background: #0a1030; display: flex; flex-direction: column; gap: 12px; }
.fcp-mock__eyebrow { font-family: var(--font-sans); font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.fcp-mock__title { font-family: var(--font-serif); font-size: 1.05rem; color: #fff; margin-top: 2px; }
.fcp-mock__title b { color: var(--gold-bright); font-weight: 600; }
.fcp-mock__goal {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; border-radius: 11px;
  background: linear-gradient(90deg, rgba(233, 203, 161, 0.14), rgba(233, 203, 161, 0.02));
  border: 1px solid rgba(233, 203, 161, 0.2);
}
.fcp-mock__goal-l { font-family: var(--font-sans); font-size: 0.62rem; color: rgba(255,255,255,0.7); }
.fcp-mock__goal-l b { display: block; color: #fff; font-size: 0.92rem; font-weight: 700; margin-top: 1px; }
.fcp-mock__ring {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--gold-bright) 0 68%, rgba(255,255,255,0.12) 68% 100%);
  display: grid; place-items: center;
  font-family: var(--font-sans); font-size: 0.52rem; font-weight: 700; color: #fff;
}
.fcp-mock__ring span { background: #0a1030; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.fcp-mock__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fcp-mock__kpi {
  background: #11183c; border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px; padding: 9px 10px;
}
.fcp-mock__kpi small { font-family: var(--font-sans); font-size: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.fcp-mock__kpi b { display: block; font-family: var(--font-sans); font-size: 0.82rem; font-weight: 700; color: #fff; margin-top: 3px; }
.fcp-mock__kpi i { font-style: normal; font-size: 0.52rem; font-weight: 600; }
.fcp-mock__kpi i.up { color: #7FCB94; }
.fcp-mock__kpi i.dn { color: #C9A0E0; }
.fcp-mock__chart {
  background: #11183c; border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px; padding: 11px 12px 4px;
}
.fcp-mock__chart-h { display: flex; justify-content: space-between; align-items: baseline; }
.fcp-mock__chart-h span { font-family: var(--font-sans); font-size: 0.62rem; color: #fff; font-weight: 600; }
.fcp-mock__chart-h i { font-style: normal; font-size: 0.55rem; color: #7FCB94; font-weight: 600; }
.fcp-mock__chart svg { display: block; width: 100%; height: 72px; margin-top: 6px; }

.fcp-mock__app, .fcp-mock__main, .fcp-mock__kpi, .fcp-mock__chart { min-width: 0; }
@media (max-width: 560px) {
  .fcp-mock { transform: none; }
  .fcp-mock__app { grid-template-columns: 64px 1fr; }
  .fcp-mock__nav { font-size: 0; gap: 0; padding: 8px; }
  .fcp-mock__nav::before { width: 14px; height: 14px; }
  .fcp-mock__brand { font-size: 0; gap: 0; }
  /* two KPI columns so the figures keep room to breathe on phones */
  .fcp-mock__kpis { grid-template-columns: repeat(2, 1fr); }
  .fcp-mock__url { font-size: 0.62rem; }
}

/* ============================================================
   .fcx — the 3D portal transition
   The current page is moved into the front face; the flipper
   zooms back into the dark and rotates onto the workspace face.
   ============================================================ */
html.fcx-lock, body.fcx-lock { overflow: hidden !important; }
.fcx-stage {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  perspective: 2400px;
  perspective-origin: 50% 42%;
  background: radial-gradient(80% 80% at 50% 30%, #0e1640 0%, #05071a 70%, #03040f 100%);
}
.fcx-flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(0) rotateY(0deg);
  transition: transform 1.6s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.fcx-stage--go .fcx-flip { transform: translateZ(-1500px) rotateY(-180deg); }
.fcx-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.75);
}
/* the live page sits on the front face */
.fcx-face--front { background: var(--bg-page); }
.fcx-page-inner { position: absolute; inset: 0; width: 100vw; }
/* the workspace reveal sits on the back face */
.fcx-face--back {
  transform: rotateY(180deg);
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(233, 203, 161, 0.16), transparent 55%),
    var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 6vw;
  color: #fff;
}
.fcx-back__frame {
  width: min(760px, 86vw);
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6));
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: opacity 0.6s ease 0.7s, transform 0.8s var(--ease) 0.7s;
}
.fcx-stage--go .fcx-back__frame { opacity: 1; transform: translateY(0) scale(1); }
/* the cloned mockup must lie flat on the back face (kill its 3D tilt) */
.fcx-back__frame .fcp-mock { transform: none; }
.fcx-back__status {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-sans); font-size: 0.95rem; letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transition: opacity 0.5s ease 0.95s;
}
.fcx-stage--go .fcx-back__status { opacity: 1; }
.fcx-spin {
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  border: 2px solid rgba(233, 203, 161, 0.25);
  border-top-color: var(--gold-bright);
  animation: fcx-spin 0.7s linear infinite;
}
@keyframes fcx-spin { to { transform: rotate(360deg); } }

/* graceful: no 3D for reduced motion — just a quick fade veil */
@media (prefers-reduced-motion: reduce) {
  .fcx-flip { transition: none; }
  .fcx-stage--go .fcx-flip { transform: none; }
  .fcx-face--front { display: none; }
}
