:root {
  --white: #ffffff;
  --black: #121111;
  --blue: #0884fe;
  --brand-blue: #3867dd;
  --grey-100: #f7f7f7;
  --grey-200: #ededed;
  --grey-300: #d9d9d9;
  --grey-600: #7a7a7a;
  --grey-700: #5a5a5a;
  --grey-900: #1f1f1f;
  --slate: #314158;
  --border: #cad5e2;
  --red: #eb4c4c;
  --orange: #ff8d28;
  --green: #27cd7f;

  --font-display: "Nohemi", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Neue Montreal", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-rounded: "SF Pro Rounded", ui-rounded, -apple-system, "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  cursor: url('../assets/cursor.png'), auto;
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  font-family: var(--font-body);
  color: var(--black);
  overflow-x: hidden;
  cursor: url('../assets/cursor.png'), auto;
}

button,
a {
  font: inherit;
  border: none;
  cursor: url('../assets/cursor.png'), pointer;
}

/* ---------- Hero wrapper (provides scroll runway for sticky hero) ---------- */

.hero-wrapper {
  position: relative;
  height: 200vh;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 1512px;
  margin: 0 auto;
  height: 100vh;
  overflow: hidden;
}

/* JS applies this class while the hero is pinned */
.hero.hero-pinned {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* When hero has finished its animation and is released */
.hero.hero-released {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* ---------- Nav bar ---------- */

.nav {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 100px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  justify-self: start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 35px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.48px;
  color: var(--brand-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 8px 28px;
  justify-self: center;
}

.nav-links a {
  font-size: 20px;
  line-height: 1;
  color: var(--grey-700);
  text-decoration: none;
  white-space: nowrap;
}

.nav>.btn {
  justify-self: end;
}

/* ---------- Buttons ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  color: var(--white);
  white-space: nowrap;
}

.btn-dark {
  background: var(--black);
}

.btn-primary {
  background: var(--blue);
}

.btn-icon {
  width: 17px;
  height: 20px;
}

/* ---------- Listening pill ---------- */

.listening-pill {
  position: absolute;
  z-index: 1;
  left: calc(40% + 23.2px);
  top: 50px;
  width: 267px;
  height: 48px;
  background: #1e1e1e;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  transform-origin: top center;
}

/* When expanding, pill rises above all hero content */
.listening-pill.pill-expanding {
  z-index: 10;
}

.listening-pill .pill-row {
  transition: opacity 0.3s ease;
}

.listening-pill.pill-expanding .pill-row {
  opacity: 0;
}

.listening-pill .pill-glow {
  transition: opacity 0.3s ease;
}

.listening-pill.pill-expanding .pill-glow {
  opacity: 0;
}

/* Expanded content — hidden by default, fades in */
.pill-expanded-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  padding: 40px 20px;
}

.listening-pill.pill-expanding .pill-expanded-content {
  opacity: 1;
  pointer-events: auto;
}

.pill-expanded-wave {
  width: 120px;
  height: auto;
}

.pill-expanded-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -1.4px;
  color: var(--white);
  text-align: center;
}

.pill-expanded-sub {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  max-width: 600px;
}

.pill-row {
  position: absolute;
  left: 11px;
  top: 16px;
  width: 230px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pill-label {
  font-size: 16px;
  line-height: 1.4;
  color: var(--white);
}

.pill-wave {
  width: 50px;
  height: 26px;
}

.pill-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.pill-glow--outer {
  left: 226px;
  top: 10px;
  width: 86px;
  height: 34px;
  background: var(--blue);
  filter: blur(20px);
}

.pill-glow--inner {
  left: 243px;
  top: 15px;
  width: 52px;
  height: 22px;
  background: #cde7ff;
  filter: blur(14px);
}

/* ---------- Hero content ---------- */

.hero-content {
  position: relative;
  z-index: 1;
  width: 728px;
  max-width: calc(100% - 40px);
  margin: 107px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.app-window {
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 70px;
  line-height: 1;
  letter-spacing: -1.4px;
  color: var(--black);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.4;
  color: var(--slate);
}

/* ---------- App window (hero asset) ---------- */

.app-window {
  position: relative;
  z-index: 1;
  width: 997px;
  max-width: calc(100% - 48px);
  margin: 53px auto 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 28px;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 40px;
  box-shadow:
    10px 0px 10px 0px rgba(8, 132, 254, 0.42),
    -10px -10px 10px 0px rgba(8, 132, 254, 0.42),
    -10px 10px 10px 0px rgba(8, 132, 254, 0.42);
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 3.5px;
  width: 31px;
  height: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-red {
  background: var(--red);
}

.dot-orange {
  background: var(--orange);
}

.dot-green {
  background: var(--green);
}

.window-name {
  font-size: 16px;
  line-height: 1;
  color: var(--black);
}

.titlebar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.window-status {
  font-size: 16px;
  line-height: 1.4;
  color: var(--black);
}

/* Blue waveform bars */

.wave {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 32px;
}

.wave span {
  width: 2px;
  border-radius: 23px;
  background: var(--blue);
}

.wave span:nth-child(1) {
  height: 20px;
}

.wave span:nth-child(2) {
  height: 8.874px;
  width: 2.315px;
}

.wave span:nth-child(3) {
  height: 8.874px;
  width: 2.315px;
}

.wave span:nth-child(4) {
  height: 20px;
}

.wave span:nth-child(5) {
  height: 8.874px;
  width: 2.315px;
}

.wave span:nth-child(6) {
  height: 20px;
}

.wave span:nth-child(7) {
  height: 20px;
}

.wave span:nth-child(8) {
  height: 8.874px;
  width: 2.315px;
}

.wave span:nth-child(9) {
  height: 8.874px;
  width: 2.315px;
}

.wave span:nth-child(10) {
  height: 32px;
}

.wave span:nth-child(11) {
  height: 22px;
}

.wave span:nth-child(12) {
  height: 8.874px;
  width: 2.315px;
}

.wave span:nth-child(13) {
  height: 32px;
  width: 3px;
}

.wave span:nth-child(14) {
  height: 22px;
}

/* Inner card */

.window-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 46px;
  padding: 20px;
  background: var(--grey-100);
  border: 1px solid var(--grey-300);
  border-radius: 20px;
}

.prompt {
  font-family: var(--font-rounded);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.4;
  color: var(--black);
  max-width: 688px;
}

.reading-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.reading-label {
  font-family: var(--font-rounded);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  color: var(--blue);
}

.input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 71px;
  width: 100%;
}

.hint {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hint-text {
  font-family: var(--font-rounded);
  font-size: 20px;
  line-height: 1.4;
  color: var(--black);
  white-space: nowrap;
}

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  border-radius: 5px;
  font-family: var(--font-rounded);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: var(--grey-700);
  white-space: nowrap;
}

.send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 57px;
  height: 55px;
  background: var(--blue);
  border-radius: 12px;
}

.send-btn img {
  width: 30px;
  height: 30px;
}

/* ---------- Features section ---------- */

.features {
  max-width: 1512px;
  margin: 0 auto;
  padding: 68px 97px 100px;
}

.features-inner {
  display: flex;
  flex-direction: column;
  gap: 57px;
}

.features-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 644px;
  max-width: 100%;
}

