:root {
  --bg: #07111f;
  --bg-deep: #050b15;
  --panel: rgba(12, 20, 35, 0.92);
  --panel-2: rgba(15, 25, 43, 0.98);
  --panel-3: rgba(20, 32, 56, 0.92);
  --line: rgba(154, 168, 194, 0.16);
  --line-strong: rgba(154, 168, 194, 0.24);
  --text: #f5f8ff;
  --muted: #9aa8c2;
  --accent: #3b9eff;
  --accent-2: #b48cff;
  --mint: #7cf0c4;
  --warm: #ffb86b;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(59, 158, 255, 0.16), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  padding: 0 24px 72px;
}

a,
button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0 10px;
}

.brand-mark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  transition: 160ms ease;
}

.topbar-link:hover {
  border-color: rgba(59, 158, 255, 0.44);
  background: rgba(59, 158, 255, 0.12);
}

.hero {
  display: block;
  padding-top: clamp(84px, 12vh, 132px);
  padding-bottom: clamp(28px, 5vh, 54px);
}

.hero-copy,
.hero-panel,
.about-panel,
.concept-card,
.card,
.sheet,
.prompt-box {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.about-panel,
.sheet {
  border-radius: var(--radius-lg);
}

.hero-copy {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: 1180px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
}

.eyebrow.warm {
  color: var(--warm);
}

.hero-copy h1 {
  margin: 12px 0 0;
  max-width: 900px;
  font-size: clamp(44px, 5.7vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-title-line {
  display: block;
}

.hero-animated-text {
  position: relative;
  display: block;
  width: fit-content;
  padding-bottom: 0.08em;
  color: var(--accent);
}

.hero-text-sizer {
  visibility: hidden;
  white-space: nowrap;
}

.hero-text-layer {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  white-space: nowrap;
}

.hero-text-stagger {
  display: flex;
  gap: 0.18em;
  animation: heroLayerStagger 12s linear infinite;
}

.hero-text-stagger span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.34em);
  animation: heroStaggerWord 12s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
  animation-delay: var(--delay);
}

.hero-type-text {
  display: inline-block;
  width: 0;
  max-width: 15ch;
  overflow: hidden;
  vertical-align: bottom;
  animation: heroTypewriter 12s steps(16, end) infinite;
}

.hero-type-caret {
  display: inline-block;
  width: 0.06em;
  height: 0.82em;
  margin-left: 0.07em;
  background: var(--mint);
  vertical-align: -0.04em;
  animation: heroCaret 900ms steps(1) infinite;
}

.hero-text-type {
  color: var(--mint);
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  letter-spacing: -0.075em;
  animation: heroLayerType 12s linear infinite;
}

.hero-text-shimmer {
  background: linear-gradient(100deg, var(--accent), var(--mint), var(--accent-2), var(--accent));
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--accent);
  -webkit-text-fill-color: transparent;
  animation: heroLayerShimmer 12s linear infinite, heroTextSweep 4.8s linear infinite;
}

.hero-text-punch {
  transform-origin: 50% 70%;
  animation: heroLayerPunch 12s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
}

@supports not (-webkit-background-clip: text) {
  .hero-text-shimmer {
    color: var(--accent);
    -webkit-text-fill-color: currentColor;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text-layer {
    animation: none;
  }
  .hero-text-shimmer {
    opacity: 1;
  }
}

@keyframes heroLayerStagger {
  0%, 24% { opacity: 1; }
  27%, 100% { opacity: 0; }
}

@keyframes heroStaggerWord {
  0%, 2% { opacity: 0; transform: translateY(0.34em); }
  7%, 22% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(0); }
}

@keyframes heroLayerType {
  0%, 25%, 50%, 100% { opacity: 0; }
  28%, 47% { opacity: 1; }
}

@keyframes heroTypewriter {
  0%, 25% { width: 0; }
  32%, 45% { width: 15ch; }
  50%, 100% { width: 0; }
}

@keyframes heroCaret {
  50% { opacity: 0; }
}

