/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-gradient: linear-gradient(135deg, #FBBF24 0%, #7C65F4 50%, #378EED 100%);
  --brand-primary: #6B46C1;
  --brand-primary-hover: #5a3aaa;
  --brand-primary-light: #EDE9FE;
  --brand-amber: #F0A500;
  --brand-amber-light: #FEF3C7;
  --text-dark: #1C1833;
  --text-body: #374151;
  --text-muted: #6B7280;
  --text-faint: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --surface: #F9FAFB;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
  --font-display: 'Literata', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ─── Typography helpers ────────────────────────────────────── */
.section-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--brand-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 12px; display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600; color: var(--text-dark);
  line-height: 1.2; margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--text-muted);
  max-width: 520px; margin-bottom: 48px; line-height: 1.7;
}
.section { padding: 96px 0; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-primary); color: #fff;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 10px 20px; border-radius: var(--radius-md);
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s; white-space: nowrap;
}
.btn-primary:hover { background: var(--brand-primary-hover); transform: translateY(-1px); }
.btn-primary.btn-lg { font-size: 15px; padding: 13px 26px; }
.btn-primary.btn-block { width: 100%; justify-content: center; padding: 13px; border-radius: var(--radius-md); }

.btn-coming-soon {
  opacity: 0.55; cursor: not-allowed; pointer-events: none;
}

.btn-ghost {
  display: inline-flex; align-items: center;
  color: var(--text-dark); font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  padding: 10px 16px; border-radius: var(--radius-md);
  text-decoration: none; transition: background 0.15s;
}
.btn-ghost:hover { background: var(--surface); }
.btn-ghost.btn-lg { font-size: 15px; padding: 13px 20px; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-primary); font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  padding: 13px 20px; border-radius: var(--radius-md);
  text-decoration: none; border: 1.5px solid var(--brand-primary);
  transition: background 0.15s; width: 100%;
}
.btn-outline:not(.btn-coming-soon):hover { background: var(--brand-primary-light); }

.btn-white {
  display: inline-flex; align-items: center;
  background: var(--white); color: var(--text-dark);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 13px 26px; border-radius: var(--radius-md);
  text-decoration: none; transition: background 0.15s, transform 0.1s;
}
.btn-white:hover { background: #f3f4f6; transform: translateY(-1px); }

/* ─── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  display: flex; align-items: center; height: 60px; gap: 32px;
}
.nav-logo img { display: block; }
.nav-links { display: flex; list-style: none; gap: 4px; flex: 1; }
.nav-links a {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  text-decoration: none; padding: 6px 12px; border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text-dark); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 4px; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero { padding: 80px 0 0; overflow: hidden; }
.hero-inner { text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-primary-light); color: var(--brand-primary);
  font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--brand-amber); border-radius: 50%; flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700; color: var(--text-dark);
  line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero-headline em {
  font-style: italic;
  background: var(--brand-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 18px; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.hero-note { font-size: 13px; color: var(--text-faint); margin-bottom: 56px; }
.hero-note-link { color: var(--brand-primary); text-decoration: none; }
.hero-note-link:hover { text-decoration: underline; }

/* ─── Screenshot frame ──────────────────────────────────────── */
.hero-screenshot-wrap { padding-bottom: 0; }
.screenshot-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.03);
  overflow: hidden;
}
.screenshot-titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 16px; background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28C840; }
.titlebar-label {
  flex: 1; text-align: center;
  font-size: 12px; color: var(--text-faint); font-weight: 500;
}
.hero-screenshot {
  display: block; width: 100%; height: auto;
  max-height: 540px; object-fit: cover; object-position: top;
}

/* ─── Problem ───────────────────────────────────────────────── */
.problem { background: var(--surface); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.problem-icon { font-size: 28px; margin-bottom: 14px; }
.problem-card h3 {
  font-family: var(--font-display); font-size: 17px;
  font-weight: 600; color: var(--text-dark); margin-bottom: 8px;
}
.problem-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ─── Features ──────────────────────────────────────────────── */
/* Extra space between section title and first feature row screenshot */
.features .section-title { margin-bottom: 56px; }
.features .section-sub { margin-bottom: 56px; }

.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; margin-bottom: 80px;
  padding-top: 8px;
}
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }

.feature-screenshot {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.shadow-screenshot { box-shadow: var(--shadow-md); }

.feature-row-text { display: flex; flex-direction: column; gap: 14px; }
.feature-row-text h3 {
  font-family: var(--font-display); font-size: 26px;
  font-weight: 600; color: var(--text-dark); line-height: 1.25;
}
.feature-row-text p { font-size: 16px; color: var(--text-muted); line-height: 1.7; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.feature-list li {
  font-size: 14px; color: var(--text-body);
  padding-left: 20px; position: relative;
}
.feature-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--brand-primary); font-size: 12px; top: 2px;
}

.feature-tag {
  display: inline-flex;
  background: var(--brand-primary-light); color: var(--brand-primary);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 10px;
  border-radius: 100px; width: fit-content;
}