.features-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.96px;
  color: var(--black);
}

.features-subtitle {
  font-size: 14px;
  line-height: 1.4;
  color: var(--slate);
}

.feature-cards {
  display: flex;
  gap: 20px;
}

.feature-card {
  position: relative;
  flex: 1;
  height: 393px;
  background: var(--grey-100);
  border-radius: 32px;
  overflow: hidden;
}

.card-copy {
  position: absolute;
  left: 30px;
  top: 30px;
  width: 344px;
  max-width: calc(100% - 60px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.52px;
  color: var(--black);
}

.card-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey-600);
}

.card-art {
  position: absolute;
  pointer-events: none;
  object-fit: contain;
}

.card-art--eyes {
  left: 50%;
  top: 140px;
  transform: translateX(-50%);
  width: 250px;
  height: 250px;
}

.card-art--timeline {
  left: 50%;
  top: 120px;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
}

.card-art--doc {
  left: 50%;
  top: 140px;
  transform: translateX(-50%);
  width: 250px;
  height: 250px;
}

/* ---------- Shared section bits ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--blue);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.96px;
  color: var(--black);
}

.section-sub {
  font-size: 14px;
  line-height: 1.4;
  color: var(--slate);
}

/* ---------- Section 2: What Clicky does today ---------- */

