@import url("https://fonts.googleapis.com/css2?family=Inconsolata:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap");

:root {
  --bg: #f8efe7;
  --card: rgba(255, 252, 248, 0.92);
  --line: rgba(214, 196, 185, 0.56);
  --text: #241d1a;
  --muted: #6f6661;
  --accent: #de5c35;
  --accent-dark: #9f3113;
  --accent-soft: #ffe0d7;
  --secondary: #4478d8;
  --secondary-soft: rgba(68, 120, 216, 0.12);
  --surface: rgba(255, 251, 246, 0.8);
  --surface-strong: rgba(255, 247, 239, 0.92);
  --shadow: 0 24px 60px rgba(61, 39, 22, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(222, 92, 53, 0.16), transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(109, 148, 255, 0.14), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(222, 92, 53, 0.08), transparent 36%),
    linear-gradient(180deg, #fff7ef 0%, #f7ecdf 48%, #efe4d7 100%);
}

.page-shell {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px;
  isolation: isolate;
}

.hero,
.panel,
.message-card,
.hero-panel {
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.94) 0%, rgba(255, 246, 239, 0.88) 100%);
  border: 1px solid rgba(214, 196, 185, 0.62);
  border-radius: var(--radius);
  box-shadow:
    0 36px 90px rgba(76, 49, 27, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 22px;
  padding: 28px;
  margin-bottom: 24px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(222, 92, 53, 0.22), rgba(222, 92, 53, 0));
  pointer-events: none;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.9;
}

.hero-title {
  display: grid;
  gap: 4px;
  letter-spacing: -0.05em;
  font-family: "Inconsolata", monospace;
  font-weight: 700;
}

.hero-title span:last-child {
  font-weight: 400;
  opacity: 0.72;
}

.eyebrow {
  margin: 0 0 10px;
  color: #ca613f;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: "Inconsolata", monospace;
}

.lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.signal-card {
  padding: 16px 16px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 244, 235, 0.88));
  border: 1px solid rgba(214, 196, 185, 0.58);
  box-shadow:
    0 18px 26px rgba(76, 49, 27, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.signal-label {
  display: block;
  margin-bottom: 8px;
  color: #9d8b7d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Inconsolata", monospace;
}

.signal-card strong {
  font-size: 0.98rem;
  letter-spacing: -0.03em;
  font-family: "Inconsolata", monospace;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.secondary-button,
.copy-button {
  border: 1px solid rgba(214, 196, 185, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  padding: 12px 18px;
  cursor: pointer;
  font: inherit;
  backdrop-filter: blur(10px);
}

.status-pill,
.tone-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 154, 119, 0.2);
  color: #a84c31;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(140, 181, 255, 0.18), transparent 26%),
    radial-gradient(circle at 10% 20%, rgba(255, 154, 119, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.98) 0%, rgba(251, 241, 232, 0.94) 100%);
  overflow: hidden;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  line-height: 2;
  color: var(--muted);
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: -2;
}

.ambient-one {
  top: -40px;
  right: 80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 120, 84, 0.26), rgba(255, 120, 84, 0));
}

.ambient-two {
  top: 280px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(140, 181, 255, 0.18), rgba(140, 181, 255, 0));
}

.ambient-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(202, 176, 156, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202, 176, 156, 0.18) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
  pointer-events: none;
}

.ambient-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 18%, rgba(255,255,255,0.5), transparent 20%),
    radial-gradient(circle at 78% 12%, rgba(255,255,255,0.38), transparent 18%);
  pointer-events: none;
}

.preview-stage {
  position: relative;
  perspective: 1400px;
  min-height: 420px;
}

.orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(202, 176, 156, 0.38);
  pointer-events: none;
}

.orbit-one {
  inset: 20px 12px 36px;
  transform: rotate(-18deg);
}

.orbit-two {
  inset: 52px 30px 66px;
  transform: rotate(11deg);
}

.phone-preview {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 280px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(253, 248, 243, 0.98), rgba(247, 236, 226, 0.98)),
    radial-gradient(circle at top right, rgba(140, 181, 255, 0.2), transparent 34%);
  transform: rotateY(-22deg) rotateX(11deg) rotateZ(-3deg);
  transform-style: preserve-3d;
  box-shadow:
    0 44px 80px rgba(76, 49, 27, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(214, 196, 185, 0.58);
  margin: 58px 34px 34px 90px;
  transition: transform 220ms ease;
}

.phone-top {
  width: 88px;
  height: 8px;
  border-radius: 999px;
  background: rgba(74, 59, 52, 0.18);
  justify-self: center;
}

.chat-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  transform: translateZ(16px);
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8cb5ff 0%, #4f78d0 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 20px 24px rgba(79, 120, 208, 0.25);
}

.chat-bubble {
  padding: 16px;
  border-radius: 22px 22px 22px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 244, 238, 0.98));
  border: 1px solid rgba(214, 196, 185, 0.52);
  box-shadow: 0 26px 32px rgba(76, 49, 27, 0.12);
}

.preview-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.preview-meta span,
.mini-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(68, 120, 216, 0.1);
  color: #3f6bc0;
  font-size: 0.8rem;
  font-weight: 700;
}

