:root {
  --bg: #070606;
  --surface: #131110;
  --surface-2: #1b1816;
  --border: rgba(229, 193, 123, 0.16);
  --text: #faf7f2;
  --muted: #a69f95;
  --accent: #e5c17b;
  --accent-2: #f5deb3;
  --accent-soft: rgba(229, 193, 123, 0.12);
  --success: #a3e635;
  --warn: #b45309;
  --danger: #f87171;
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Calm Airy Background */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.45;
  animation: floatOrb 16s ease-in-out infinite alternate;
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(229, 193, 123, 0.14), transparent 70%);
}

.orb-2 {
  width: 480px;
  height: 480px;
  bottom: -160px;
  right: -100px;
  background: radial-gradient(circle, rgba(161, 128, 78, 0.14), transparent 70%);
  animation-delay: -8s;
}

.dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(229, 193, 123, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 35%, transparent 80%);
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 24px) scale(1.06); }
}

/* Topbar */
.topbar {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-badge {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(229, 193, 123, 0.28);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.creator-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.creator-pill:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(229, 193, 123, 0.55);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 193, 123, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(229, 193, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 193, 123, 0); }
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-local { background: var(--accent); }
.dot-gemini { background: #2563eb; }

.container {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 6px 20px 28px;
}

/* Hero Split Showcase */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: center;
  margin: 4px 0 20px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-stats { justify-content: center; }
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(229, 193, 123, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.serif-italic {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  color: var(--accent);
}

.hero-copy p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 520px;
}

@media (max-width: 900px) {
  .hero-copy p { margin-left: auto; margin-right: auto; }
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.stat strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.stat span {
  font-size: 12px;
  color: var(--muted);
}

.stat-div {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.visual-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
  animation: floatFrame 6s ease-in-out infinite alternate;
}

.visual-frame img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

@keyframes floatFrame {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

.floating-badge {
  position: absolute;
  background: rgba(19, 17, 16, 0.92);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-top { top: -12px; right: 14px; }
.badge-bottom { bottom: -12px; left: 14px; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Workspace */
.workspace {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Unlumen / Smooth UI Cursor Spotlight */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, -200px) var(--my, -200px), rgba(229, 193, 123, 0.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card:hover {
  border-color: rgba(229, 193, 123, 0.34);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.card-header h2 { font-size: 16.5px; font-weight: 700; color: var(--text); }

.presets { display: flex; align-items: center; gap: 6px; }
.presets-label { font-size: 12px; color: var(--muted); }

.chip {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-2);
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.req { color: var(--danger); }
.hint { font-size: 12px; color: var(--muted); }

input, select, textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input:focus, select:focus, textarea:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 193, 123, 0.14);
}
input.input-invalid, select.input-invalid, textarea.input-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.field-error {
  font-size: 12px;
  font-weight: 500;
  color: var(--danger);
  margin-top: 2px;
}
textarea { resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #f3d9a4, #cfa355);
  color: #120f0c;
  box-shadow: 0 4px 14px rgba(229, 193, 123, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f7e4bc, #dfb568);
  box-shadow: 0 6px 18px rgba(47, 111, 94, 0.28);
  transform: translateY(-1px);
}

.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: shimmer 4s infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  35%, 100% { left: 150%; }
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.btn-full { width: 100%; padding: 12px; font-size: 15px; }

/* States */
.empty-state {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

.empty-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(229, 193, 123, 0.3);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 14px;
  animation: floatFrame 4s ease-in-out infinite alternate;
}

.empty-state h3 { color: var(--text); margin-bottom: 6px; font-size: 18px; }
.empty-state p { max-width: 340px; font-size: 14px; }

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

.warning-banner {
  background: rgba(229, 193, 123, 0.12);
  border: 1px solid rgba(229, 193, 123, 0.35);
  color: #f5deb3;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 14px;
}

/* Score & Breakdown */
.score-panel {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 520px) {
  .score-panel { grid-template-columns: 1fr; justify-items: center; }
  .breakdown { width: 100%; }
}

.score-ring-wrap { position: relative; width: 112px; height: 112px; }
.score-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.ring-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.3s ease;
}
.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-number span { font-size: 27px; font-weight: 800; line-height: 1; color: var(--text); }
.score-number small { font-size: 11px; color: var(--muted); margin-top: 2px; }

.breakdown { display: flex; flex-direction: column; gap: 10px; }
.metric-top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; color: var(--text); font-weight: 500; }
.bar { height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9f7a38, #e5c17b, #f5deb3);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.feedback-box, .rewrites-box, .extras-box { margin-top: 16px; }
.feedback-box h3, .rewrites-box h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--accent-2); }
.feedback-box ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.feedback-box li { font-size: 13px; color: var(--text); padding-left: 16px; position: relative; }
.feedback-box li::before { content: "•"; color: var(--accent); position: absolute; left: 0; font-weight: 700; }

.rewrites-list { display: flex; flex-direction: column; gap: 10px; }
.rewrite-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeSlideUp 0.35s ease forwards;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.rewrite-item:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-2px);
}
@keyframes fadeSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

.rewrite-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.style-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(229, 193, 123, 0.28);
  padding: 2px 9px;
  border-radius: 999px;
}
.copy-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { color: var(--text); border-color: var(--accent); }
.rewrite-hook { font-size: 14px; font-weight: 600; color: var(--text); }
.rewrite-why { font-size: 12px; color: var(--muted); margin-top: 4px; }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 12px; }
.tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.tab.active { background: var(--surface-2); color: var(--text); border-color: var(--border); }

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 8px;
}
.caption-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: 13px; white-space: pre-line; }
.hashtags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.hashtag { font-size: 12px; color: var(--accent-2); background: var(--accent-soft); padding: 3px 9px; border-radius: 6px; font-weight: 500; }