.today {
  max-width: 1512px;
  margin: 0 auto;
  padding: 56px clamp(24px, 6.55vw, 99px) 40px;
}

.today-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 644px;
  max-width: 100%;
  margin-bottom: 57px;
}

.bento {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.bento-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 72%;
  min-width: 0;
}

.bento-row {
  display: flex;
  gap: 18px;
  min-width: 0;
}

.tile {
  position: relative;
  background: var(--grey-100);
  border-radius: 32px;
  overflow: hidden;
}

.tile-copy {
  position: absolute;
  left: 30px;
  top: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.tile-copy--center {
  align-items: flex-start;
}

.tile-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.48px;
  color: var(--black);
}

.tile-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey-600);
}

/* Email tile */
.tile-email {
  flex: 0 1 35.8%;
  min-width: 0;
  height: 329px;
}

.tile-email .tile-copy {
  left: 30px;
  right: 30px;
  width: auto;
  text-align: center;
  align-items: center;
}

.email-art {
  position: absolute;
  left: 0;
  top: 105px;
  width: 100%;
  height: calc(100% - 105px);
  object-fit: contain;
  z-index: 1;
}

.email-stack {
  position: absolute;
  left: 28px;
  top: 146px;
  width: 281px;
  max-width: calc(100% - 44px);
  z-index: 2;
}

.email-item {
  position: absolute;
  display: flex;
  gap: 7px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 7px;
  box-shadow: 0 8px 20px rgba(150, 150, 150, 0.12);
}

.email-item--3 {
  top: 0;
  left: 0;
  width: 281px;
  max-width: 100%;
  z-index: 3;
}

.email-item--3 .email-lines p {
  font-size: 12.15px;
}

.email-item--2 {
  top: 42px;
  left: 8px;
  width: 264px;
  max-width: calc(100% - 8px);
  z-index: 2;
}

.email-item--2 .email-lines p {
  font-size: 11.43px;
}

.email-item--1 {
  top: 83px;
  left: 16px;
  width: 250px;
  max-width: calc(100% - 16px);
  box-shadow: none;
  z-index: 1;
}

.email-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grey-100);
  flex-shrink: 0;
}

.email-icon img {
  width: 23px;
  height: 18px;
}

.email-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.email-lines p {
  font-family: var(--font-rounded);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.2;
  color: #1a1a1a;
}

.email-lines .bar {
  height: 10px;
  border-radius: 100px;
  background: var(--grey-100);
  max-width: 100%;
}

/* Agents tile */
.tile-agents {
  flex: 1 1 62.4%;
  min-width: 0;
  height: 322px;
}

.tile-agents .tile-copy {
  width: 275px;
  top: 22px;
}

.task-panel {
  position: absolute;
  left: 42px;
  right: 42px;
  top: 119px;
  background: #fff;
  border: 1.13px solid var(--grey-200);
  border-radius: 16px;
  padding: 12px 19px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

img.task-panel {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 95px;
  width: calc(100% - 40px);
  height: calc(100% - 105px);
  object-fit: contain;
  background: none;
  border: none;
  padding: 0;
}

.task-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-dots {
  display: flex;
  gap: 4px;
}

.task-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.task-dots span:nth-child(1) {
  background: var(--red);
}

.task-dots span:nth-child(2) {
  background: var(--orange);
}

.task-dots span:nth-child(3) {
  background: var(--green);
}

.task-brand {
  font-size: 14px;
  color: var(--grey-600);
}

.task-body {
  background: rgba(56, 103, 221, 0.04);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.task-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.task-status {
  font-size: 14px;
  color: var(--grey-600);
  white-space: pre;
}

.task-progress {
  width: 105px;
  height: 8px;
  background: var(--grey-200);
  border-radius: 100px;
  overflow: hidden;
}

.task-progress span {
  display: block;
  width: 62%;
  height: 100%;
  background: var(--blue);
  border-radius: 100px;
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--grey-600);
}

.checklist .check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 3.4px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
}