.chat-bubble p {
  margin: 0;
  color: #5e5651;
  line-height: 1.7;
}

.floating-stat {
  position: absolute;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(214, 196, 185, 0.58);
  box-shadow:
    0 24px 42px rgba(76, 49, 27, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  z-index: 2;
}

.floating-stat span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "Inconsolata", monospace;
}

.floating-stat strong {
  font-size: 1.2rem;
  color: var(--text);
  font-family: "Inconsolata", monospace;
}

.stat-one {
  top: 12px;
  right: 0;
  transform: rotate(7deg) translateZ(40px);
}

.stat-two {
  bottom: 6px;
  left: 12px;
  transform: rotate(-8deg) translateZ(26px);
}

.message-slab {
  position: absolute;
  width: 200px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.86), rgba(250, 239, 231, 0.88));
  border: 1px solid rgba(214, 196, 185, 0.56);
  box-shadow: 0 26px 42px rgba(76, 49, 27, 0.12);
  backdrop-filter: blur(10px);
}

.message-slab p {
  margin: 10px 0 0;
  color: #665d58;
  line-height: 1.5;
}

.slab-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 154, 119, 0.18);
  color: #a45137;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: "Inconsolata", monospace;
}

.slab-back {
  top: 94px;
  left: 4px;
  transform: rotate(-12deg);
}

.slab-front {
  right: 18px;
  bottom: 92px;
  transform: rotate(10deg);
}

.app-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 22px;
}

.panel {
  padding: 24px;
}

.section-heading h2,
.message-card h3,
.swipe-card p,
.demo-steps {
  letter-spacing: -0.03em;
}

.persona-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.persona-chip,
.remix-button {
  border: 1px solid rgba(214, 196, 185, 0.58);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 248, 244, 0.94) 0%, rgba(255, 236, 224, 0.94) 100%);
  color: #b05a3d;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 16px 24px rgba(76, 49, 27, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.persona-chip:hover,
.remix-button:hover,
.secondary-button:hover,
.copy-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 28px rgba(35, 27, 26, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.6rem;
  font-family: "Inconsolata", monospace;
  font-weight: 700;
}

.generator-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.generator-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(214, 196, 185, 0.58);
  background: rgba(255, 255, 255, 0.7);
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.84),
    0 8px 16px rgba(76, 49, 27, 0.04);
}

input::placeholder,
textarea::placeholder {
  color: #948780;
}

textarea {
  resize: vertical;
}

.audit-panel {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.94) 0%, rgba(236, 244, 252, 0.94) 100%);
  border: 1px solid rgba(140, 181, 255, 0.2);
  margin: 18px 0 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 30px rgba(23, 50, 77, 0.06);
}

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

.audit-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}

.audit-list span {
  color: var(--muted);
}

.audit-list strong {
  text-align: right;
}

.message-grid {
  display: grid;
  gap: 16px;
}

.message-card {
  padding: 20px;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.message-card::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -8%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(222, 92, 53, 0.12), rgba(222, 92, 53, 0));
  pointer-events: none;
}

.card-header,
.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.card-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: "Inconsolata", monospace;
  font-weight: 700;
}

.message-body {
  margin: 16px 0 18px;
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--muted);
  font-family: "Inconsolata", monospace;
  font-size: 1rem;
}

.message-why {
  margin: 0 0 14px;
  color: #312825;
  font-size: 0.92rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.remix-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.remix-button {
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.98) 0%, rgba(232, 240, 255, 0.98) 100%);
  color: #4a74c6;
}

.card-footer {
  align-items: center;
  color: var(--muted);
  font-family: "Inconsolata", monospace;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 22px;
  margin-top: 22px;
}

.swipe-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.swipe-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 249, 243, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(214, 196, 185, 0.56);
  box-shadow:
    0 16px 28px rgba(35, 27, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.swipe-card p {
  margin: 10px 0 0;
  color: #665d58;
  line-height: 1.6;
  font-family: "Inconsolata", monospace;
}

.demo-steps {
  margin: 18px 0 0;
  padding-left: 22px;
  color: #665d58;
  line-height: 1.9;
  font-family: "Inconsolata", monospace;
}

.floaty {
  animation: floaty 7s ease-in-out infinite;
}

.floaty-delayed {
  animation: floaty 8.5s ease-in-out infinite;
  animation-delay: -1.4s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.4deg);
  }
}

.panel-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.34), transparent 28%),
    linear-gradient(315deg, rgba(68,120,216,0.08), transparent 30%);
  pointer-events: none;
}

.panel-3d:hover {
  box-shadow:
    0 44px 100px rgba(76, 49, 27, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (max-width: 1100px) {
  .hero,
  .app-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    transform: none;
    margin: 40px 10px 24px;
  }

  .message-slab,
  .floating-stat {
    position: relative;
    inset: auto;
    transform: none;
    margin-bottom: 12px;
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding: 16px;
  }

  .hero,
  .panel,
  .message-card {
    padding: 18px;
  }

  .card-header,
  .card-footer,
  .audit-list li,
  .split-fields {
    flex-direction: column;
    align-items: flex-start;
  }

  .split-fields {
    grid-template-columns: 1fr;
  }
}
