:root {
  --bg: #0b0d12;
  --bg-elevated: #12151c;
  --bg-card: #161a24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef0f6;
  --text-muted: #8b93a7;
  --accent: #7c5cff;
  --accent-2: #3d8bff;
  --success: #3ecf8e;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(61, 139, 255, 0.12), transparent 50%);
  z-index: 0;
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c5cff, #3d8bff);
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.4);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }

.btn-primary {
  background: linear-gradient(135deg, #7c5cff, #3d8bff);
  color: #fff;
}

.btn-primary:hover { filter: brightness(1.06); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.18); }

.btn-block { width: 100%; }

.hero, .section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.hero { padding-top: 2rem; padding-bottom: 3rem; }

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.fine {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.fine.center { text-align: center; margin-top: 1.25rem; }

.proof {
  margin: 0;
  padding: 1rem 1.15rem;
  max-width: 44rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.18);
  color: #c4b5ff;
  font-weight: 700;
}

.steps h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.price-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
}

.price-card {
  position: relative;
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.price-card.featured {
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.15), 0 20px 50px rgba(0, 0, 0, 0.35);
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(62, 207, 142, 0.15);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 600;
}

.price-card h3 { margin: 0 0 0.35rem; }
.price {
  margin: 0 0 1rem;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-card ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.price-card li { margin: 0.35rem 0; }

.faq { margin: 1.25rem 0 0; }
.faq > div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.faq dt { font-weight: 650; margin-bottom: 0.3rem; }
.faq dd { margin: 0; color: var(--text-muted); }

.policies article {
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.policies h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.policies p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.placeholder {
  color: #f0c674;
  font-weight: 600;
}

.site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
}

/* Ghost button (hero secondary CTA) */
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Product motion preview */
.product-motion {
  margin-top: 2.25rem;
  max-width: 720px;
}

.motion-label {
  margin: 0 0 0.55rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.motion-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.motion-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.motion-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.motion-dot:nth-child(1) { background: #ff6b7a; }
.motion-dot:nth-child(2) { background: #e6b84d; }
.motion-dot:nth-child(3) { background: #3ecf8e; }

.motion-title {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.motion-body {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}

@media (min-width: 640px) {
  .motion-body { grid-template-columns: 1fr 1.1fr; }
}

.motion-pane {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  min-height: 150px;
}

.motion-pane-label {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.motion-typewriter {
  position: relative;
  min-height: 3.6rem;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}

.motion-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  opacity: 0;
}

.motion-caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: -0.1em;
  background: var(--accent);
  opacity: 0;
}

.motion-btn {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c5cff, #3d8bff);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  opacity: 0;
  transform: scale(0.96);
}

.motion-titles {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.motion-titles li {
  margin: 0;
  padding: 0.4rem 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.motion-tags {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  color: #a8c4ff;
  line-height: 1.5;
}

.motion-caps {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
}

.motion-caps span:first-child {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.motion-item {
  opacity: 0;
  transform: translateY(6px);
}

/* Loop: paste (0-35%) -> generate pulse (35-45%) -> results cascade (45-90%) -> reset */
@keyframes motion-line-1 {
  0%, 4% { width: 0; opacity: 0; }
  8%, 88% { width: 100%; opacity: 1; }
  94%, 100% { width: 100%; opacity: 0; }
}
@keyframes motion-line-2 {
  0%, 10% { width: 0; opacity: 0; }
  18%, 88% { width: 100%; opacity: 1; }
  94%, 100% { width: 100%; opacity: 0; }
}
@keyframes motion-caret {
  0%, 4% { opacity: 0; }
  5%, 32% { opacity: 1; }
  33%, 100% { opacity: 0; }
}
@keyframes motion-btn {
  0%, 28% { opacity: 0; transform: scale(0.96); }
  34%, 42% { opacity: 1; transform: scale(1); }
  38% { transform: scale(0.97); filter: brightness(1.1); }
  48%, 88% { opacity: 0.55; transform: scale(1); }
  94%, 100% { opacity: 0; transform: scale(0.96); }
}
@keyframes motion-reveal {
  0%, 44% { opacity: 0; transform: translateY(6px); }
  52%, 88% { opacity: 1; transform: translateY(0); }
  94%, 100% { opacity: 0; transform: translateY(4px); }
}

.motion-typewriter .motion-line:nth-child(1) {
  animation: motion-line-1 9s ease-in-out infinite;
}
.motion-typewriter .motion-line:nth-child(2) {
  animation: motion-line-2 9s ease-in-out infinite;
}
.motion-caret {
  animation: motion-caret 9s step-end infinite;
}
.motion-btn {
  animation: motion-btn 9s ease-in-out infinite;
}
.motion-item.i1 { animation: motion-reveal 9s ease-in-out infinite; animation-delay: 0.05s; }
.motion-item.i2 { animation: motion-reveal 9s ease-in-out infinite; animation-delay: 0.18s; }
.motion-item.i3 { animation: motion-reveal 9s ease-in-out infinite; animation-delay: 0.3s; }
.motion-item.i4 { animation: motion-reveal 9s ease-in-out infinite; animation-delay: 0.42s; }
.motion-item.i5 { animation: motion-reveal 9s ease-in-out infinite; animation-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  .motion-line,
  .motion-caret,
  .motion-btn,
  .motion-item {
    animation: none !important;
    opacity: 1 !important;
    width: auto !important;
    transform: none !important;
  }
  .motion-line { white-space: normal; }
}

/* Interactive demo panel */
.demo-panel {
  margin-top: 1.25rem;
  padding: 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.demo-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-muted);
}

.demo-textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
}

.demo-textarea:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.demo-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.demo-empty {
  margin-top: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.demo-empty[hidden],
.demo-results[hidden] {
  display: none !important;
}

.demo-results {
  margin-top: 1.15rem;
  display: grid;
  gap: 1.1rem;
}

.demo-block h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.demo-soft {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.demo-title-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
}

.demo-title-list li {
  margin: 0.35rem 0;
  padding-left: 0.2rem;
}

.demo-hash-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 700px) {
  .demo-hash-grid { grid-template-columns: repeat(3, 1fr); }
}

.demo-hash-pack {
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.demo-hash-pack h4 {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.demo-hash-tags {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #a8c4ff;
  word-break: break-word;
}

.demo-caption-list {
  display: grid;
  gap: 0.35rem;
  max-height: 280px;
  overflow-y: auto;
}

.demo-caption-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.65rem;
  padding: 0.5rem 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
}

.demo-caption-time {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.78rem;
  padding-top: 0.1rem;
}

.demo-caption-text { color: var(--text); }

.demo-cta {
  padding: 1rem 1.1rem;
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: 10px;
}

.demo-cta p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 20;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #1c2230;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.demo-toast[hidden] { display: none !important; }