.checklist .spin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  color: var(--blue);
  font-size: 15px;
}

.checklist .box {
  width: 19px;
  height: 19px;
  border-radius: 3.4px;
  border: 1.13px solid var(--grey-200);
}

.checklist .todo {
  color: var(--grey-300);
}

/* Teach tile */
.tile-teach {
  flex: 1 1 62.4%;
  min-width: 0;
  height: 329px;
}

.tile-teach .tile-copy {
  width: 307px;
  left: 34px;
  top: 33px;
}

.teach-art {
  position: absolute;
  right: 20px;
  top: 96px;
  width: 310px;
  height: 250px;
}

img.teach-art {
  position: absolute;
  right: 15px;
  top: 80px;
  width: 320px;
  height: calc(100% - 95px);
  object-fit: contain;
}

.teach-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.app-tile {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 53px;
  background: #fff;
  border: 1px solid var(--grey-200);
  border-radius: 10px;
  box-shadow: 1px 3px 2px rgba(233, 231, 231, 0.15), 1px 1px 1px rgba(233, 231, 231, 0.25);
}

.app-tile svg {
  width: 34px;
  height: 34px;
}

.app-l1 {
  left: 14px;
  top: 0;
}

.app-l2 {
  left: 14px;
  top: 84px;
}

.app-l3 {
  left: 0;
  top: 167px;
}

.app-r1 {
  left: 241px;
  top: 0;
}

.app-r2 {
  left: 241px;
  top: 84px;
}

.app-r3 {
  left: 241px;
  top: 167px;
}

.play-node {
  position: absolute;
  left: 125px;
  top: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
}

.play-node img {
  width: 40px;
  height: 44px;
}

/* Browser tabs tile */
.tile-tabs {
  flex: 0 1 35.8%;
  min-width: 0;
  height: 329px;
}

.tile-tabs .tile-copy {
  left: 27px;
  right: 27px;
  width: auto;
  text-align: center;
  align-items: center;
}

.folder-art {
  position: absolute;
  left: 11px;
  top: 171px;
  width: 304px;
  max-width: calc(100% - 22px);
}

img.folder-art {
  position: absolute;
  left: 0;
  top: 130px;
  width: 100%;
  height: calc(100% - 130px);
  object-fit: contain;
}

/* Terminal tile */
.tile-terminal {
  flex: 0 0 26.6%;
  min-width: 0;
  background: linear-gradient(to bottom, rgba(133, 200, 238, 0.2) 14%, rgba(84, 152, 189, 0.5) 54%, var(--blue) 95%);
}

.terminal-art {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.tile-terminal .tile-copy {
  left: 24px;
  right: 24px;
  width: auto;
  top: 44px;
}

.code-card {
  position: absolute;
  z-index: 1;
  background: var(--grey-200);
  border-radius: 12px;
  padding: 9px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.code-card pre {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
}

.code-card code {
  font-family: "Inter", ui-monospace, monospace;
  font-weight: 300;
  font-size: 14px;
  line-height: 18.2px;
  letter-spacing: -0.07px;
  color: #0055ff;
  white-space: pre;
}

.code-card--main {
  left: 21px;
  top: 226px;
  width: 652px;
}

.code-card--comment {
  left: 156px;
  top: 464px;
  width: 402px;
}

.code-card .k {
  color: #0055ff;
}

.code-card .v {
  color: #00a5f8;
}

.code-card .fn {
  color: #ff8e78;
}

.code-card .kw {
  color: #ef95c2;
}

.code-card .t {
  color: #7cf7c4;
}

.code-card .cmt,
.code-card code.cmt {
  color: #588b76;
}

/* ---------- Section 3: How it works ---------- */

.how {
  max-width: 1512px;
  margin: 0 auto;
  padding: 68px 99px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.how-left {
  display: flex;
  flex-direction: column;
  gap: 65px;
  flex-shrink: 0;
  width: 412px;
}

.how-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  width: 412px;
  max-width: 100%;
  background: var(--grey-100);
  border-radius: 32px;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.52px;
  color: var(--black);
}

.step-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey-900);
}

