:root {
  --bg: #0c0b0a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(200, 149, 110, 0.28);
  --text: #f4eee6;
  --muted: rgba(244, 238, 230, 0.68);
  --accent: #c8956e;
  --accent-violet: rgba(139, 127, 205, 0.2);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --display: "DM Serif Display", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-a {
  background:
    radial-gradient(ellipse 48% 30% at 50% 0%, rgba(200, 149, 110, 0.14), transparent 68%),
    radial-gradient(circle at 82% 24%, rgba(118, 150, 255, 0.12), transparent 18%);
}

.ambient-b {
  background:
    radial-gradient(circle at 12% 72%, rgba(139, 127, 205, 0.12), transparent 22%),
    radial-gradient(circle at 78% 78%, rgba(200, 149, 110, 0.08), transparent 20%);
}

.grain {
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 24px;
  backdrop-filter: blur(18px);
}

.topbar-inner,
.container,
.footer-inner,
.hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(200, 149, 110, 0.42);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.topnav a,
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.topnav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  background: rgba(200, 149, 110, 0.12);
  color: var(--accent);
  border: 1px solid rgba(200, 149, 110, 0.22);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 24px 70px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 149, 110, 0.28);
  background: rgba(200, 149, 110, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge {
  margin-bottom: 30px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.typewriter-wrap {
  margin-bottom: 38px;
}

.typewriter-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.tw-line {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  opacity: 0.3;
  transform: translateY(8px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.tw-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title,
.section-title,
.panel-title,
.hero-card h2,
.teaser-card h3,
.pricing-card h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-weight: 400;
}

.hero-title {
  max-width: 10.8ch;
  margin: 0 auto;
  font-size: clamp(3.6rem, 10vw, 6.4rem);
}

.hero-sub,
.section-sub,
.panel-text,
.hero-card-copy,
.teaser-card p,
.pricing-card p,
.side-copy,
.mock-world-panel p {
  color: var(--muted);
}

.hero-sub {
  max-width: 58ch;
  margin: 24px auto 0;
  font-size: clamp(1rem, 2vw, 1.08rem);
}

.hero-actions,
.pricing-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: var(--accent);
  color: #1d130d;
  box-shadow: 0 12px 30px rgba(200, 149, 110, 0.2);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero-preview-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 0.78fr;
  gap: 18px;
  margin-top: 58px;
  text-align: left;
}

.hero-card,
.feature-panel,
.teaser-card,
.showcase-card,
.pricing-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 320px;
  padding: 24px;
  border-radius: var(--radius-xl);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.hero-card.active,
.hero-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028));
}

.hero-card-head,
.showcase-head,
.teaser-card-head,
.mock-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tiny-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-card h2 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.hero-card-copy {
  margin: 14px 0 0;
  max-width: 38ch;
}

.choice-stack,
.mock-choice-list,
.panel-bullets,
.world-tags,
.stat-list,
.journal-meta {
  display: grid;
  gap: 10px;
}

.choice-stack {
  margin-top: 24px;
}

.choice-stack button,
.showcase-actions button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.choice-stack button:hover,
.showcase-actions button:hover {
  border-color: var(--border-strong);
  background: rgba(200, 149, 110, 0.08);
  transform: translateX(3px);
}