.history-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.history-header { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.link-btn { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.history-list { display: flex; flex-direction: column; gap: 6px; }
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.history-item:hover { border-color: var(--accent); }
.history-score { font-weight: 700; color: var(--accent); margin-left: 8px; }

.url-row, .waitlist-row { display: flex; gap: 8px; }
.url-row input, .waitlist-row input { flex: 1; }

.pricing-section { margin-top: 24px; }
.pricing-head { text-align: center; margin-bottom: 14px; }
.pricing-head h2 { font-size: 20px; font-weight: 800; }
.pricing-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

.pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 900px) { .pricing-grid-3 { grid-template-columns: 1fr; } }

.billing-toggle {
  display: inline-flex;
  gap: 6px;
  margin-top: 14px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.billing-toggle .chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
}
.plan-sub { font-size: 13px; color: var(--muted); }

.plan-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.plan-pro { border-color: rgba(229, 193, 123, 0.38); background: linear-gradient(160deg, #1b1714, #12100e); }
.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(229, 193, 123, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
}
.plan-tier { font-size: 14px; font-weight: 700; color: var(--accent); }
.plan-price { font-size: 28px; font-weight: 800; line-height: 1; color: var(--text); }
.plan-price span { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 4px 0 6px; }
.plan-features li { font-size: 13px; color: var(--text); padding-left: 16px; position: relative; }
.plan-features li::before { content: "✓"; color: var(--accent); position: absolute; left: 0; font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 999px;
}
.nav-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  transition: all 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.page-head {
  text-align: center;
  max-width: 640px;
  margin: 8px auto 20px;
}
.page-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.12; }
.page-head p { color: var(--muted); font-size: 15px; margin-top: 8px; }

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.filter-bar .chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 960px) { .templates-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .templates-grid { grid-template-columns: 1fr; } }
.template-card { display: flex; flex-direction: column; gap: 10px; }

.label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hook-timer { font-size: 11.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.hook-timer.over { color: var(--danger); }
.hook-timer.good { color: var(--accent); }

.about-asymmetric {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 820px) { .about-asymmetric { grid-template-columns: 1fr; } }

.about-story { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.about-story h2, .about-roadmap h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.about-story p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }

.founder-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.founder-strip strong { display: block; font-size: 14px; }
.founder-strip span { font-size: 12.5px; color: var(--muted); }
.founder-strip a { color: var(--accent); text-decoration: none; font-weight: 600; }

.roadmap-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.roadmap-item { padding-left: 14px; border-left: 2px solid var(--border); }
.roadmap-item.done { border-left-color: var(--accent); }
.rm-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 2px; }
.roadmap-item strong { display: block; font-size: 14px; }
.roadmap-item p { font-size: 13px; color: var(--muted); margin-top: 2px; }

.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 16px 20px 24px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 30;
  background: #1b1816;
  color: #f5deb3;
  border: 1px solid rgba(229, 193, 123, 0.45);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(24, 24, 27, 0.2);
  animation: fadeSlideUp 0.25s ease forwards;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 16px;
}
.modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.icon-btn { background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.modal-desc { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Magic UI: Blur Fade */
.blur-fade {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);
  animation: blurFadeIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes blurFadeIn {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* Magic UI: Shiny Pill */
.shiny-pill {
  position: relative;
  overflow: hidden;
}
.shiny-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(245, 222, 179, 0.32) 50%, transparent 75%);
  transform: translateX(-100%);
  animation: shinySweep 3.8s ease-in-out infinite;
}
@keyframes shinySweep {
  0% { transform: translateX(-100%); }
  40%, 100% { transform: translateX(150%); }
}

/* Magic UI: Border Beam */
@property --beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.border-beam {
  position: relative;
}
.border-beam::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--beam-angle), transparent 72%, rgba(229, 193, 123, 0.88) 86%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: beamSpin 5s linear infinite;
}
@keyframes beamSpin {
  to { --beam-angle: 360deg; }
}