.diagram {
  position: relative;
  flex: 0 0 864px;
  width: 864px;
  height: 628px;
}

.diagram-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.node-center {
  position: absolute;
  left: 314px;
  top: 302px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  padding: 6px 12px;
  box-shadow: 0 0 12px 12px var(--white);
}

.node-center img {
  width: 47px;
  height: 52px;
}

.node-center span {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.48px;
  color: var(--brand-blue);
}

.diagram .cat {
  position: absolute;
  font-size: 14px;
  line-height: 1.4;
  color: var(--black);
  white-space: nowrap;
}

.diagram .sub {
  position: absolute;
  font-size: 12px;
  line-height: 1.4;
  color: var(--grey-600);
  white-space: nowrap;
}

/* ---------- Section 4: CTA ---------- */

.cta {
  max-width: 1512px;
  margin: 0 auto;
  padding: 0 0 20px;
}

.cta-inner {
  position: relative;
  min-height: 660px;
  border-radius: 0 0 100px 100px;
  background: url("../assets/Background Image.png") center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 51px;
  padding: 168px 20px 0;
  overflow: hidden;
}

.cta-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 100px 100px;
  pointer-events: none;
}

.cta-copy {
  position: relative;
  z-index: 1;
  width: 656px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -1.6px;
  color: #fff;
}

.cta-sub {
  font-size: 16px;
  line-height: 1.4;
  color: var(--grey-200);
}

.cta .btn {
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  max-width: 1512px;
  margin: 0 auto;
  padding: 40px 100px 40px;
  overflow: hidden;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 35px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 438px;
}

.footer-desc {
  font-family: "Urbanist", var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--grey-700);
  opacity: 0.6;
}

.footer-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 502px;
  padding: 6px;
}

.footer-nav a {
  flex: 1;
  text-align: center;
  font-family: "Urbanist", var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--black);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.copyright {
  font-family: "Urbanist", var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--black);
}

.socials {
  display: flex;
  gap: 16px;
  align-items: center;
}

.socials a {
  display: block;
}

.socials svg {
  width: 24px;
  height: 24px;
  display: block;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 17.85vw, 270px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--black);
  white-space: nowrap;
  width: max-content;
  margin: 68px 0 0 calc(55% - 50.6px);
  transform: translateX(-50%);
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .nav {
    padding: 8px 40px;
  }

  .nav-left {
    gap: 24px;
  }

  .nav-links {
    gap: 32px;
    padding: 16px 12px;
  }
}

