:root {
  color-scheme: light;
  --canvas: #f5f5f2;
  --surface: #fafaf8;
  --surface-strong: #edede8;
  --ink: #252624;
  --muted: #686963;
  --faint: #96978f;
  --line: #d9dad4;
  --line-dark: #b9bab3;
  --button: #31322f;
  --button-hover: #454642;
  --shadow: 0 24px 70px rgba(42, 43, 40, 0.08);
  --shadow-soft: 0 1px 2px rgba(42, 43, 40, 0.04), 0 12px 32px rgba(42, 43, 40, 0.05);
  --shadow-lift: 0 2px 4px rgba(42, 43, 40, 0.05), 0 22px 48px rgba(42, 43, 40, 0.09);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -8%, #fcfcfa 0%, rgba(252, 252, 250, 0) 62%),
    var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(185, 186, 179, 0.55);
  background: rgba(245, 245, 242, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  color: #41423e;
  font-size: 0.95rem;
}

nav a {
  transition: color 160ms ease;
}

nav a:hover {
  color: var(--faint);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--button);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px rgba(37, 38, 36, 0.14);
  color: var(--surface);
}

nav a.nav-cta:hover {
  background: var(--button-hover);
  color: var(--surface);
}

.hero {
  display: grid;
  width: min(1380px, 100%);
  min-height: 690px;
  align-items: center;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  gap: clamp(36px, 5vw, 86px);
  margin: 0 auto;
  padding: 92px 5vw 78px;
}

