/* ============================================================
   TABLETOP SCRIBE — MARKETING SITE
   Dark arcane theme: deep navy/black + gold accents
   ============================================================ */

:root {
  --bg:           #08080f;
  --bg-card:      #0f0f1a;
  --bg-dark:      #060610;
  --bg-elevated:  #151525;
  --gold:         #c9a84c;
  --gold-light:   #e8c96a;
  --gold-dim:     #8a6f2e;
  --purple:       #7c5cbf;
  --purple-dim:   #4a3870;
  --text:         #f0e6d3;
  --text-muted:   #9a8f82;
  --text-dim:     #5a5248;
  --border:       rgba(201, 168, 76, 0.15);
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
.hero-heading,
.section-heading,
.cta-heading,
h3 {
  font-family: 'Cinzel', Georgia, serif;
}

/* ── Layout ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-dark);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0806;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), #f5dc80);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--gold-dim);
  background: rgba(201, 168, 76, 0.06);
}

.btn-discord-icon {
  background: #5865F2;
  color: #fff;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  aspect-ratio: 1;
  flex-shrink: 0;
}
.btn-discord-icon:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
}

.btn-gift {
  background: linear-gradient(135deg, var(--purple), #9b7ee0);
  color: #fff;
}
.btn-gift:hover {
  background: linear-gradient(135deg, #9b7ee0, #b899f5);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 92, 191, 0.4);
}

/* ── Section labels ── */
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 56px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 36px;
  width: auto;
}

.nav-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a:not(.btn) {
  font-size: 15px;
  color: var(--text-muted);
  padding: 6px 0;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124, 92, 191, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-heading {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-mascot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-img {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 0 60px rgba(124, 92, 191, 0.35));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 40px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50%       { transform: rotate(45deg) translateY(6px); opacity: 0.4; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-mascot { order: -1; }
  .mascot-img { max-width: 260px; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   ENTITY SYSTEM
   ============================================================ */
.entity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.free-tier-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.05));
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  flex-shrink: 0;
  max-width: 300px;
}

.free-tier-icon {
  font-size: 28px;
  color: var(--gold);
}

.free-tier-label {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.free-tier-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Entity type pills */
.entity-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.entity-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Capability grid */
.entity-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.entity-cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.entity-cap-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}

.entity-cap-card--wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 20px;
}
.entity-cap-card--wide .entity-cap-icon {
  grid-row: span 2;
  align-self: center;
}

.entity-cap-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.entity-cap-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.entity-cap-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .entity-cap-grid { grid-template-columns: repeat(2, 1fr); }
  .entity-cap-card--wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  .entity-cap-grid { grid-template-columns: 1fr; }
  .entity-cap-card--wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .entity-cap-card--wide .entity-cap-icon { grid-row: auto; }
}

@media (max-width: 700px) {
  .entity-header { flex-direction: column; }
  .free-tier-badge { max-width: 100%; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
}

.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-dim), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.step-content {
  padding-top: 4px;
  padding-bottom: 32px;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--purple-dim), transparent);
  margin-left: 25px;
}

/* ============================================================
   DEPLOY OPTIONS
   ============================================================ */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.deploy-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition), transform var(--transition);
}
.deploy-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}

.deploy-card--featured {
  border-color: var(--gold-dim);
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
}

.deploy-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0806;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.deploy-icon {
  font-size: 36px;
}

.deploy-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.deploy-tagline {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.deploy-card > p:not(.deploy-tagline) {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.deploy-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
}

.deploy-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.deploy-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-dim);
}

/* ============================================================
   GIFT SECTION
   ============================================================ */
.section-gift {
  background: linear-gradient(135deg, rgba(124, 92, 191, 0.12), rgba(201, 168, 76, 0.06));
  border-top: 1px solid rgba(124, 92, 191, 0.2);
  border-bottom: 1px solid rgba(124, 92, 191, 0.2);
}

.gift-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: center;
}

.gift-text .section-heading { margin-bottom: 12px; }
.gift-text > p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.gift-img {
  width: 100%;
  filter: drop-shadow(0 0 40px rgba(124, 92, 191, 0.4));
  animation: float 5s ease-in-out infinite reverse;
}

@media (max-width: 768px) {
  .gift-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .gift-text > p { margin-left: auto; margin-right: auto; }
  .gift-img { max-width: 200px; margin: 0 auto; }
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--bg-dark);
  text-align: center;
}

.cta-inner { max-width: 600px; margin: 0 auto; }

.cta-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
  width: 100%;
  text-align: center;
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   APP-LIVE TOGGLE
   Default (no class on <html>): coming soon mode — real CTAs
   are hidden, "Coming Soon" placeholders are visible.
   To go live: add class="app-live" to the <html> element.
   ============================================================ */

/* Real CTA links — hidden until app is live */
.btn-cta { display: none; }
.app-live .btn-cta { display: inline-flex; }

/* Coming soon placeholder — visible until app is live */
.btn-coming-soon {
  cursor: pointer;
  color: var(--text-dim);
  border: 1px dashed rgba(201, 168, 76, 0.2);
  background: transparent;
  font-style: italic;
}
.app-live .btn-coming-soon { display: none; }

/* Footer text links — hidden until app is live */
.footer-link-cta { display: none; }
.app-live .footer-link-cta { display: inline; }

/* Footer coming soon text — visible until app is live */
.footer-coming-soon {
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
}
.app-live .footer-coming-soon { display: none; }

/* Waitlist form — coming-soon only */
.coming-soon-form { display: block; }
.app-live .coming-soon-form { display: none; }

.waitlist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.app-live .waitlist-form { display: none; }

.waitlist-input {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition);
}
.waitlist-input:focus {
  border-color: var(--gold-dim);
}
.waitlist-input::placeholder {
  color: var(--text-dim);
}

.waitlist-success {
  font-size: 16px;
  color: var(--gold);
  font-style: italic;
  padding: 14px 0;
}

/* Override inline-flex restore for block-level app-live elements */
.app-live h2.btn-cta { display: block; }
.app-live p.btn-cta { display: block; }
