@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #11110f;
  --ink-soft: #24231f;
  --bone: #fff8ec;
  --paper: #f3eadc;
  --paper-deep: #e4d8c8;
  --mint: #bdf4d6;
  --mint-deep: #82d9b1;
  --coral: #ff7868;
  --amber: #f4bd67;
  --blue: #9dc8ff;
  --line-dark: rgba(255, 248, 236, 0.2);
  --line-light: rgba(17, 17, 15, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body,
button,
input {
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.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;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(calc(100% - 32px), 1180px);
  height: 58px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 8px 8px 8px 14px;
  color: var(--bone);
  background: rgba(12, 12, 11, 0.58);
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 122px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 8px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 248, 236, 0.8);
}

.nav-links a:hover {
  color: var(--bone);
}

.header-cta,
.primary-btn,
.secondary-btn,
.chat-form button,
.email-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 112px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.header-cta,
.primary-btn,
.chat-form button,
.email-row button {
  color: var(--ink);
  background: var(--mint);
}

.secondary-btn {
  color: var(--bone);
  background: rgba(255, 248, 236, 0.13);
  border: 1px solid rgba(255, 248, 236, 0.28);
}

.hero {
  position: relative;
  min-height: 94vh;
  padding: 128px 24px 46px;
  color: var(--bone);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("./assets/barkley-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.92) 0%, rgba(8, 8, 7, 0.68) 38%, rgba(8, 8, 7, 0.18) 72%),
    linear-gradient(0deg, rgba(8, 8, 7, 0.82) 0%, rgba(8, 8, 7, 0) 48%),
    radial-gradient(circle at 24% 20%, rgba(189, 244, 214, 0.16), transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin-left: max(0px, calc((100vw - 1180px) / 2));
  padding-bottom: 28px;
}

.eyebrow,
.section-kicker,
.mini-label,
.demo-status {
  margin: 0;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--mint);
}

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

h1,
h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

h1 {
  max-width: 760px;
  margin: 14px 0 22px;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.92;
}

h1 em {
  font-style: italic;
  color: var(--mint);
}

.hero-copy {
  width: min(600px, 100%);
  margin-bottom: 24px;
  color: rgba(255, 248, 236, 0.82);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.os-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.os-strip span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 248, 236, 0.22);
  border-radius: 8px;
  color: rgba(255, 248, 236, 0.82);
  background: rgba(255, 248, 236, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.desktop-demo {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(255, 248, 236, 0.2);
  border-radius: 8px;
  background: rgba(15, 16, 14, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.demo-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  color: rgba(255, 248, 236, 0.58);
}

.demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.3);
}

.demo-dot:first-child {
  background: var(--coral);
}

.demo-dot:nth-child(2) {
  background: var(--amber);
}

.demo-dot:nth-child(3) {
  background: var(--mint);
}

.demo-status {
  margin-left: auto;
  font-size: 11px;
}

.scenario-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.scenario-tab {
  height: 42px;
  min-width: 0;
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 8px;
  color: rgba(255, 248, 236, 0.72);
  background: rgba(255, 248, 236, 0.08);
  font-size: 14px;
  font-weight: 800;
}

.scenario-tab.is-active {
  color: var(--ink);
  background: var(--mint);
  border-color: transparent;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.62fr);
  gap: 12px;
}

.screen-state,
.pet-panel {
  min-height: 288px;
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.08);
}

.screen-state {
  position: relative;
  padding: 20px;
  overflow: hidden;
}

.screen-state::before {
  content: "";
  position: absolute;
  inset: 58px 18px 18px;
  border: 1px solid rgba(255, 248, 236, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(189, 244, 214, 0.1), transparent 46%),
    repeating-linear-gradient(0deg, rgba(255, 248, 236, 0.05) 0 1px, transparent 1px 30px);
}

.screen-state .mini-label {
  position: relative;
  z-index: 1;
  color: var(--mint);
}

.state-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.state-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 248, 236, 0.13);
  border-radius: 8px;
  background: rgba(12, 12, 11, 0.56);
}

.state-item strong {
  color: var(--bone);
  font-size: 13px;
}

.state-item span {
  color: rgba(255, 248, 236, 0.68);
  font-size: 13px;
  font-weight: 700;
}

.pet-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 14px;
}

.pet-head {
  position: relative;
  width: 68px;
  height: 58px;
  margin: 0 auto;
  border: 1px solid rgba(255, 248, 236, 0.3);
  border-radius: 50% 50% 46% 46%;
  background: var(--paper);
  box-shadow: 0 0 0 5px rgba(189, 244, 214, 0.12);
}

