:root {
  --bg: #f6efe5;
  --bg-strong: #f0dfca;
  --surface: rgba(255, 251, 246, 0.78);
  --surface-strong: #fffaf2;
  --ink: #1c1b1a;
  --muted: #5f5a54;
  --line: rgba(28, 27, 26, 0.12);
  --accent: #f15b2a;
  --accent-soft: #ffd3b8;
  --teal: #0f7c78;
  --shadow: 0 24px 60px rgba(90, 53, 22, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(241, 91, 42, 0.16), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(15, 124, 120, 0.16), transparent 22%),
    linear-gradient(180deg, #fcf6ee 0%, #f6efe5 45%, #f0e7da 100%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 160px 160px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.7), rgba(255, 248, 239, 0.35));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(241, 91, 42, 0.24), transparent 68%);
}

.topbar,
.hero-grid,
.feature-strip,
.story-band {
  position: relative;
  z-index: 1;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ff8853);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.topbar-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar-links a {
  color: var(--muted);
  text-decoration: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.eyebrow,
.feature-kicker,
.device-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--teal);
}

.hero-copy h1,
.story-copy h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3.8rem, 8vw, 6.8rem);
}

.lead {
  max-width: 56ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.hero-actions button,
.channel,
.composer button {
  font: inherit;
}

.primary-action,
.composer button {
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.primary-action,
.secondary-action,
.composer button {
  padding: 14px 20px;
  border-radius: 999px;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.primary-action:hover,
.secondary-action:hover,
.composer button:hover,
.channel:hover {
  transform: translateY(-1px);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  cursor: pointer;
}

.hero-stats {
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
  flex-wrap: wrap;
}

.hero-stats li {
  min-width: 132px;
  padding: 16px 18px;
  border: 1px solid rgba(28, 27, 26, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(10px);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 1.2rem;
}

.hero-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.device-card,
.feature-strip article,
.story-card {
  border: 1px solid rgba(28, 27, 26, 0.08);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.device-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  transform: rotate(1.2deg);
}

.device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.device-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.radius-pill {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.85rem;
}

.chat-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 520px;
  border: 1px solid rgba(28, 27, 26, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.56);
}

.channels {
  padding: 16px;
  border-right: 1px solid rgba(28, 27, 26, 0.08);
  background: linear-gradient(180deg, rgba(255, 245, 234, 0.9), rgba(255, 255, 255, 0.4));
}

.status-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--surface-strong);
}

.status-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #32b66d;
  box-shadow: 0 0 0 5px rgba(50, 182, 109, 0.12);
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.channel.active {
  background: var(--ink);
  color: #fff;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.message-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  flex: 1;
  overflow: auto;
}

.message {
  padding: 14px 14px 12px;
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(28, 27, 26, 0.06);
  animation: rise 420ms ease both;
}

.message.highlight {
  background: linear-gradient(135deg, rgba(255, 211, 184, 0.92), rgba(255, 255, 255, 0.9));
}

.message-handle {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message p {
  margin: 0;
  line-height: 1.55;
}

.message time {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid rgba(28, 27, 26, 0.08);
  background: rgba(255, 250, 243, 0.92);
}

.composer input {
  width: 100%;
  border: 1px solid rgba(28, 27, 26, 0.1);
  border-radius: 999px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
}

.composer input:focus-visible,
.hero-actions button:focus-visible,
.channel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.feature-strip article,
.story-card {
  padding: 24px;
  border-radius: 26px;
}

.feature-strip h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.feature-strip p:last-child,
.story-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.story-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: end;
  margin-top: 24px;
  padding: 24px 4px 0;
}

.story-copy h2 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
}

.story-card {
  background: linear-gradient(135deg, rgba(15, 124, 120, 0.1), rgba(255, 255, 255, 0.72));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .story-band,
  .feature-strip,
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .device-card {
    transform: none;
  }

  .channels {
    border-right: 0;
    border-bottom: 1px solid rgba(28, 27, 26, 0.08);
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero {
    padding: 16px;
    border-radius: 28px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

  .lead {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-stats li {
    flex: 1 1 100%;
  }

  .device-header,
  .composer {
    grid-template-columns: 1fr;
  }

  .device-header {
    display: grid;
  }

  .composer button {
    width: 100%;
  }
}
