:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #5d6675;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --line: #d8deea;
  --green: #1c8f6a;
  --green-dark: #0f614b;
  --coral: #e6634f;
  --gold: #f1b949;
  --blue: #2f65d8;
  --shadow: 0 22px 55px rgba(23, 33, 48, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(247, 248, 251, .88);
  border-bottom: 1px solid rgba(216, 222, 234, .8);
  backdrop-filter: blur(14px);
}

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

.brand {
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-size: 17px;
}

nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .8fr);
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
  min-height: calc(100vh - 75px);
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 76px) clamp(38px, 7vw, 70px);
  background:
    linear-gradient(135deg, rgba(28, 143, 106, .14), transparent 38%),
    linear-gradient(315deg, rgba(230, 99, 79, .11), transparent 42%),
    #f7f8fb;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.5vw, 82px);
  line-height: .97;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 18px;
}

.button,
button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: var(--ink);
  color: #ffffff;
}

.secondary {
  background: #ffffff;
  border-color: var(--line);
}

.large {
  min-height: 56px;
  padding-inline: 22px;
}

.beta-note {
  max-width: 650px;
  margin: 0;
  padding: 14px 16px;
  border-left: 5px solid var(--coral);
  background: #ffffff;
  color: #303948;
}

.phone-preview {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(360px, 86vw);
  aspect-ratio: 9 / 18.6;
  padding: 14px;
  border: 1px solid #202a36;
  border-radius: 34px;
  background: #111927;
  box-shadow: var(--shadow);
}

.camera-dot {
  width: 54px;
  height: 6px;
  margin: 2px auto 12px;
  border-radius: 99px;
  background: #2a3545;
}

.screen {
  display: grid;
  grid-template-rows: 1fr 190px 150px;
  height: calc(100% - 20px);
  overflow: hidden;
  border-radius: 24px;
  background: #fbfcff;
}

.message-area {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
}

.bubble {
  width: fit-content;
  max-width: 92%;
  padding: 11px 13px;
  border-radius: 8px;
  background: #eaf2ff;
  font-weight: 700;
}

.bubble.muted {
  align-self: flex-end;
  background: #e9f8f1;
  color: var(--green-dark);
}

.face-scan {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f1f4f8;
}

.face {
  position: relative;
  width: 128px;
  height: 128px;
  border: 7px solid var(--gold);
  border-radius: 50%;
  background: #ffe69b;
}

.eye {
  position: absolute;
  top: 43px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
}

.left {
  left: 34px;
}

.right {
  right: 34px;
}

.mouth {
  position: absolute;
  left: 37px;
  bottom: 34px;
  width: 50px;
  height: 24px;
  border-bottom: 7px solid var(--ink);
  border-radius: 0 0 50px 50px;
}

.scan-line {
  position: absolute;
  inset-inline: 26px;
  top: 26px;
  height: 3px;
  background: var(--blue);
  box-shadow: 0 0 24px rgba(47, 101, 216, .7);
  animation: scan 2.5s ease-in-out infinite;
}

.keyboard {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 16px;
  background: #e4e9f1;
}

.keyboard span {
  min-height: 28px;
  border-radius: 7px;
  background: #ffffff;
}

.keyboard .emoji-key {
  display: grid;
  place-items: center;
  background: var(--green);
  font-size: 22px;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.strip div {
  display: grid;
  gap: 6px;
  padding: 28px clamp(20px, 4vw, 46px);
  background: #ffffff;
}

.strip strong {
  font-size: 18px;
}

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

.demo-section,
.download-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 76px);
}

.section-copy,
.download-copy {
  max-width: 560px;
}

.section-copy p,
.download-copy p {
  color: var(--muted);
  font-size: 18px;
}

.demo-tool {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(23, 33, 48, .08);
}

label {
  font-weight: 800;
}

textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

button {
  background: var(--green);
  color: #ffffff;
}

#detectedMood {
  color: var(--muted);
  font-weight: 750;
}

.download-section {
  background: #ffffff;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(20px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(138px);
  }
}

@media (max-width: 860px) {
  .hero,
  .demo-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .phone-preview {
    justify-content: flex-start;
  }

  .strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  h1 {
    font-size: 40px;
  }

  .actions,
  .demo-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  button {
    width: 100%;
  }
}