.pet-head .ear {
  position: absolute;
  top: 4px;
  width: 19px;
  height: 28px;
  border-radius: 50% 50% 60% 60%;
  background: #d8cbbb;
}

.pet-head .ear.left {
  left: -10px;
  transform: rotate(-18deg);
}

.pet-head .ear.right {
  right: -10px;
  transform: rotate(18deg);
}

.pet-head .eye {
  position: absolute;
  top: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.pet-head .eye.left {
  left: 23px;
}

.pet-head .eye.right {
  right: 23px;
}

.pet-head .snout {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 18px;
  height: 13px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--ink-soft);
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 142px;
}

.bubble {
  max-width: 92%;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.bubble.user {
  justify-self: end;
  color: var(--ink);
  background: var(--mint);
}

.bubble.pet {
  color: rgba(255, 248, 236, 0.88);
  background: rgba(255, 248, 236, 0.12);
  border: 1px solid rgba(255, 248, 236, 0.14);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-form input,
.email-row input {
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(255, 248, 236, 0.22);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--bone);
  background: rgba(12, 12, 11, 0.62);
  outline: 0;
  font-size: 14px;
  font-weight: 700;
}

.chat-form input:focus,
.email-row input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(189, 244, 214, 0.18);
}

.section {
  padding: 96px 24px;
}

.intro-band {
  color: var(--ink);
  background: var(--paper);
}

.section-kicker {
  color: #6c5944;
}

.intro-grid,
.section-heading,
.privacy,
.beta-panel,
.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 0.74fr);
  gap: 48px;
  align-items: end;
}

.intro-grid h2,
.section-heading h2,
.privacy h2,
.beta h2 {
  margin: 8px 0 0;
  font-size: clamp(34px, 5.5vw, 66px);
  line-height: 1;
}

.intro-grid p,
.privacy-copy p,
.beta-panel p {
  margin: 0;
  font-size: 18px;
  line-height: 1.62;
  font-weight: 600;
  color: rgba(17, 17, 15, 0.7);
}

.moments {
  color: var(--bone);
  background: #10100e;
}

.moments .section-kicker,
.modes .section-kicker {
  color: var(--mint);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.5fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading.compact {
  display: block;
  max-width: 740px;
}

.moment-list {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.moment-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 248, 236, 0.15);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.07);
}

.moment-row h3 {
  margin: 6px 0 8px;
  color: var(--bone);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.moment-row p:not(.mini-label) {
  margin: 0;
  color: rgba(255, 248, 236, 0.68);
  font-weight: 600;
  line-height: 1.55;
}

.moment-row .mini-label {
  color: var(--mint);
}

.moment-visual {
  position: relative;
  min-height: 160px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(189, 244, 214, 0.24), rgba(255, 248, 236, 0.04)),
    #171714;
  overflow: hidden;
}

.window-pill,
.nudge-line,
.calendar-block,
.pulse-ring,
.mail-stack {
  position: absolute;
  display: block;
  border-radius: 8px;
}

.window-pill {
  left: 22px;
  width: 62%;
  height: 20px;
  background: rgba(255, 248, 236, 0.22);
}

.window-pill.active {
  top: 28px;
  background: var(--mint);
}

.window-pill:not(.active) {
  top: 66px;
}

.window-pill.short {
  top: 104px;
  width: 42%;
}

.nudge-line {
  right: 22px;
  bottom: 28px;
  width: 44%;
  height: 38px;
  background: rgba(12, 12, 11, 0.6);
  border: 1px solid rgba(255, 248, 236, 0.18);
}

.moment-visual.coral {
  background:
    linear-gradient(135deg, rgba(255, 120, 104, 0.28), rgba(244, 189, 103, 0.1)),
    #171714;
}

.calendar-block {
  left: 28px;
  top: 32px;
  width: 54%;
  height: 42px;
  background: rgba(255, 248, 236, 0.24);
}

.calendar-block.small {
  top: 88px;
  width: 34%;
  background: var(--coral);
}

.pulse-ring {
  right: 36px;
  top: 52px;
  width: 56px;
  height: 56px;
  border: 12px solid rgba(189, 244, 214, 0.22);
  border-radius: 50%;
}

.moment-visual.amber {
  background:
    linear-gradient(135deg, rgba(244, 189, 103, 0.32), rgba(157, 200, 255, 0.12)),
    #171714;
}

.mail-stack {
  left: 24px;
  right: 24px;
  height: 38px;
  background: rgba(255, 248, 236, 0.18);
  border: 1px solid rgba(255, 248, 236, 0.12);
}

