/**
 * Kurumsal demo — premium görsel katmanı (.ip-app--demo)
 */
.ip-app--demo {
  --ip-premium-glow: rgb(99 102 241 / 0.45);
  --ip-premium-surface: rgb(255 255 255 / 0.06);
  --ip-premium-border: rgb(255 255 255 / 0.12);
  --ip-premium-radius: 18px;
  --ip-shadow-elevated: 0 32px 80px -24px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.06);
}

.ip-app--demo::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 8%, rgb(59 130 246 / 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 15%, rgb(139 92 246 / 0.18), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 95%, rgb(30 64 175 / 0.15), transparent 55%);
}

.ip-app--demo .ip-top,
.ip-app--demo .ip-main {
  position: relative;
  z-index: 1;
}

/* —— Üst bar —— */
.ip-app--demo .ip-top {
  background: rgb(15 23 42 / 0.72);
  backdrop-filter: blur(16px) saturate(1.35);
  border-bottom: 1px solid var(--ip-premium-border);
  box-shadow: 0 8px 32px -12px rgb(0 0 0 / 0.4);
}

.ip-app--demo .ip-top h1 {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #f8fafc, #c7d2fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ip-app--demo .ip-top-brand--inc {
  color: #a5b4fc;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  background: rgb(99 102 241 / 0.2);
}

.ip-app--demo .ip-top-brand--sebs {
  color: #94a3b8;
}

.ip-app--demo .ip-progress-bar {
  background: rgb(255 255 255 / 0.1);
  height: 7px;
}

.ip-app--demo .ip-progress-bar i {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  box-shadow: 0 0 12px var(--ip-premium-glow);
}

/* —— Sinematik intro —— */
.ip-intro-cinema--premium {
  min-height: min(720px, calc(100vh - 7rem));
  border-radius: var(--ip-premium-radius);
  border: 1px solid var(--ip-premium-border);
  box-shadow: var(--ip-shadow-elevated);
}

.ip-intro-cinema__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.6;
}

.ip-intro-cinema--premium .ip-intro-cinema__bg {
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgb(99 102 241 / 0.5), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 50%, rgb(59 130 246 / 0.25), transparent),
    linear-gradient(165deg, #1e3a8a 0%, #0f172a 55%, #020617 100%);
}

.ip-intro-cinema--premium .ip-intro-cinema__bg::after {
  opacity: 0.35;
}

.ip-intro-cinema__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e0e7ff;
  background: linear-gradient(135deg, rgb(99 102 241 / 0.35), rgb(59 130 246 / 0.2));
  border: 1px solid rgb(165 180 252 / 0.35);
  box-shadow: 0 0 24px rgb(99 102 241 / 0.25);
}

.ip-intro-cinema--premium .ip-intro-cinema__content {
  max-width: 36rem;
  padding: 2rem 1.75rem 2.25rem;
  border-radius: calc(var(--ip-premium-radius) - 4px);
  background: rgb(15 23 42 / 0.45);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--ip-premium-border);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}

.ip-intro-cinema--premium h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.15rem);
  text-wrap: balance;
}

.ip-intro-cinema--premium .ip-brand-pill--inc {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  box-shadow: 0 4px 14px rgb(37 99 235 / 0.35);
}

.ip-intro-cinema--premium .ip-role-card {
  max-width: 100%;
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.14);
  box-shadow: 0 8px 24px -12px rgb(0 0 0 / 0.35);
}

.ip-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}

.ip-trust-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
  color: #e2e8f0;
  text-align: left;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.08);
  transition: border-color 0.2s, background 0.2s;
}

.ip-trust-grid li i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #93c5fd;
}

.ip-trust-grid li:hover {
  background: rgb(255 255 255 / 0.09);
  border-color: rgb(147 197 253 / 0.25);
}

.ip-intro-cinema--premium .ip-btn-cinema {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 50%, #8b5cf6 100%);
  box-shadow:
    0 16px 40px -12px rgb(59 130 246 / 0.65),
    inset 0 1px 0 rgb(255 255 255 / 0.2);
}

.ip-intro-cinema--premium .ip-intro-cinema__quote {
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: rgb(99 102 241 / 0.12);
  border-left: 3px solid #818cf8;
}

