:root {
  --bg: #f7f4ee;
  --card: rgba(255, 255, 255, 0.78);
  --card-strong: rgba(255, 255, 255, 0.92);
  --ink: #19252f;
  --muted: #5f6e78;
  --line: rgba(25, 37, 47, 0.08);
  --accent: #ef7f66;
  --accent-deep: #cc5f4c;
  --teal: #2d6771;
  --shadow: 0 22px 60px rgba(32, 42, 58, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 127, 102, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(45, 103, 113, 0.14), transparent 30%),
    var(--bg);
}

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

button {
  font: inherit;
  cursor: pointer;
}

.page-shell {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 120px;
}

.ambient {
  position: absolute;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
}

.ambient-one {
  top: 40px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: rgba(239, 127, 102, 0.22);
}

.ambient-two {
  left: -70px;
  bottom: 120px;
  width: 240px;
  height: 240px;
  background: rgba(45, 103, 113, 0.18);
}

.topbar,
.hero-grid,
.stats-grid {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(140deg, #243844, #476976);
  color: #fff;
  font-weight: 800;
}

.eyebrow,
.brand-name,
.badge,
.mini-label,
.preview-label {
  margin: 0;
}

.eyebrow,
.mini-label,
.preview-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
}

.topbar-chat,
.ghost-cta,
.preview-panel button,
.preview-book {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.topbar-chat,
.primary-cta,
.secondary-cta,
.ghost-cta,
.preview-panel button,
.preview-book {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.topbar-chat:hover,
.primary-cta:hover,
.secondary-cta:hover,
.ghost-cta:hover,
.preview-panel button:hover,
.preview-book:hover,
.floating-chat:hover {
  transform: translateY(-1px);
}

.hero-grid {
  display: grid;
  gap: 20px;
}

.card,
.mini-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-preview {
  padding: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(45, 103, 113, 0.1);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-copy h2 {
  margin: 18px 0 14px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.1rem, 8vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy h2 span {
  color: var(--teal);
}

.lede {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 26px 0;
}

.primary-cta {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 18px 36px rgba(239, 127, 102, 0.28);
}

.ghost-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 103, 113, 0.12);
  background: rgba(45, 103, 113, 0.08);
  color: var(--teal);
  font-weight: 700;
}

.value-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.value-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.55;
}

.value-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.phone-frame {
  max-width: 360px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(180deg, #24343f, #10191f);
  color: #fefbf6;
  box-shadow: 0 30px 70px rgba(16, 25, 31, 0.32);
}

.phone-topbar,
.preview-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-topbar {
  padding: 4px 4px 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #71d8c9;
  box-shadow: 0 0 14px rgba(113, 216, 201, 0.65);
}

.status-copy {
  margin-left: auto;
}

.chat-preview {
  display: grid;
  gap: 10px;
}

.bubble {
  max-width: 90%;
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.bubble-agent {
  background: rgba(255, 255, 255, 0.1);
  border-top-left-radius: 8px;
}

.bubble-user {
  margin-left: auto;
  background: linear-gradient(135deg, var(--accent), #f29b7c);
  color: #fff;
  border-top-right-radius: 8px;
}

.preview-panel {
  gap: 18px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.preview-actions {
  display: grid;
  gap: 10px;
}

.preview-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.preview-panel button {
  flex-shrink: 0;
  background: #fff;
}

.preview-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.stats-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mini-card {
  padding: 20px;
}

.mini-card h3 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
}

.mini-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.floating-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #243844, #456774);
  color: #fff;
  box-shadow: 0 24px 52px rgba(22, 35, 46, 0.28);
}

.chat-icon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 5px;
  position: relative;
}

.chat-icon::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: skewY(20deg);
}

.bot-fallback {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 90px;
  z-index: 21;
  max-width: 420px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid rgba(25, 37, 47, 0.1);
  border-radius: 22px;
  background: var(--card-strong);
  box-shadow: var(--shadow);
}

.fallback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fallback-header p,
.bot-fallback p {
  margin: 0;
}

.fallback-header button {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
}

.bot-fallback p + p {
  margin-top: 10px;
}

code {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(25, 37, 47, 0.06);
  font-size: 0.88em;
}

@media (min-width: 768px) {
  .page-shell {
    width: min(1160px, calc(100% - 48px));
    padding-top: 28px;
  }

  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    align-items: stretch;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
  }
}
