:root {
  --ink: #0f1117;
  --surface: rgba(26, 29, 38, 0.82);
  --surface-strong: rgba(30, 34, 45, 0.94);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --ok: #34d399;
  --glow: rgba(99, 102, 241, 0.45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: radial-gradient(ellipse 70% 50% at 0% 0%, rgba(99, 102, 241, 0.18), transparent 55%), radial-gradient(ellipse 60% 45% at 100% 100%, rgba(139, 92, 246, 0.14), transparent 50%), var(--ink);
  overflow-x: hidden;
}

.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 10% 0%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(139, 92, 246, 0.18), transparent 52%),
    radial-gradient(ellipse 50% 40% at 50% 40%, rgba(14, 165, 233, 0.08), transparent 60%),
    var(--ink);
  animation: mesh-shift 18s ease-in-out infinite alternate;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.orb--1 {
  width: 340px;
  height: 340px;
  top: -80px;
  right: 8%;
  background: rgba(99, 102, 241, 0.35);
  animation: float-1 14s ease-in-out infinite;
}

.orb--2 {
  width: 280px;
  height: 280px;
  bottom: -60px;
  left: 6%;
  background: rgba(168, 85, 247, 0.28);
  animation: float-2 16s ease-in-out infinite;
}

.orb--3 {
  width: 180px;
  height: 180px;
  top: 42%;
  left: 55%;
  background: rgba(56, 189, 248, 0.18);
  animation: float-3 12s ease-in-out infinite;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.shell {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(99, 102, 241, 0.12);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero {
  position: relative;
  padding: 2.5rem 2rem;
  background:
    linear-gradient(155deg, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.1) 45%, transparent 100%),
    rgba(15, 17, 23, 0.35);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 68%);
  pointer-events: none;
}

.logo-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 1.5rem;
  animation: logo-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.logo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  animation: ring-pulse 3.2s ease-in-out infinite;
}

.logo-ring--2 {
  inset: -18px;
  border-color: rgba(139, 92, 246, 0.2);
  animation-delay: 0.8s;
}

.app-icon {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow:
    0 16px 40px rgba(99, 102, 241, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  animation: icon-float 5s ease-in-out infinite;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.28);
  animation: fade-up 0.8s ease 0.25s both;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: pulse-dot 2.2s ease infinite;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 55%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fade-up 0.8s ease 0.35s both;
}

.hero .lead {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  animation: fade-up 0.8s ease 0.45s both;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.features li {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: fade-up 0.7s ease both;
}

.features li:nth-child(1) { animation-delay: 0.55s; }
.features li:nth-child(2) { animation-delay: 0.62s; }
.features li:nth-child(3) { animation-delay: 0.69s; }
.features li:nth-child(4) { animation-delay: 0.76s; }

.panel {
  padding: 2.25rem 2rem;
  background: var(--surface-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fade-up 0.85s ease 0.4s both;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 14px;
  padding: 0.78rem 1.15rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.45);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.meta {
  display: grid;
  gap: 0;
  margin: 0;
}

.meta-row {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.meta-row:first-child {
  border-top: none;
  padding-top: 0;
}

.meta dt {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.meta dd {
  margin: 0;
  font-family: Consolas, "SF Mono", "Courier New", monospace;
  font-size: 0.86rem;
  word-break: break-all;
  color: #e2e8f0;
}

.footer-note {
  margin-top: 1.35rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.footer-note code {
  font-size: 0.76rem;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logo-in {
  from { opacity: 0; transform: scale(0.82) rotate(-6deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-24px, 18px); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -16px); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-14px, 12px); }
}

@keyframes mesh-shift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(12deg); }
}

.bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 17, 23, 0.35) 0%, rgba(15, 17, 23, 0.72) 100%),
    rgba(15, 17, 23, 0.28);
  z-index: 2;
}

.bg-slide {
  position: absolute;
  inset: 0;
  
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  z-index: 1;
}

.bg-slide.is-active {
  opacity: 1;
}

body.has-screenshots .mesh,
body.has-screenshots .orb {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .hero {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2rem 1.5rem;
  }

  .panel {
    padding: 1.75rem 1.5rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
