/* Animated use-case walkthrough pages */
body.uc-page {
  --uc: #3b82f6;
  --uc-2: #22d3ee;
  --uc-deep: #06101f;
  --uc-mid: #123056;
  --uc-ink: #0b1220;
  --uc-muted: #5c6b80;
  --uc-line: rgba(15, 23, 42, 0.08);
  --uc-bg: #f3f6fb;
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--uc-ink);
  background: var(--uc-bg);
  line-height: 1.55;
}
body.uc-page[data-accent="cyan"] { --uc: #06b6d4; --uc-2: #38bdf8; --uc-mid: #0c3a48; }
body.uc-page[data-accent="green"] { --uc: #10b981; --uc-2: #34d399; --uc-mid: #064e3b; }
body.uc-page[data-accent="purple"] { --uc: #8b5cf6; --uc-2: #c4b5fd; --uc-mid: #2e1065; }
body.uc-page[data-accent="orange"] { --uc: #f97316; --uc-2: #fdba74; --uc-mid: #431407; }
body.uc-page[data-accent="red"] { --uc: #ef4444; --uc-2: #fda4af; --uc-mid: #450a0a; }
body.uc-page[data-accent="gold"] { --uc: #c6a15b; --uc-2: #7dd3fc; --uc-mid: #12243f; }
body.uc-page[data-accent="teal"] { --uc: #2dd4bf; --uc-2: #67e8f9; --uc-deep: #042f2e; --uc-mid: #0f3d3a; }
body.uc-page[data-accent="sky"] { --uc: #38bdf8; --uc-2: #f5b942; --uc-mid: #10182c; }
body[data-theme="fintech"] { --uc: #c6a15b; }
body[data-theme="health"] { --uc: #2dd4bf; }
body[data-theme="aviation"] { --uc: #38bdf8; }

.uc-page * { box-sizing: border-box; }
.uc-page img { max-width: 100%; display: block; }
.uc-page a { color: inherit; text-decoration: none; }
.uc-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.uc-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; color: #fff;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.uc-nav.is-stuck {
  background: rgba(6, 12, 24, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}
.uc-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.03em; }
.uc-brand img { width: 34px; height: 34px; }
.uc-nav nav { display: flex; gap: 22px; align-items: center; font-size: 0.92rem; font-weight: 600; }
.uc-nav nav a { opacity: 0.84; }
.uc-nav nav a:hover { opacity: 1; }
.uc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 12px 18px; font-weight: 700; border: 1px solid transparent;
}
.uc-page a.uc-btn-solid { background: #fff; color: #07111f; opacity: 1; }
.uc-page a.uc-btn-accent { background: var(--uc); color: #07111f; }
.uc-page a.uc-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }

.uc-hero {
  position: relative; min-height: 100vh; color: #fff;
  padding: 128px 0 72px; overflow: hidden;
  background:
    radial-gradient(820px 420px at 85% -10%, color-mix(in srgb, var(--uc) 55%, transparent), transparent 62%),
    radial-gradient(640px 380px at -10% 90%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(165deg, var(--uc-deep), var(--uc-mid) 58%, #05070d);
}
.uc-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 40% 30%, #000 18%, transparent 74%);
  animation: uc-drift 28s linear infinite;
}
@keyframes uc-drift { to { background-position: 72px 72px, 72px 72px; } }
.uc-orb {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  right: 8%; top: 22%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--uc) 70%, transparent), transparent 68%);
  filter: blur(6px); animation: uc-float 8s ease-in-out infinite;
}
@keyframes uc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}
.uc-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 42px; align-items: center;
}
.uc-kicker {
  display: inline-flex; gap: 8px; align-items: center;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 0.72rem; font-weight: 700; color: var(--uc); margin-bottom: 16px;
}
.uc-hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560; font-size: clamp(2.6rem, 4.6vw, 4.3rem);
  line-height: 0.98; letter-spacing: -0.035em; margin: 0 0 16px;
}
.uc-hero h1 em { font-style: italic; color: var(--uc); }
.uc-lead { font-size: 1.08rem; color: rgba(255, 255, 255, 0.78); max-width: 36rem; margin: 0 0 18px; }
.uc-micro { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.uc-micro span {
  font-size: 0.8rem; font-weight: 700; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
}
.uc-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.uc-section { padding: 88px 0; scroll-margin-top: 76px; }
.uc-section h2 {
  font-family: Fraunces, Georgia, serif; font-weight: 560;
  font-size: clamp(2rem, 3.6vw, 3.1rem); letter-spacing: -0.03em;
  line-height: 1.05; margin: 0 0 12px;
}
.uc-section h2 em { font-style: italic; color: var(--uc); }
.uc-sub { color: var(--uc-muted); font-size: 1.05rem; max-width: 40rem; margin: 0 0 28px; }
.uc-center { text-align: center; }
.uc-center h2, .uc-center .uc-sub { margin-left: auto; margin-right: auto; }

.uc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.uc-card {
  background: #fff; border: 1px solid var(--uc-line); border-radius: 22px; padding: 26px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
}
.uc-card h3 { margin: 0 0 8px; letter-spacing: -0.02em; }
.uc-card p { margin: 0; color: var(--uc-muted); }
.uc-card.bad { background: #fff7f7; }
.uc-card.good { background: linear-gradient(180deg, #f8fffc, #fff); }

.uc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.uc-step {
  background: #fff; border: 1px solid var(--uc-line); border-radius: 18px;
  padding: 18px 16px; min-height: 168px; position: relative; overflow: hidden;
}
.uc-step::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 36%;
  background: var(--uc); animation: uc-bar 2.6s ease-in-out infinite;
}
.uc-step:nth-child(2)::after { animation-delay: 0.3s; }
.uc-step:nth-child(3)::after { animation-delay: 0.6s; }
.uc-step:nth-child(4)::after { animation-delay: 0.9s; }
@keyframes uc-bar { 50% { width: 100%; } }
.uc-step b {
  display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--uc); font-weight: 800;
}
.uc-step strong { display: block; margin: 10px 0 6px; }
.uc-step p { margin: 0; color: var(--uc-muted); font-size: 0.9rem; }

.uc-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.uc-point i { color: var(--uc); font-size: 1.15rem; }
.uc-point h3 { margin: 10px 0 6px; font-size: 1.05rem; }

.uc-metrics { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: center; }
.uc-metric-list { display: grid; gap: 14px; }
.uc-metric {
  display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center;
}
.uc-metric strong { font-size: 1.7rem; letter-spacing: -0.04em; color: var(--uc); }
.uc-metric span { color: var(--uc-muted); font-size: 0.92rem; }

.uc-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.uc-related a {
  display: block; background: #fff; border: 1px solid var(--uc-line); border-radius: 18px; padding: 18px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.uc-related a:hover { transform: translateY(-4px); border-color: var(--uc); }
.uc-related small { color: var(--uc); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem; }
.uc-related strong { display: block; margin-top: 6px; }

.uc-cta {
  margin: 0 0 72px; border-radius: 28px; padding: 42px 36px; color: #fff;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  background:
    radial-gradient(420px 160px at 90% 0%, color-mix(in srgb, var(--uc) 70%, transparent), transparent 60%),
    linear-gradient(135deg, var(--uc-mid), var(--uc-deep));
}
.uc-cta h2 { font-family: Fraunces, Georgia, serif; font-weight: 560; margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.uc-cta p { margin: 0; color: rgba(255, 255, 255, 0.75); }

.uc-marquee { overflow: hidden; background: #fff; border-bottom: 1px solid var(--uc-line); }
.uc-marquee-track {
  display: flex; gap: 28px; width: max-content; padding: 14px 0;
  animation: uc-marq 32s linear infinite; font-weight: 700; color: var(--uc-muted);
}
.uc-marquee b { color: var(--uc-ink); }
@keyframes uc-marq { to { transform: translateX(-50%); } }

/* Product screenshot */
.shot {
  border-radius: 22px; overflow: hidden; color: var(--uc-ink);
  background: #0b1220; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.shot-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; background: #0f172a; color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}
.shot-chrome i {
  width: 10px; height: 10px; border-radius: 50%; background: #334155; display: inline-block;
}
.shot-chrome i:nth-child(1) { background: #fb7185; }
.shot-chrome i:nth-child(2) { background: #fbbf24; }
.shot-chrome i:nth-child(3) { background: #34d399; }
.shot-chrome em { margin-left: 8px; font-style: normal; letter-spacing: 0.02em; }
.shot-live { margin-left: auto; color: #86efac; font-weight: 700; font-style: normal; }
.shot-live::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; margin-right: 6px; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: uc-ping 1.6s infinite;
}
@keyframes uc-ping {
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}
.shot-stage { position: relative; min-height: 390px; background: #eef3f8; }
.frame {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.frame.is-on { opacity: 1; pointer-events: auto; transform: none; position: relative; }
.shot-stage .frame { position: absolute; }
.shot-stage .frame.is-on { position: relative; }
.app { display: grid; grid-template-columns: 168px 1fr; min-height: 390px; }
.app.with-panel { grid-template-columns: 150px 1fr 210px; }
.side { background: #0f172a; color: #cbd5e1; padding: 16px 12px; }
.side-brand { font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: -0.03em; }
.side-item {
  font-size: 0.78rem; padding: 8px 10px; border-radius: 10px; margin-bottom: 4px; color: #94a3b8;
}
.side-item.on { background: color-mix(in srgb, var(--uc) 28%, #0f172a); color: #fff; }
.main { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.panel { background: #fff; border-left: 1px solid var(--uc-line); padding: 14px 12px; }
.panel h4 { margin: 0 0 8px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--uc); }
.panel p, .src { margin: 0 0 8px; font-size: 0.78rem; color: #475569; background: #f8fafc; border-radius: 10px; padding: 8px; }
.bubble {
  max-width: 92%; border-radius: 14px; padding: 10px 12px; font-size: 0.86rem; line-height: 1.45;
  background: #fff; border: 1px solid var(--uc-line); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}
.bubble.user { margin-left: auto; background: #0f172a; color: #fff; border-color: transparent; }
.bubble small { display: block; margin-top: 6px; color: #64748b; font-size: 0.72rem; }
.bubble.user small { color: #94a3b8; }
.cite {
  display: inline-flex; margin: 6px 6px 0 0; padding: 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--uc) 16%, white); color: #0f172a; font-size: 0.72rem; font-weight: 700;
}
.hl {
  background: color-mix(in srgb, var(--uc) 22%, white);
  border-radius: 4px; padding: 0 3px;
}
.doc {
  background: #fff; border-radius: 12px; padding: 14px; border: 1px solid var(--uc-line); font-size: 0.8rem; color: #334155;
}
.doc p { margin: 0 0 8px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 8px 4px 0; }
.bars b {
  flex: 1; border-radius: 8px 8px 2px 2px; background: color-mix(in srgb, var(--uc) 75%, #0f172a);
  transform-origin: bottom; animation: uc-grow 1s ease both;
}
@keyframes uc-grow { from { transform: scaleY(0.15); } }
.bars b:nth-child(2) { animation-delay: 0.08s; height: 62%; background: #94a3b8; }
.bars b:nth-child(3) { animation-delay: 0.16s; }
.wave { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.wave b {
  width: 4px; border-radius: 4px; background: var(--uc); display: block;
  animation: uc-eq 1s ease-in-out infinite;
}
.wave b:nth-child(odd) { animation-duration: 0.75s; }
@keyframes uc-eq { 0%, 100% { height: 8px; } 50% { height: 40px; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 0.75rem; font-weight: 700; padding: 6px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--uc-line);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #065f46; background: #d1fae5; border-radius: 999px; padding: 4px 8px;
}
.badge.wait { color: #92400e; background: #fef3c7; }
.frame.is-on .bubble, .frame.is-on .doc, .frame.is-on .src, .frame.is-on .chip {
  animation: uc-pop 0.55s ease both;
}
.frame.is-on .bubble:nth-child(2), .frame.is-on .src:nth-child(2) { animation-delay: 0.12s; }
.frame.is-on .bubble:nth-child(3) { animation-delay: 0.22s; }
@keyframes uc-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.shot-nav { display: grid; grid-template-columns: repeat(4, 1fr); background: #0b1220; }
.shot-nav button {
  appearance: none; border: 0; background: transparent; color: rgba(255, 255, 255, 0.62);
  text-align: left; padding: 12px 12px 14px; cursor: pointer; font: inherit; font-size: 0.78rem; font-weight: 650;
  position: relative;
}
.shot-nav button span {
  display: block; font-size: 0.66rem; letter-spacing: 0.12em; color: var(--uc); margin-bottom: 3px;
}
.shot-nav button.is-on { color: #fff; background: rgba(255, 255, 255, 0.04); }
.shot-nav button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--uc);
  transform: scaleX(0); transform-origin: left;
}
.shot.is-playing .shot-nav button.is-on::after { animation: uc-prog var(--shot-ms, 4.6s) linear; }
@keyframes uc-prog { to { transform: scaleX(1); } }
.shot-controls {
  display: flex; justify-content: flex-end; gap: 8px; padding: 8px 10px 10px; background: #0b1220;
}
.shot-controls button {
  appearance: none; border: 1px solid rgba(255, 255, 255, 0.16); background: transparent;
  color: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.75rem; font-weight: 700; cursor: pointer;
}

.uc-reveal { opacity: 0; transform: translateY(16px); animation: uc-rise 0.7s ease forwards; }
@keyframes uc-rise { to { opacity: 1; transform: none; } }

.uc-embed { padding: 20px 0 10px; }
.uc-embed .shot { box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12); }

@media (max-width: 980px) {
  .uc-nav nav a:not(.uc-btn) { display: none; }
  .uc-hero-grid, .uc-split, .uc-steps, .uc-points, .uc-metrics, .uc-related, .app, .app.with-panel {
    grid-template-columns: 1fr;
  }
  .side, .panel { display: none; }
  .shot-nav { grid-template-columns: 1fr 1fr; }
  .uc-cta { flex-direction: column; align-items: flex-start; }
  .shot-stage, .app { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .uc-grid, .uc-orb, .uc-marquee-track, .uc-step::after, .wave b, .shot-live::before, .bars b { animation: none; }
  .uc-reveal { opacity: 1; transform: none; }
  .frame.is-on .bubble, .frame.is-on .doc, .frame.is-on .src, .frame.is-on .chip { animation: none; }
}