.chat-stack,
.mock-bubble-stream {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.chat-bubble {
  margin: 0;
  width: fit-content;
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
}

.chat-bubble.left {
  background: rgba(255, 255, 255, 0.08);
}

.chat-bubble.right {
  justify-self: end;
  background: rgba(200, 149, 110, 0.22);
}

.journal-bars {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.journal-bars span,
.teaser-animation-story span,
.teaser-animation-journal .bar {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  animation: pulseBar 2.8s ease-in-out infinite;
}

.journal-bars span:nth-child(2),
.teaser-animation-story span:nth-child(2),
.teaser-animation-journal .bar:nth-child(2) {
  width: 78%;
}

.journal-bars span:nth-child(3),
.teaser-animation-story span:nth-child(3),
.teaser-animation-journal .bar:nth-child(3) {
  width: 64%;
}

.journal-bars span:nth-child(4),
.teaser-animation-journal .bar:nth-child(4) {
  width: 86%;
}

.stat-list,
.journal-meta {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

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

.section {
  position: relative;
  z-index: 1;
  padding: 92px 24px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 620px;
}

.section-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.section-sub {
  max-width: 56ch;
  margin-top: 18px;
}

.section-feature-tabs {
  padding-top: 40px;
}

.feature-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.feature-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.feature-tab.is-active,
.feature-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.feature-panels {
  margin-top: 26px;
}

.feature-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.feature-panel.is-active {
  display: grid;
}

.panel-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.panel-text {
  margin-top: 14px;
}

.panel-bullets {
  margin-top: 22px;
}

.panel-bullets span,
.world-tags span,
.journal-meta span,
.mock-choice-list span {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.mock-panel {
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 80% 18%, var(--accent-violet), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-narration {
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(200, 149, 110, 0.08);
  border: 1px solid rgba(200, 149, 110, 0.14);
  color: rgba(244, 238, 230, 0.86);
  font-style: italic;
}

.mock-choice-list {
  margin-top: 18px;
}

.mock-world-panel h4 {
  margin: 18px 0 10px;
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.world-tags,
.journal-meta {
  margin-top: 18px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.teaser-card,
.showcase-card,
.pricing-card {
  padding: 24px;
  border-radius: 26px;
}

.teaser-card h3 {
  margin-top: 18px;
  font-size: 1.9rem;
}

.teaser-card p {
  margin-top: 10px;
}

.teaser-animation {
  position: relative;
  min-height: 120px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.teaser-animation-story span + span,
.teaser-animation-journal .bar + .bar {
  margin-top: 16px;
}

.teaser-animation-chat .bubble {
  position: absolute;
  height: 26px;
  border-radius: 999px;
}

.teaser-animation-chat .left {
  left: 18px;
  width: 56%;
  background: rgba(255, 255, 255, 0.12);
}

.teaser-animation-chat .right {
  right: 18px;
  width: 48%;
  background: rgba(200, 149, 110, 0.22);
}

.teaser-animation-chat .bubble:nth-child(1) {
  top: 18px;
  animation: floatIn 3s ease-in-out infinite;
}

.teaser-animation-chat .bubble:nth-child(2) {
  top: 52px;
  animation: floatIn 3s ease-in-out 0.45s infinite;
}

.teaser-animation-chat .bubble:nth-child(3) {
  top: 86px;
  animation: floatIn 3s ease-in-out 0.9s infinite;
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.78fr);
  gap: 18px;
}

.showcase-large {
  min-height: 360px;
}

.showcase-stack {
  display: grid;
  gap: 18px;
}

.showcase-quote {
  margin: 28px 0 0;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.showcase-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.showcase-card.glow {
  background:
    linear-gradient(180deg, rgba(200, 149, 110, 0.1), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.section-pricing {
  padding-bottom: 110px;
}

.pricing-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.pricing-card h3 {
  margin-top: 18px;
  font-size: 2rem;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 0 24px 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

@keyframes pulseBar {
  0%, 100% {
    opacity: 0.42;
    transform: scaleX(0.98);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes floatIn {
  0%, 100% {
    opacity: 0.36;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@media (max-width: 1100px) {
  .hero-preview-grid,
  .pricing-shell,
  .teaser-grid,
  .showcase-layout,
  .feature-panel {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding-inline: 16px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .topnav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .section,
  .footer {
    padding-inline: 16px;
  }

  .hero {
    padding-top: 100px;
  }

  .feature-tabs {
    width: 100%;
    flex-wrap: wrap;
  }

  .feature-tab {
    flex: 1 1 calc(50% - 6px);
  }

  .footer-inner {
    flex-direction: column;
  }
}