/* —— Sinematik sahne —— */
.ip-cinema--premium {
  border: 1px solid var(--ip-premium-border);
  box-shadow: var(--ip-shadow-elevated);
  border-radius: var(--ip-premium-radius);
  isolation: isolate;
}

.ip-cinema--premium::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgb(129 140 248 / 0.55),
    rgb(59 130 246 / 0.15) 40%,
    rgb(236 72 153 / 0.2)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.ip-cinema--premium .ip-cinema__visual {
  border-radius: var(--ip-premium-radius) 0 0 var(--ip-premium-radius);
}

.ip-cinema--premium .ip-cinema__play {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 0 var(--ip-premium-radius) var(--ip-premium-radius) 0;
  box-shadow: inset 1px 0 0 rgb(255 255 255 / 0.8);
}

.ip-cinema--premium .ip-cinema__play .ip-scene-stage {
  padding: 1.35rem 1.5rem 1.75rem;
}

/* Gün çizelgesi */
.ip-cinema--premium .ip-dayline {
  background: linear-gradient(180deg, #f1f5f9, #f8fafc);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.85rem 1.15rem 0.65rem;
}

.ip-cinema--premium .ip-dayline__fill {
  background: linear-gradient(90deg, #1d4ed8, #6366f1, #a855f7);
  box-shadow: 0 0 8px rgb(99 102 241 / 0.35);
}

.ip-cinema--premium .ip-dayline__node--active {
  transform: scale(1.05);
}

.ip-cinema--premium .ip-dayline__node--active em {
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
}

/* Diyalog & seçenekler */
.ip-cinema--premium .ip-narrative-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border-color: #c7d2fe;
  box-shadow: 0 4px 16px -8px rgb(99 102 241 / 0.2);
}

.ip-cinema--premium .ip-conversation .ip-dialogues {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px -12px rgb(15 23 42 / 0.08);
}

.ip-cinema--premium .ip-dialogue__bubble {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.ip-cinema--premium .ip-reply__bubble {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border-color: #bfdbfe;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}

.ip-cinema--premium .ip-reply:hover .ip-reply__bubble {
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  border-color: #60a5fa;
  box-shadow: 0 8px 28px -10px rgb(37 99 235 / 0.35);
}

.ip-cinema--premium .ip-replies__divider {
  color: #4338ca;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

/* Hero başlık */
.ip-cinema--premium .ip-hero__title {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  letter-spacing: -0.025em;
}

.ip-cinema--premium .ip-hero-chip {
  backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / 0.2);
}

.ip-cinema--premium .ip-hero__alert-band {
  box-shadow: 0 4px 20px -6px rgb(239 68 68 / 0.45);
}

/* An kaydı */
.ip-moment--show .ip-moment__card {
  border: 1px solid #e2e8f0;
  box-shadow:
    0 32px 80px -24px rgb(15 23 42 / 0.45),
    0 0 0 1px rgb(255 255 255 / 0.5);
}

.ip-moment__badge {
  background: linear-gradient(135deg, #eff6ff, #ede9fe);
  color: #4338ca;
}

/* Finale */
.ip-app--demo .ip-finale-wrap {
  border: 1px solid var(--ip-premium-border);
  background: linear-gradient(165deg, rgb(30 41 59 / 0.95), rgb(15 23 42 / 0.98));
  color: #e2e8f0;
  box-shadow: var(--ip-shadow-elevated);
}

.ip-app--demo .ip-finale-premium__brand {
  color: #a5b4fc;
}

.ip-app--demo .ip-finale-premium__titles h2 {
  color: #f8fafc;
}

.ip-app--demo .ip-finale-premium__sub,
.ip-app--demo .ip-finale-premium__note {
  color: #94a3b8;
}

.ip-app--demo .ip-finale-premium__note {
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.08);
}

.ip-app--demo .ip-finale-premium__score-ring::before {
  background: #0f172a;
}

.ip-app--demo .ip-finale-premium__score-val {
  color: #93c5fd;
}

/* Finale — okunabilir uyarı & skorlar */
.ip-app--demo .ip-fatal {
  background: rgb(127 29 29 / 0.35);
  border: 1px solid rgb(248 113 113 / 0.55);
}

.ip-app--demo .ip-fatal h3 {
  color: #fecaca;
}

.ip-app--demo .ip-fatal p {
  margin: 0 0 0.65rem;
  color: #fde68a;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ip-app--demo .ip-fatal ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ip-app--demo .ip-fatal__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.4rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  background: rgb(0 0 0 / 0.2);
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ip-app--demo .ip-fatal__item i {
  color: #f87171;
  margin-top: 0.15rem;
}

.ip-app--demo .ip-fatal-ok {
  color: #6ee7b7;
}

.ip-app--demo .ip-comp span {
  color: #cbd5e1;
}

.ip-app--demo .ip-comp strong {
  color: #f8fafc;
}

.ip-app--demo .ip-comp__track {
  background: rgb(255 255 255 / 0.12);
}

/* Günün izleri — seçim şeridi */
.ip-reaction-rail {
  padding: 0.65rem 1rem 0.5rem;
  background: linear-gradient(180deg, #eef2ff, #f8fafc);
  border-bottom: 1px solid #e2e8f0;
}

.ip-reaction-rail__head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4338ca;
}

.ip-reaction-rail__track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 4.5rem;
  overflow-y: auto;
}

.ip-reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.25;
  animation: ip-chip-in 0.35s ease-out;
}

@keyframes ip-chip-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ip-reaction-chip--ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.ip-reaction-chip--warn {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.ip-reaction-chip--danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.ip-reaction-chip--info {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #a5b4fc;
}

/* An kartı — etkileşim */
.ip-moment__story {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
}

.ip-moment__reactions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

/* Finale zaman çizgisi */
.ip-finale-timeline {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
}

.ip-finale-timeline h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.ip-finale-timeline h3 i {
  margin-right: 0.35rem;
}

.ip-finale-timeline__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ip-finale-timeline__item {
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  background: rgb(0 0 0 / 0.2);
  border-left: 3px solid #64748b;
}

.ip-finale-timeline__item--ok {
  border-left-color: #34d399;
}
.ip-finale-timeline__item--warn {
  border-left-color: #fbbf24;
}
.ip-finale-timeline__item--danger {
  border-left-color: #f87171;
}
.ip-finale-timeline__item--info {
  border-left-color: #818cf8;
}

.ip-finale-timeline__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f1f5f9;
}

.ip-finale-timeline__item p {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
}

/* Canlı rapor dock */
.ip-app--demo .ip-fr-dock__toggle {
  background: linear-gradient(135deg, #1e293b 0%, #312e81 50%, #4338ca 100%);
  box-shadow:
    0 16px 40px -12px rgb(49 46 129 / 0.65),
    inset 0 1px 0 rgb(255 255 255 / 0.12);
}

.ip-app--demo .ip-fr-dock__panel {
  border-color: rgb(255 255 255 / 0.12);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.5);
}

@media (max-width: 720px) {
  .ip-trust-grid {
    grid-template-columns: 1fr;
  }

  .ip-intro-cinema--premium .ip-intro-cinema__content {
    padding: 1.5rem 1.15rem;
  }

  .ip-cinema--premium::before {
    display: none;
  }
}

/* Telefon mockup */
.ip-app--demo .ip-device__shell {
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.1),
    0 28px 60px -16px rgb(0 0 0 / 0.65),
    inset 0 1px 0 rgb(255 255 255 / 0.15);
}

.ip-app--demo .ip-companion-phone {
  filter: drop-shadow(0 12px 28px rgb(0 0 0 / 0.45));
}

.ip-atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Sahne aksiyon butonu */
.ip-app--demo .ip-scene-action__btn {
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #1e40af, #4338ca);
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 12px 32px -10px rgb(37 99 235 / 0.45);
}

.ip-app--demo .ip-scene-action__btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: no-preference) {
  .ip-intro-cinema--premium .ip-intro-cinema__mesh {
    animation: ip-premium-mesh 24s linear infinite;
  }

  @keyframes ip-premium-mesh {
    from {
      background-position: 0 0;
    }
    to {
      background-position: 48px 48px;
    }
  }
}