@keyframes heroLayerShimmer {
  0%, 50%, 75%, 100% { opacity: 0; }
  53%, 72% { opacity: 1; }
}

@keyframes heroLayerPunch {
  0%, 75%, 100% { opacity: 0; transform: scale(0.72) rotate(-3deg); }
  78% { opacity: 1; transform: scale(1.1) rotate(0); }
  82%, 96% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes heroTextSweep {
  from { background-position: 220% 0; }
  to { background-position: -60% 0; }
}

.section-head h2,
.sheet-head h2 {
  margin: 14px 0 0;
  letter-spacing: -0.05em;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
}

.sheet-head h2 {
  font-size: 30px;
}

.hero-sub,
.about-panel p,
.concept-card p,
.section-note,
.note-text,
.hero-note {
  color: var(--muted);
  line-height: 1.7;
}

.hero-sub {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.55;
  color: #96a1b7;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 800;
}

.hero-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 34px;
  margin-top: 38px;
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 18px);
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
}

.hero-steps b {
  color: var(--accent);
  margin-right: 14px;
}

.hero-panel {
  padding: 30px 28px;
}

.hero-panel-kicker {
  color: var(--warm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workflow-list {
  margin: 18px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  color: var(--text);
}

.hero-note {
  margin-top: 18px;
  font-size: 14px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  transition: 160ms ease;
}

.pill:hover,
.pill.active {
  color: var(--text);
  border-color: rgba(59, 158, 255, 0.44);
  background: rgba(59, 158, 255, 0.12);
}

.count {
  opacity: 0.65;
  margin-left: 6px;
}

.search {
  margin-left: auto;
  min-width: min(100%, 180px);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 10px 14px;
  outline: none;
}

.search::placeholder {
  color: var(--muted);
}

.search:focus {
  border-color: rgba(59, 158, 255, 0.55);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  padding-top: 18px;
}

.card {
  border-radius: 18px;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 158, 255, 0.45);
}

.card-stage {
  position: relative;
  height: 190px;
}

.card-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border: 1px solid rgba(154, 168, 194, 0.16);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1;
  color: rgba(245, 248, 255, 0.78);
  background: rgba(6, 10, 18, 0.78);
  backdrop-filter: blur(8px);
}

.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(59, 158, 255, 0.14), transparent 30%),
    linear-gradient(145deg, #091221, #060b14);
}

.stage-large {
  aspect-ratio: 16 / 8;
}

.frames-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(6, 10, 18, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
}

.card-body {
  padding: 15px 16px 17px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-title-row h3,
.concept-card h3,
.sheet-section h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.card-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.chev {
  color: var(--muted);
}

.tag-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag,
.sheet-facts span,
.concept-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 52px 12px;
}