/* Magic UI: Marquee */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Smooth UI Spring Press */
.btn, .chip {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover, .chip:hover { transform: translateY(-1.5px); }
.btn:active, .chip:active { transform: scale(0.96); }

/* WebGL Shader Background & Interactive 3D Hero Canvas */
#shaderBg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

.hero-3d-canvas {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 14px;
  z-index: 2;
  cursor: grab;
  background: radial-gradient(circle at center, rgba(19, 17, 16, 0.35), rgba(7, 6, 6, 0.62));
}

.floating-badge { z-index: 3; }

/* Framer-Style Scroll Reveal */
.card.reveal-ready {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
}
.card.reveal-ready.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, box-shadow 0.25s;
}

.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 25;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(19, 17, 16, 0.96);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--muted);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrap input {
  padding-right: 40px;
}
.pw-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 4px;
  border-radius: 6px;
}
.pw-toggle:hover {
  color: var(--text);
}

/* Retention Timeline Strip */
.timeline-strip {
  margin: 14px 0 6px;
  display: grid;
  grid-template-columns: 12fr 58fr 15fr 15fr;
  gap: 4px;
}
.tl-seg {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-hook { background: rgba(229, 193, 123, 0.18); border-color: rgba(229, 193, 123, 0.45); color: #f5deb3; }
.tl-body { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.tl-proof { background: rgba(163, 230, 53, 0.1); border-color: rgba(163, 230, 53, 0.3); color: #bef264; }
.tl-cta { background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.3); color: #bae6fd; }

/* Styled Script Cue Renderer */
.script-studio {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}
.cue-header {
  display: inline-block;
  align-self: flex-start;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(229, 193, 123, 0.18);
  color: #f5deb3;
  border: 1px solid rgba(229, 193, 123, 0.35);
}
.cue-header:first-child { margin-top: 0; }
.cue-visual {
  font-size: 12px;
  color: #bef264;
  background: rgba(163, 230, 53, 0.08);
  border-left: 2px solid #a3e635;
  padding: 4px 10px;
  border-radius: 0 6px 6px 0;
}
.cue-text {
  font-size: 12px;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.08);
  border-left: 2px solid #38bdf8;
  padding: 4px 10px;
  border-radius: 0 6px 6px 0;
}
.cue-spoken {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
  padding-left: 4px;
}

/* Skeleton Loader */
.skeleton-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 4px;
}
.skeleton-line {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-2) 25%, rgba(229, 193, 123, 0.12) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.3s infinite linear;
}
.skeleton-card { height: 74px; border-radius: 12px; }
@keyframes skelShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Mobile Nav Drawer */
.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
}
@media (max-width: 1020px) {
  .topbar { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; order: 2; }
  .topbar-actions { order: 3; }
  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    border-radius: 14px;
    padding: 8px;
    margin-top: 6px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-link { text-align: center; padding: 8px 12px; }
}

/* Interactive Particle Canvas & Cursor Halo */
#particleBg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#cursorHalo {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 193, 123, 0.11), transparent 68%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* Enhanced Glass Card Edge & Magnetic Button Polish */
.card {
  transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(229, 193, 123, 0.22);
}
.btn-primary {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

/* AI Output Action Bar (Like, Dislike, Read Aloud, Copy) */
.output-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.oa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.oa-btn:hover {
  color: var(--text);
  border-color: rgba(229, 193, 123, 0.45);
}
.oa-btn.liked {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.12);
}
.oa-btn.disliked {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.12);
}
.oa-btn.speaking {
  color: var(--accent-2);
  border-color: var(--accent);
  background: var(--accent-soft);
}