@media (max-width: 1100px) {
  .feature-cards {
    flex-direction: column;
  }

  .feature-card {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 1180px) {
  .bento {
    flex-wrap: wrap;
  }

  .tile-terminal {
    flex: 1 1 100%;
    height: 640px;
  }

  .tile-terminal .code-card--main {
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 40px);
  }

  .tile-terminal .code-card--comment {
    left: auto;
    right: 20px;
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 820px) {
  .bento-row {
    flex-wrap: wrap;
  }

  .tile-email,
  .tile-agents,
  .tile-teach,
  .tile-tabs {
    flex: 1 1 100%;
  }

  .task-panel {
    left: 20px;
    right: 20px;
  }

  .teach-art {
    right: 50%;
    transform: translateX(50%);
  }

  .code-card--comment {
    display: none;
  }

  .tile-terminal {
    height: 560px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .features {
    padding: 48px 24px 64px;
  }

  .features-title {
    font-size: 36px;
    letter-spacing: -0.72px;
  }

  .listening-pill {
    left: 50%;
    transform: translateX(-50%);
  }

  .listening-pill.pill-expanding {
    transform: none;
  }

  .pill-expanded-title {
    font-size: 40px;
  }

  .pill-expanded-wave {
    width: 80px;
  }

  .hero-title {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .prompt {
    font-size: 24px;
  }

  .input-row {
    gap: 20px;
  }

  .hint {
    flex-wrap: wrap;
  }
}

/* ---------- Floating text bubbles on hero section ---------- */

.floating-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.floating-bubble {
  position: absolute;
  pointer-events: auto;
  z-index: 5;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.bubble-inner {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

/* Specific bubble positions using calc() to align relative to the 728px centered content */
.bubble-top-left {
  left: calc(50% - 530px);
  top: 200px;
}

.bubble-top-right {
  left: calc(50% + 380px);
  top: 195px;
}

.bubble-bottom-left {
  left: calc(50% - 500px);
  top: 430px;
}

.bubble-bottom-right {
  left: calc(50% + 370px);
  top: 450px;
}

/* Gentle floating micro-animations */
@keyframes float-bubble {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0px);
  }
}

.bubble-top-left .bubble-inner {
  animation: float-bubble 6s ease-in-out infinite;
}

.bubble-top-right .bubble-inner {
  animation: float-bubble 7s ease-in-out infinite 1s;
}

.bubble-bottom-left .bubble-inner {
  animation: float-bubble 6.5s ease-in-out infinite 0.5s;
}

.bubble-bottom-right .bubble-inner {
  animation: float-bubble 8s ease-in-out infinite 1.5s;
}

.bubble-cursor {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: -8px;
  margin-left: -8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.bubble-pill {
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font-rounded), var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: var(--white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.bubble-pill.bg-blue {
  background-color: #0884fe;
}

.bubble-pill.bg-purple {
  background-color: #7c3aed;
}

.bubble-pill.bg-green {
  background-color: #00b050;
}

.bubble-pill.bg-orange {
  background-color: #ff9900;
}

/* Styling for bubble pills containing GIFs */
.bubble-pill.has-gif {
  padding: 0;
  background: transparent !important;
  border: none;
  box-shadow: none;
}

.pill-gif {
  width: 260px;
  height: auto;
  display: block;
  margin-top: -53px;
  margin-bottom: -70px;
}

.pill-gif.after {
  display: none;
}

/* Toggle GIFs on hover */
.floating-bubble:hover .pill-gif.before {
  display: none;
}

.floating-bubble:hover .pill-gif.after {
  display: block;
}

/* Fade out bubbles when listening pill is expanding */
.listening-pill.pill-expanding~.floating-bubbles {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Responsive adjustment for media queries */
@media (max-width: 1400px) {
  .bubble-top-left {
    left: calc(50% - 490px);
  }

  .bubble-top-right {
    left: calc(50% + 340px);
  }

  .bubble-bottom-left {
    left: calc(50% - 460px);
    top: 430px;
  }

  .bubble-bottom-right {
    left: calc(50% + 300px);
    top: 450px;
  }
}

@media (max-width: 1200px) {
  .floating-bubble {
    transform: scale(0.85);
  }

  .bubble-top-left {
    left: calc(50% - 440px);
    top: 200px;
  }

  .bubble-top-right {
    left: calc(50% + 280px);
    top: 195px;
  }

  .bubble-bottom-left {
    left: calc(50% - 400px);
    top: 430px;
  }

  .bubble-bottom-right {
    left: calc(50% + 230px);
    top: 450px;
  }
}

@media (max-width: 1024px) {
  .floating-bubbles {
    display: none;
  }
}

/* ---------- Preview Window (Hero Video Mockup) ---------- */

.app-window.preview-window {
  background: #f0edf0;
  border: 1px solid #c8c6c8;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.2);
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.preview-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e8e6e7;
  border-bottom: 1px solid #d0cfd0;
  height: 44px;
  padding: 0 16px;
  user-select: none;
}

.preview-titlebar .titlebar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-titlebar .titlebar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tb-btn {
  background: transparent;
  border: none;
  color: #5a5a5a;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.tb-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.btn-sidebar {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 4px 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-sidebar:hover {
  background-color: #f7f7f7;
}

.tb-chevron-down {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #5a5a5a;
  margin-left: 2px;
}

.preview-filename {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: #333333;
  margin-left: 4px;
}

.btn-profile {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c4dff;
  color: #ffffff;
  padding: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: bold;
}

.btn-profile:hover {
  background-color: #6a3de8;
}

.tb-chevron-only {
  padding: 8px 4px;
}

.preview-content {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.preview-content .video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, background-color 0.2s;
  pointer-events: none;
}

.video-play-btn svg {
  margin-left: 4px;
}

.preview-content:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: #ffffff;
}

@media (max-width: 768px) {
  .preview-titlebar {
    height: 40px;
    padding: 0 10px;
  }

  .preview-titlebar .titlebar-right {
    display: none;
  }

  /* How it works mobile responsiveness */
  .how {
    flex-direction: column;
    padding: 60px 24px;
    gap: 48px;
  }

  .how-left {
    width: 100%;
    gap: 32px;
  }

  .step {
    width: 100%;
    text-align: left;
    padding: 24px 28px;
  }

  .diagram {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 864 / 628;
  }

  .node-center {
    left: 36.3%;
    top: 48%;
    transform: translateY(-50%);
    padding: 4px 8px;
    box-shadow: 0 0 8px 8px var(--white);
  }

  .node-center img {
    width: 32px;
    height: 35px;
  }

  .node-center span {
    font-size: 16px;
  }

  /* CTA mobile responsiveness */
  .cta-inner {
    min-height: auto;
    padding: 96px 24px 80px;
    gap: 40px;
    border-radius: 0 0 40px 40px;
  }

  .cta-inner::after {
    border-radius: 0 0 40px 40px;
  }

  .cta-title {
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -0.8px;
  }

  /* Footer mobile responsiveness */
  .footer {
    padding: 48px 24px 32px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 24px;
  }

  .footer-brand {
    width: 100%;
    gap: 16px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    padding: 0;
  }

  .footer-nav a {
    text-align: left;
    flex: none;
    width: auto;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-wordmark {
    margin: 48px 0 0 0;
    transform: none;
    font-size: 13vw;
  }

  /* Hero section mobile responsiveness - match hero mobile.png */
  .brand-name {
    display: none;
  }

  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    grid-template-columns: none;
  }

  .nav-left {
    justify-self: auto;
  }

  .nav > .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 100px;
    justify-self: auto;
  }

  .listening-pill {
    top: 48px;
    width: 170px;
    height: 36px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 12px 12px;
  }

  .listening-pill .pill-row {
    top: 9px;
    width: 146px;
    left: 12px;
  }

  .listening-pill .pill-label {
    font-size: 12px;
  }

  .listening-pill .pill-wave {
    width: 36px;
    height: 18px;
  }

  .listening-pill .pill-glow {
    display: none;
  }

  .hero-content {
    margin: 64px auto 0;
    gap: 16px;
    max-width: calc(100% - 32px);
  }

  .hero-title {
    font-size: 40px;
    letter-spacing: -0.8px;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.4;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-subtitle-extra {
    display: none;
  }

  .hero-content .btn-primary {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 100px;
    width: auto;
    margin-top: 8px;
  }

  .app-window.preview-window {
    margin: 32px auto 0;
    max-width: calc(100% - 32px);
    border-radius: 12px;
  }

  .floating-bubbles {
    display: none;
  }

  /* Features section mobile responsiveness - match features.png */
  .features {
    padding: 60px 24px;
  }

  .features-inner {
    max-width: 100%;
  }

  .features-title {
    font-size: 32px;
    letter-spacing: -0.64px;
    line-height: 1.1;
    text-align: left;
  }

  .features-subtitle {
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
    margin-top: 16px;
  }

  .feature-cards {
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
  }

  .feature-card {
    height: auto;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    border-radius: 24px;
  }

  .feature-card:nth-child(2) {
    padding-bottom: 0;
  }

  .card-copy {
    position: static;
    width: 100%;
    max-width: none;
    margin-bottom: 24px;
  }

  .card-title {
    font-size: 24px;
    letter-spacing: -0.48px;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .card-text {
    font-size: 14px;
    line-height: 1.4;
  }

  .card-art {
    position: static;
    transform: none;
    margin: 0 auto;
    display: block;
    height: auto;
  }

  .card-art--eyes {
    width: 220px;
    margin-top: 10px;
  }

  .card-art--timeline {
    width: 100%;
    max-width: 340px;
    margin-top: 20px;
  }

  .card-art--doc {
    width: 220px;
    margin-top: 10px;
  }
}