.concepts,
.footer {
  padding-top: 42px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head.tight {
  align-items: center;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.concept-card {
  border-radius: 18px;
  padding: 20px;
}

.concept-tag {
  display: inline-block;
  color: var(--warm);
  border-color: rgba(255, 184, 107, 0.28);
  margin-bottom: 14px;
}

.about-panel {
  padding: 28px 30px;
}

.about-panel.inline {
  margin-top: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.about-panel p {
  margin: 0 0 16px;
}

.about-panel a {
  color: var(--text);
  font-weight: 700;
  text-decoration-color: rgba(59, 158, 255, 0.5);
  text-underline-offset: 3px;
}

.about-sheet {
  width: min(720px, 100%);
}

.about-sheet h2,
.guide-sheet h2,
.potential-sheet h2 {
  margin: 12px 44px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.guide-sheet {
  width: min(1080px, 100%);
}

.potential-sheet {
  width: min(980px, 100%);
}

.guide-intro,
.potential-intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  margin-top: 26px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guide-card,
.guide-prompt-panel,
.potential-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 18px;
}

.guide-card,
.potential-card {
  padding: 18px;
}

.guide-card span,
.potential-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  border: 1px solid rgba(255, 184, 107, 0.32);
  border-radius: 999px;
  color: var(--warm);
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
}

.potential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.guide-card h3,
.guide-prompt-panel h3,
.potential-card h3 {
  margin: 14px 0 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.guide-card p,
.potential-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.guide-card code {
  color: var(--mint);
}

.guide-prompt-panel {
  padding: 18px;
  align-self: start;
}

.guide-panel-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.guide-prompt-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 11, 21, 0.38);
  overflow: hidden;
}

.guide-prompt-card summary {
  display: grid;
  grid-template-columns: 1fr 22px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.guide-prompt-card summary::-webkit-details-marker {
  display: none;
}

.guide-prompt-card summary::after {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg fill='%239aa8c2' version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30.727 30.727'%3E%3Cpath d='M29.994,10.183L15.363,24.812L0.733,10.184c-0.977-0.978-0.977-2.561,0-3.536c0.977-0.977,2.559-0.976,3.536,0l11.095,11.093L26.461,6.647c0.977-0.976,2.559-0.976,3.535,0C30.971,7.624,30.971,9.206,29.994,10.183z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 10px 10px;
  transition: 160ms ease;
}

.guide-prompt-card[open] summary {
  border-bottom: 1px solid var(--line);
}

.guide-prompt-card[open] summary::after {
  color: var(--text);
  border-color: rgba(59, 158, 255, 0.44);
  transform: rotate(180deg);
}

.guide-prompt-card summary span {
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}

.guide-prompt-card pre {
  max-height: 190px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  color: var(--muted);
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.guide-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 0 12px 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(59, 158, 255, 0.1);
  color: var(--text);
  font-size: 12px;
  transition: 160ms ease;
}

.guide-copy:hover {
  border-color: rgba(59, 158, 255, 0.44);
  background: rgba(59, 158, 255, 0.16);
}

.guide-copy.copied {
  background: rgba(42, 168, 118, 0.22);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-bottom: 8px;
}

.footer h2 {
  margin: 10px 0 0;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.045em;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-grid a,
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: 160ms ease;
}

.footer-grid a:hover,
.footer-link:hover {
  color: var(--text);
  border-color: rgba(255, 184, 107, 0.36);
  background: rgba(255, 184, 107, 0.1);
}

.placeholder-sheet {
  width: min(640px, 100%);
}

.placeholder-sheet h2 {
  margin: 12px 44px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.placeholder-sheet p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 5vh 18px;
  overflow-y: auto;
  z-index: 30;
}

.sheet {
  position: relative;
  width: min(960px, 100%);
  padding: 30px 32px 34px;
  background:
    linear-gradient(180deg, rgba(16, 27, 47, 0.98), rgba(9, 16, 29, 0.98));
}

.close-btn,
.copy-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  background: var(--panel-2);
  color: var(--muted);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding-right: 44px;
}

.sheet-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sheet-stage {
  margin-top: 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.sheet-section {
  margin-top: 24px;
}

.prompt-box {
  position: relative;
  border-radius: 18px;
  padding: 22px 24px;
  background:
    linear-gradient(180deg, rgba(245, 248, 255, 0.055), rgba(245, 248, 255, 0.025)),
    rgba(3, 8, 16, 0.54);
  border: 1px solid rgba(154, 168, 194, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 48px rgba(0, 0, 0, 0.22);
}

.prompt-text {
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.82;
  white-space: pre-wrap;
  color: #eef4ff;
}

.copy-btn {
  background: rgba(59, 158, 255, 0.14);
  color: var(--text);
  padding: 9px 14px;
  font-size: 13px;
}

.copy-btn.copied {
  background: rgba(42, 168, 118, 0.22);
}

.section-note {
  margin: 10px 0 0;
  font-size: 13px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.notes,
.dials,
.control-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.notes li,
.dials li,
.control-list li {
  background: rgba(245, 248, 255, 0.04);
  border: 1px solid rgba(154, 168, 194, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}

.note-phrase {
  display: block;
  color: var(--warm);
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 12px;
  margin-bottom: 6px;
}

.control-list li {
  color: var(--text);
}

.top-gap {
  margin-top: 54px;
}

.control-list + .top-gap {
  padding-top: 18px;
}

.dials code {
  color: var(--accent);
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 12px;
}

.dial-arrow {
  color: var(--muted);
  margin: 0 8px;
}

.hl {
  display: inline;
  background: rgba(255, 184, 107, 0.24);
  border: 1px solid rgba(255, 184, 107, 0.36);
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: #fff6e8;
  padding: 0.04em 0.24em 0.08em;
}

.hl-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25em;
  height: 1.25em;
  margin-left: 0.18em;
  border-radius: 999px;
  background: var(--warm);
  color: #07111f;
  font-size: 0.58em;
  font-weight: 800;
  vertical-align: super;
}

/* previews */
.pv-row {
  display: flex;
  gap: 0.45em;
  flex-wrap: wrap;
  justify-content: center;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 800;
}

.pv-stag {
  opacity: 0;
  animation: pvRise 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

@keyframes pvRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.pv-type-shell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.pv-type-text {
  color: var(--mint);
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: clamp(15px, 2vw, 22px);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: pvType 3.2s steps(19, end) infinite;
}

.pv-caret {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 3px;
  background: var(--mint);
  animation: pvBlink 1.1s steps(1) infinite;
}

@keyframes pvBlink { 50% { opacity: 0; } }

@keyframes pvType {
  0%, 12% { width: 0; }
  62%, 78% { width: 19ch; }
  100% { width: 0; }
}

.pv-shimmer {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  background: linear-gradient(100deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pvSweep 7s linear infinite;
}

@keyframes pvSweep {
  from { background-position: 220% 0; }
  to { background-position: -60% 0; }
}

.pv-punch {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  opacity: 0;
  transform: scale(0) rotate(-8deg);
  animation: pvPunch 2.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s forwards;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

@keyframes pvPunch {
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.pv-under,
.pv-wipe-content,
.pv-zoom-a,
.pv-zoom-b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-under-text,
.pv-wipe-text,
.pv-zoom-a,
.pv-zoom-b,
.pv-fallback {
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pv-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: #151a23;
}

.pv-panel-l { left: 0; animation: pvExitL 2.4s cubic-bezier(0.65, 0, 0.35, 1) 0.7s forwards; animation-iteration-count: infinite; animation-fill-mode: both; }
.pv-panel-r { right: 0; animation: pvExitR 2.4s cubic-bezier(0.65, 0, 0.35, 1) 0.7s forwards; animation-iteration-count: infinite; animation-fill-mode: both; }

@keyframes pvExitL { to { transform: translateX(-102%); } }
@keyframes pvExitR { to { transform: translateX(102%); } }

.pv-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 0.5px);
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.pv-wipe-content {
  clip-path: inset(0 100% 0 0);
  animation: pvWipe 2.6s cubic-bezier(0.33, 1, 0.68, 1) 0.55s forwards;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

@keyframes pvWipe { to { clip-path: inset(0 0 0 0); } }

.pv-wipe-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(59, 158, 255, 0.9);
  animation: pvBar 2.6s cubic-bezier(0.33, 1, 0.68, 1) 0.55s forwards;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

@keyframes pvBar { to { left: calc(100% - 4px); } }

.pv-zoom-b {
  color: var(--accent);
  opacity: 0;
  transform: scale(1.32);
  filter: blur(10px);
  animation: pvZoomB 3s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

@keyframes pvZoomB {
  0% { opacity: 0; transform: scale(1.32); filter: blur(10px); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.pv-bars {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 23%;
  top: 16%;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 18px;
}

.pv-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 8px;
  height: 100%;
}

.pv-bar-wrap {
  position: relative;
  display: flex;
  align-items: end;
  height: 100%;
}

.pv-bar-value {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  bottom: calc(var(--h) + 14px);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  z-index: 2;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.88);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  opacity: 0;
  animation: pvValueIn 4.6s cubic-bezier(0.25, 1, 0.5, 1) var(--delay) infinite both;
}

.pv-bar {
  width: clamp(18px, 2.5vw, 28px);
  height: var(--h);
  background: var(--accent);
  border-radius: 6px 6px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: pvGrow 4.6s cubic-bezier(0.25, 1, 0.5, 1) var(--delay) infinite both;
}

@keyframes pvGrow {
  0%, 12% { transform: scaleY(0); }
  54%, 86% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

@keyframes pvValueIn {
  0%, 52% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  60%, 86% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(4px); }
}

.pv-bar-label {
  font-size: 11px;
  color: var(--muted);
}

.pv-baseline {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 19%;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.pv-counter {
  text-align: center;
}

.pv-counter-num {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pv-counter-num.is-counting {
  animation: pvCountIn 0.7s ease both;
}

@keyframes pvCountIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pv-counter-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
}

.pv-line-svg {
  position: absolute;
  inset: 10% 8%;
  width: 84%;
  height: 80%;
}

.pv-grid {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.pv-area {
  fill: rgba(59, 158, 255, 0.18);
  opacity: 0;
  transform-origin: bottom;
  animation: pvAreaIn 1.7s ease 2.35s forwards;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.pv-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 8px rgba(59, 158, 255, 0.35));
  animation: pvDraw 2.8s cubic-bezier(0.65, 0, 0.35, 1) 0.5s forwards;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.pv-node,
.pv-dot,
.pv-dot-glow {
  opacity: 0;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.pv-node {
  fill: #d9ecff;
  animation: pvNodeIn 0.7s ease var(--delay) forwards;
}

.pv-dot {
  fill: var(--accent);
  animation: pvNodeIn 0.8s ease 2.55s forwards;
}

.pv-dot-glow {
  fill: rgba(59, 158, 255, 0.2);
  animation: pvGlowPulse 1.4s ease 2.7s forwards;
}

@keyframes pvDraw { to { stroke-dashoffset: 0; } }
@keyframes pvAreaIn { to { opacity: 1; } }
@keyframes pvNodeIn {
  from { opacity: 0; transform: scale(0.4); transform-origin: center; }
  to { opacity: 1; transform: scale(1); transform-origin: center; }
}
@keyframes pvGlowPulse {
  0% { opacity: 0; transform: scale(0.55); transform-origin: center; }
  60% { opacity: 1; transform: scale(1); transform-origin: center; }
  100% { opacity: 0.35; transform: scale(1.12); transform-origin: center; }
}

.pv-logo {
  width: clamp(48px, 6vw, 68px);
  aspect-ratio: 1;
  border-radius: 20%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 800;
  transform: scale(0);
  animation: pvPop 2.4s cubic-bezier(0.34, 1.45, 0.64, 1) 0.45s forwards;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.pv-ring {
  position: absolute;
  width: clamp(48px, 6vw, 68px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  transform: scale(0.6);
  animation: pvRipple 2.8s cubic-bezier(0.25, 1, 0.5, 1) 1.1s forwards;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

@keyframes pvPop { to { transform: scale(1); } }
@keyframes pvRipple {
  0% { opacity: 0.5; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.8); }
}

.pv-blur {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  filter: blur(16px);
  opacity: 0;
  letter-spacing: 0.35em;
  animation: pvResolve 3s cubic-bezier(0.33, 1, 0.68, 1) 0.45s forwards;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

@keyframes pvResolve {
  to { filter: blur(0); opacity: 1; letter-spacing: 0.06em; }
}

.pv-waveform {
  position: relative;
  width: 198px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(124, 240, 196, 0.1) 0 30%, transparent 31%),
    radial-gradient(circle, rgba(59, 158, 255, 0.12), transparent 62%);
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28));
}

.pv-waveform::before,
.pv-waveform::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.pv-waveform::before {
  width: 112px;
  aspect-ratio: 1;
  border: 1px solid rgba(124, 240, 196, 0.22);
  box-shadow: inset 0 0 28px rgba(124, 240, 196, 0.08);
}

.pv-waveform::after {
  width: 156px;
  aspect-ratio: 1;
  border: 1px dashed rgba(154, 168, 194, 0.16);
  animation: pvWaveRing 9s linear infinite;
}

.pv-waveform span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: var(--height);
  border-radius: 999px;
  margin-left: -2.5px;
  margin-top: calc(-70px - var(--height));
  background: linear-gradient(180deg, #8df7d4, rgba(124, 240, 196, 0.62));
  box-shadow: 0 0 14px rgba(124, 240, 196, 0.42);
  opacity: 0.72;
  transform: rotate(calc(var(--i) * 15deg));
  transform-origin: 50% calc(70px + var(--height));
  animation: pvWavePulse 1.45s ease-in-out var(--delay) infinite alternate;
}

.pv-wave-title {
  position: relative;
  z-index: 2;
  width: 106px;
  color: var(--text);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

@keyframes pvWavePulse {
  0% { opacity: 0.42; height: calc(var(--height) * 0.64); }
  100% { opacity: 1; height: calc(var(--height) * 1.28); }
}

@keyframes pvWaveRing {
  to { transform: rotate(360deg); }
}

.pv-caption-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 28px;
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 850;
}

.pv-caption-line span {
  color: rgba(245, 248, 255, 0.62);
  border-radius: 999px;
  padding: 5px 9px;
  animation: pvCaptionWord 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.45s);
}

@keyframes pvCaptionWord {
  0%, 18%, 100% { color: rgba(245, 248, 255, 0.62); background: transparent; transform: translateY(0) scale(1); }
  8% { color: #07111f; background: var(--warm); transform: translateY(-5px) scale(1.08); }
}

.pv-leak-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 850;
  letter-spacing: 0.12em;
  opacity: 0;
  animation: pvLeakScene 2.9s ease-in-out infinite;
}

.pv-leak {
  position: absolute;
  top: -18%;
  bottom: -18%;
  width: 42%;
  left: -48%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(90deg, transparent, rgba(255, 184, 107, 0.86), rgba(255, 104, 140, 0.66), transparent);
  filter: blur(16px);
  mix-blend-mode: screen;
  transform: skewX(-16deg);
  animation: pvLeakSweep 2.9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes pvLeakScene {
  0%, 14% { opacity: 0; transform: scale(1.04); }
  48%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes pvLeakSweep {
  0%, 18% { left: -48%; opacity: 0; }
  42% { opacity: 0.92; }
  72%, 100% { left: 108%; opacity: 0; }
}

.pv-product-wrap {
  position: relative;
  width: 128px;
  height: 118px;
  perspective: 700px;
  display: grid;
  place-items: center;
}

.pv-product-card {
  width: 90px;
  height: 110px;
  border-radius: 16px;
  border: 1px solid rgba(124, 240, 196, 0.2);
  background:
    linear-gradient(145deg, rgba(59, 158, 255, 0.32), rgba(180, 140, 255, 0.16)),
    #0d1728;
  box-shadow: 18px 14px 40px rgba(0, 0, 0, 0.28), -12px -10px 28px rgba(59, 158, 255, 0.1);
  display: grid;
  grid-template-rows: 18px 1fr 20px;
  gap: 10px;
  padding: 12px;
  transform: rotateY(-28deg) rotateX(7deg);
  animation: pvProductSpin 3.6s cubic-bezier(0.33, 1, 0.68, 1) infinite alternate;
}

.pv-product-card span,
.pv-product-card em {
  display: block;
  border-radius: 999px;
  background: rgba(245, 248, 255, 0.22);
}

.pv-product-card b {
  align-self: center;
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.04em;
}

.pv-product-shadow {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -5px;
  height: 15px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  filter: blur(8px);
  animation: pvProductShadow 3.6s ease-in-out infinite alternate;
}

@keyframes pvProductSpin {
  to { transform: rotateY(18deg) rotateX(0deg) translateY(-8px); }
}

@keyframes pvProductShadow {
  to { opacity: 0.58; transform: scaleX(0.74); }
}

.pv-speed-card,
.pv-speed-trail {
  position: absolute;
  width: min(210px, 64%);
  height: 58px;
  border-radius: 16px;
}

.pv-speed-card {
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 850;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, rgba(59, 158, 255, 0.42), rgba(124, 240, 196, 0.12)), #111d31;
  border: 1px solid rgba(154, 168, 194, 0.24);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  animation: pvSpeedLand 2.8s cubic-bezier(0.34, 1.32, 0.64, 1) infinite;
}

.pv-speed-trail {
  background:
    linear-gradient(90deg, transparent, rgba(59, 158, 255, 0.42), rgba(124, 240, 196, 0.18));
  filter: blur(8px);
  opacity: 0;
  animation: pvSpeedTrail 2.8s ease-out infinite;
}

@keyframes pvSpeedLand {
  0%, 12% { opacity: 0; transform: translateX(-220px); }
  38% { opacity: 1; transform: translateX(18px); }
  54%, 100% { opacity: 1; transform: translateX(0); }
}

@keyframes pvSpeedTrail {
  0%, 10% { opacity: 0; transform: translateX(-240px) scaleX(1.5); }
  26% { opacity: 0.9; transform: translateX(-72px) scaleX(1.3); }
  48%, 100% { opacity: 0; transform: translateX(10px) scaleX(0.65); }
}

.pv-glitch {
  position: relative;
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: 0.08em;
  animation: pvGlitchLock 2.4s steps(1, end) infinite;
}

.pv-glitch::before,
.pv-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.72;
  mix-blend-mode: screen;
}

.pv-glitch::before {
  color: #ff4f7b;
  animation: pvGlitchRed 2.4s steps(1, end) infinite;
}

.pv-glitch::after {
  color: #3b9eff;
  animation: pvGlitchBlue 2.4s steps(1, end) infinite;
}

.pv-glitch-slice {
  position: absolute;
  left: 23%;
  right: 23%;
  height: 3px;
  background: var(--mint);
  opacity: 0;
  box-shadow: 0 0 16px rgba(124, 240, 196, 0.7);
  animation: pvGlitchSlice 2.4s steps(1, end) infinite;
}

.pv-glitch-slice.slice-a {
  top: 42%;
}

.pv-glitch-slice.slice-b {
  top: 56%;
  animation-delay: 0.18s;
}

@keyframes pvGlitchLock {
  0%, 8% { transform: translateX(-2px); }
  9%, 17% { transform: translateX(3px); }
  18%, 100% { transform: translateX(0); }
}

@keyframes pvGlitchRed {
  0%, 7% { transform: translate(-7px, -2px); }
  8%, 15% { transform: translate(4px, 1px); }
  16%, 100% { transform: translate(0); opacity: 0; }
}

@keyframes pvGlitchBlue {
  0%, 7% { transform: translate(6px, 2px); }
  8%, 15% { transform: translate(-3px, -1px); }
  16%, 100% { transform: translate(0); opacity: 0; }
}

@keyframes pvGlitchSlice {
  0%, 6% { opacity: 0; transform: translateX(-28px); }
  7%, 10% { opacity: 1; transform: translateX(20px); }
  11%, 100% { opacity: 0; transform: translateX(0); }
}

@media (max-width: 900px) {
  body {
    padding: 0 16px 48px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .topbar,
  .topbar-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 24px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.04;
  }

  .hero-sub {
    margin-top: 18px;
    font-size: clamp(17px, 4.6vw, 21px);
  }

  .hero-steps {
    gap: 12px 20px;
    margin-top: 28px;
    font-size: 14px;
  }

  .sheet {
    padding: 24px 20px 28px;
  }

  .sheet-head {
    padding-right: 32px;
  }

  .guide-layout,
  .guide-steps,
  .potential-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    justify-content: flex-start;
  }

  .search {
    width: 100%;
    margin-left: 0;
  }
}