.feature-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.feature-card h3 {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 600; color: var(--text-dark);
}
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.feature-visual {
  margin-top: 4px; background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 14px;
}
.lore-visual { display: flex; flex-direction: column; gap: 8px; }
.lore-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-body); font-weight: 500; }
.lore-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lore-dot.char { background: #7C65F4; }
.lore-dot.loc { background: #378EED; }
.lore-dot.magic { background: #FBBF24; }
.lore-dot.faction { background: #F87171; }
.lore-type { margin-left: auto; font-size: 11px; color: var(--text-faint); font-weight: 400; }

.ai-visual { display: flex; flex-direction: column; gap: 8px; }
.ai-bubble { font-size: 12px; line-height: 1.5; padding: 8px 12px; border-radius: var(--radius-md); }
.user-bubble { background: var(--brand-primary-light); color: var(--brand-primary); align-self: flex-end; max-width: 88%; }
.ai-bubble-r { background: var(--white); border: 1px solid var(--border); color: var(--text-body); max-width: 92%; }

.check-visual { display: flex; flex-direction: column; gap: 8px; }
.check-item { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 7px 10px; border-radius: var(--radius-sm); font-weight: 500; }
.check-item.ok { background: #F0FDF4; color: #16A34A; }
.check-item.warn { background: #FFFBEB; color: #D97706; }

/* ─── How it works ──────────────────────────────────────────── */
.how { background: var(--surface); }
.steps {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start; margin-top: 48px;
}
.step-connector {
  width: 1px; height: 40px; background: var(--border);
  margin: 36px 40px 0; align-self: start;
}
.step { padding: 0 4px; }
.step-number {
  font-family: var(--font-display); font-size: 40px; font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 16px;
}
.step h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ─── Genres ────────────────────────────────────────────────── */
.genre-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.genre-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.genre-emoji { font-size: 28px; margin-bottom: 12px; }
.genre-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.genre-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ─── Pricing — Screen Studio inspired ─────────────────────── */
.pricing { background: var(--text-dark); }
.pricing .section-label {
  /* override gradient for dark bg */
  background: none;
  -webkit-text-fill-color: rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.5);
}
.pricing .section-title { color: var(--white); }
.pricing .section-sub { color: rgba(255,255,255,0.55); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; max-width: 800px; margin: 0 auto 32px;
}

.pricing-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl); padding: 32px;
  position: relative;
}
.pricing-card--featured {
  border-color: var(--brand-primary);
  border-width: 1.5px;
  background: rgba(107,70,193,0.15);
}
.pricing-badge {
  position: absolute; top: -12px; right: 24px;
  background: var(--brand-amber); color: #5a3300;
  font-size: 11px; font-weight: 600;
  padding: 3px 12px; border-radius: 100px; letter-spacing: 0.02em;
}
.pricing-name { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 4px; font-family: var(--font-display); }
.pricing-tagline { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.pricing-amount {
  font-family: var(--font-display); font-size: 56px;
  font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 6px;
}
.pricing-period { font-size: 20px; font-weight: 400; color: rgba(255,255,255,0.5); }
.pricing-per { font-size: 14px; }
.pricing-desc { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 20px; }

.pricing-card .btn-outline {
  color: var(--brand-primary); border-color: rgba(107,70,193,0.6);
  background: transparent; margin-bottom: 24px;
}
.pricing-card .btn-outline:not(.btn-coming-soon):hover { background: rgba(107,70,193,0.15); }
.pricing-card .btn-primary { margin-bottom: 24px; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { font-size: 14px; color: rgba(255,255,255,0.75); display: flex; align-items: flex-start; gap: 8px; }
.check-yes { color: #7C65F4; flex-shrink: 0; }
.check-no { color: rgba(255,255,255,0.25); flex-shrink: 0; }
.highlight { color: #a78bfa; font-weight: 500; }
.pricing-renewal { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 16px; line-height: 1.5; }

/* Waitlist box */
.pricing-waitlist-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl); padding: 28px 32px;
  margin-bottom: 20px; max-width: 800px; margin-left: auto; margin-right: auto;
}
.waitlist-left { display: flex; align-items: flex-start; gap: 16px; }
.waitlist-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(107,70,193,0.3);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #a78bfa;
}
.waitlist-left h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.waitlist-left p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6; max-width: 420px; }
.waitlist-form { display: flex; gap: 8px; flex-shrink: 0; }
.waitlist-input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 10px 14px; font-size: 14px;
  color: var(--white); font-family: var(--font-body);
  width: 220px; outline: none;
  transition: border-color 0.15s;
}
.waitlist-input::placeholder { color: rgba(255,255,255,0.3); }
.waitlist-input:focus { border-color: var(--brand-primary); }
.waitlist-form .btn-primary { flex-shrink: 0; }

.pricing-sys-note {
  font-size: 12px; color: rgba(255,255,255,0.25);
  text-align: center; max-width: 800px;
  margin: 0 auto;
}

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px;}
.faq-item h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer { padding: 32px 0; border-top: 1px solid var(--border-light); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; margin-left: auto; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text-dark); }
.footer-copy { font-size: 12px; color: var(--text-faint); }

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge { animation: fadeUp 0.4s 0.05s ease both; }
.hero-headline { animation: fadeUp 0.45s 0.1s ease both; }
.hero-sub { animation: fadeUp 0.45s 0.17s ease both; }
.hero-cta { animation: fadeUp 0.45s 0.23s ease both; }
.hero-note { animation: fadeUp 0.45s 0.28s ease both; }
.hero-screenshot-wrap { animation: fadeUp 0.55s 0.33s ease both; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row--reverse { direction: ltr; }
  .feature-cards-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .faq-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .pricing-waitlist-box { flex-direction: column; align-items: flex-start; }
  .waitlist-form { width: 100%; }
  .waitlist-input { flex: 1; width: auto; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 0; }
  .hero-screenshot { max-height: 320px; }
  .problem-grid { grid-template-columns: 1fr; }
  .feature-cards-grid { grid-template-columns: 1fr; }
  .genre-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }
  .section { padding: 64px 0; }
  .pricing-grid { max-width: 100%; }
  .waitlist-form { flex-direction: column; }
  .waitlist-input { width: 100%; }
  .nav-actions .btn-ghost { display: none; }
}

@media (max-width: 400px) {
  .genre-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 36px; }
}