.mail-stack.one {
  top: 32px;
}

.mail-stack.two {
  top: 66px;
  left: 44px;
  background: rgba(189, 244, 214, 0.22);
}

.mail-stack.three {
  top: 100px;
  left: 64px;
  background: rgba(255, 120, 104, 0.22);
}

.modes {
  background: #fbf2e5;
}

.mode-grid {
  width: min(1180px, 100%);
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mode {
  min-height: 300px;
  padding: 18px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fffaf0;
}

.mode h3 {
  margin: 22px 0 8px;
  font-size: 21px;
}

.mode p {
  margin: 0;
  color: rgba(17, 17, 15, 0.68);
  line-height: 1.55;
  font-weight: 600;
}

.mode-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: var(--ink);
  overflow: hidden;
}

.waveform {
  gap: 8px;
}

.waveform span {
  width: 12px;
  border-radius: 8px;
  background: var(--mint);
}

.waveform span:nth-child(1) {
  height: 42px;
}

.waveform span:nth-child(2) {
  height: 78px;
}

.waveform span:nth-child(3) {
  height: 112px;
  background: var(--coral);
}

.waveform span:nth-child(4) {
  height: 70px;
}

.waveform span:nth-child(5) {
  height: 34px;
}

.focus-map {
  display: grid;
  grid-template-columns: repeat(2, 62px);
  gap: 10px;
}

.focus-map span {
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.18);
}

.focus-map span:first-child {
  background: var(--mint);
}

.companion span {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 -6px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.companion span:nth-child(2) {
  background: var(--mint);
}

.quiet {
  gap: 12px;
}

.quiet span {
  width: 56px;
  height: 88px;
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.16);
}

.quiet span:nth-child(2) {
  height: 52px;
  background: var(--blue);
}

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.privacy-copy p {
  margin-top: 18px;
}

.permission-matrix {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #fffaf0;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: var(--paper);
}

.permission-row span {
  color: rgba(17, 17, 15, 0.6);
  font-weight: 800;
}

.permission-row strong {
  font-size: 18px;
}

.beta {
  color: var(--bone);
  background: var(--ink);
}

.beta .section-kicker {
  color: var(--amber);
}

.beta-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.55fr);
  gap: 42px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 120, 104, 0.18), transparent 28%),
    radial-gradient(circle at 16% 74%, rgba(189, 244, 214, 0.14), transparent 26%),
    #161613;
}

.beta-panel p {
  margin-top: 18px;
  color: rgba(255, 248, 236, 0.7);
}

.beta-form {
  display: grid;
  gap: 12px;
}

.platform-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.platform-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 248, 236, 0.18);
  border-radius: 8px;
  color: rgba(255, 248, 236, 0.82);
  background: rgba(255, 248, 236, 0.08);
  font-weight: 800;
}

.platform-choice input {
  accent-color: var(--mint);
}

.email-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 248, 236, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 24px 40px;
  color: rgba(17, 17, 15, 0.58);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 112px 16px 36px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 8, 7, 0.72) 0%, rgba(8, 8, 7, 0.54) 34%, rgba(8, 8, 7, 0.9) 74%),
      linear-gradient(90deg, rgba(8, 8, 7, 0.8), rgba(8, 8, 7, 0.22));
  }

  .hero-content {
    margin-left: 0;
  }

  .desktop-demo {
    padding: 10px;
  }

  .scenario-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-grid,
  .intro-grid,
  .section-heading,
  .privacy,
  .beta-panel {
    grid-template-columns: 1fr;
  }

  .mode-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    height: 54px;
  }

  .brand {
    min-width: 0;
  }

  .header-cta {
    min-width: 94px;
    padding: 0 12px;
  }

  .hero {
    padding-top: 92px;
  }

  h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .hero-actions,
  .os-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    min-width: 0;
  }

  .demo-status {
    display: none;
  }

  .scenario-tab {
    font-size: 13px;
  }

  .screen-state,
  .pet-panel {
    min-height: 250px;
  }

  .state-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .chat-form,
  .email-row,
  .platform-choice,
  .moment-row,
  .mode-grid,
  .permission-row {
    grid-template-columns: 1fr;
  }

  .chat-form button,
  .email-row button {
    width: 100%;
  }

  .section {
    padding: 58px 16px;
  }

  .moment-row {
    padding: 14px;
  }

  .mode {
    min-height: 260px;
  }

  .site-footer {
    flex-direction: column;
    padding-inline: 16px;
  }
}