.hero-content {
  max-width: 700px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.eyebrow-icon {
  color: #777871;
  font-size: 0.85rem;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 700px;
  margin: 30px 0 24px;
  font-size: clamp(3.1rem, 5vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.068em;
  line-height: 0.98;
}

h1 span {
  color: #555650;
}

.hero-title-line {
  display: block;
  margin-top: 0.14em;
  color: inherit;
}

.hero-copy {
  max-width: 585px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 500px;
  margin: 0;
  place-items: center;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.hero-visual::before {
  width: 84%;
  background: radial-gradient(circle, #fcfcfa 0 36%, rgba(250, 250, 248, 0.5) 37% 100%);
  box-shadow: inset 0 1px 0 #fff, var(--shadow-soft);
}

.hero-visual::after {
  width: 104%;
  border-style: dashed;
  opacity: 0.7;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 590px);
  height: auto;
  object-fit: contain;
}

.primary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  padding: 0 26px;
  background: linear-gradient(180deg, #3b3c38, var(--button));
  color: var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 1px 2px rgba(37, 38, 36, 0.2),
    0 12px 28px rgba(37, 38, 36, 0.18);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--button-hover);
}

.video-section,
.section,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.video-section {
  scroll-margin-top: 110px;
}

.video-shell {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 0 0 8px rgba(250, 250, 248, 0.7), 0 0 0 9px var(--line), var(--shadow);
}

.video-toolbar {
  display: grid;
  min-height: 50px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.video-dots {
  display: flex;
  gap: 6px;
}

.video-dots span {
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--surface-strong);
}

.video-time {
  justify-self: end;
}

.product-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e8e8e3;
  object-fit: contain;
}

.section {
  padding: 150px 0 32px;
  scroll-margin-top: 60px;
}

.section-heading {
  display: grid;
  max-width: 820px;
  gap: 18px;
  margin-bottom: 54px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.step-card {
  position: relative;
  min-height: 355px;
  padding: 28px;
}

.step-number {
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.step-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 56px 0 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fcfcfa, var(--surface-strong));
  box-shadow: inset 0 1px 0 #fff;
}

.step-icon svg {
  width: 42px;
  fill: none;
  stroke: #555650;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

footer {
  display: grid;
  min-height: 170px;
  border-top: 1px solid var(--line);
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.86rem;
}

footer p:last-child {
  justify-self: end;
}

.footer-brand {
  color: var(--ink);
}

@media (max-width: 850px) {
  .site-header {
    min-height: 68px;
    padding: 0 20px;
  }

  nav > a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 90px;
    text-align: center;
  }

  .hero-content {
    max-width: 760px;
    margin: 0 auto;
  }

  .hero-copy {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-visual {
    min-height: 380px;
  }

  .hero-visual img {
    width: min(76vw, 500px);
  }

  h1 {
    letter-spacing: -0.06em;
  }

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

  .step-card {
    min-height: auto;
  }

  .step-icon {
    margin-top: 42px;
  }

  footer {
    justify-items: start;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 44px 0;
  }

  footer p {
    margin: 0;
  }

  footer p:last-child {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .video-section,
  .section,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding-right: 18px;
    padding-bottom: 64px;
    padding-left: 18px;
  }

  h1 {
    font-size: clamp(2.8rem, 5.8vw, 4rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-visual img {
    width: min(88vw, 390px);
  }

  .video-shell {
    border-radius: 18px;
  }

  .video-toolbar {
    display: flex;
    justify-content: space-between;
  }

  .video-time {
    display: none;
  }

  .section {
    padding-top: 108px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2 {
    font-size: 2.65rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 3px solid #82837c;
  outline-offset: 4px;
}

/* Why BotPocket page */

nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

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

.page-hero h1 {
  max-width: 900px;
}

.page-hero .hero-copy {
  max-width: 680px;
}

.principle {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  margin: 0 auto;
  padding: 120px 0 0;
  scroll-margin-top: 60px;
}

.principle-text {
  display: grid;
  max-width: 780px;
  gap: 4px;
}

.principle h2 {
  margin: 14px 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.principle-text p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.principle-text strong {
  color: var(--ink);
  font-weight: 600;
}

.diagram {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
}

.diagram-scroll {
  overflow-x: auto;
}

.diagram svg {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
}

.diagram figcaption {
  max-width: 760px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.diagram text {
  fill: currentColor;
  font-family: inherit;
  text-anchor: middle;
}

.d-lane {
  fill: var(--muted) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-anchor: start !important;
  text-transform: uppercase;
}

.d-label {
  font-size: 15px;
  font-weight: 600;
}

.d-sub,
.d-edge,
.d-node {
  font-size: 12.5px;
}

.d-sub {
  fill: var(--muted) !important;
}

.d-edge {
  font-weight: 500;
}

.d-node {
  font-weight: 500;
}

.diagram .d-left,
.diagram .d-note {
  text-anchor: start;
}

.d-note {
  font-size: 13.5px;
}

.d-bad {
  fill: var(--muted) !important;
}

.d-on-strong {
  fill: var(--surface) !important;
}

.d-box {
  fill: var(--canvas);
  stroke: var(--line-dark);
  stroke-width: 1.2;
}

.d-strong {
  fill: var(--button);
}

.d-line {
  stroke: currentColor;
  stroke-width: 1.4;
}

.d-divider {
  stroke: var(--line);
  stroke-dasharray: 4 6;
}

.d-mini-graph line {
  stroke: var(--faint);
  stroke-width: 1.4;
}

.d-mini-graph circle {
  fill: var(--surface);
}

.d-doc-lines line {
  stroke: var(--line-dark);
  stroke-width: 3;
  stroke-linecap: round;
}

.d-graph line {
  stroke: var(--line-dark);
  stroke-width: 1.5;
}

.d-graph circle {
  fill: var(--surface);
  stroke: var(--faint);
  stroke-width: 1.5;
}

.d-path {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
}

.d-hit {
  fill: var(--ink);
}

.d-new line,
.d-new-line {
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

.d-new circle {
  fill: var(--surface);
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

.d-bar-track {
  fill: var(--surface-strong);
}

.d-bar-fill {
  fill: var(--button);
}

.closing {
  padding-bottom: 100px;
}

@media (max-width: 850px) {
    .principle {
    padding-top: 96px;
  }
}

@media (max-width: 560px) {
  .page-hero,
  .principle {
    width: min(100% - 28px, 1180px);
  }

  .page-hero {
    padding-top: 72px;
  }

  .diagram {
    padding: 18px;
  }
}

/* Waitlist and contact */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.waitlist-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.waitlist-grid .section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.waitlist-form {
  display: grid;
  gap: 8px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.waitlist-form label {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.waitlist-form label span {
  color: var(--faint);
  font-weight: 400;
}

.waitlist-form input,
.waitlist-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.waitlist-form input:focus,
.waitlist-form textarea:focus {
  border-color: #81827b;
  outline: none;
}

.waitlist-form button {
  margin-top: 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.form-status {
  min-height: 1.5em;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-section {
  padding-top: 110px;
  padding-bottom: 60px;
}

.founders {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.founder-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.founder-card h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.founder-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.founder-card a {
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line-dark);
  transition: border-color 160ms ease;
}

.founder-card a:hover {
  border-color: var(--ink);
}

@media (max-width: 850px) {
  .waitlist-grid,
  .founders {
    grid-template-columns: 1fr;
  }
}

/* Premium polish */

.section-kicker::before {
  width: 22px;
  height: 1px;
  background: var(--line-dark);
  content: "";
}

.waitlist-form,
.founder-card,
.diagram {
  box-shadow: var(--shadow-soft);
}

.founder-card {
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}

.founder-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
