/* Chatlah - marketing site
   Hand-written CSS, no build step. Palette matches the product UI. */

:root {
  --navy-900: #061622;
  --navy-800: #071d2d;
  --navy-700: #0b2d40;
  --teal-500: #16848c;
  --teal-400: #1a939b;
  --teal-300: #53bdc3;
  --ink: #0d2231;
  --body: #48606f;
  --muted: #7b8f9c;
  --line: #dfe6ea;
  --paper: #f6f8fa;
  --white: #fff;
  --max: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-500); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  padding: 22px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span { font-size: 20px; font-weight: 650; letter-spacing: -.03em; color: #fff; }
.brand span i { font-style: normal; color: var(--teal-300); }
.topbar nav { display: flex; gap: 22px; font-size: 14px; }
.topbar nav a { color: rgba(255,255,255,.66); }
.topbar nav a:hover { color: #fff; text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-800);
  color: #fff;
  padding: 140px 0 92px;
}
.hero::before,
.hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero::before {
  width: 780px; height: 780px; top: -320px; left: -180px;
  background: radial-gradient(circle, rgba(22,132,140,.55), transparent 62%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.hero::after {
  width: 700px; height: 700px; right: -220px; bottom: -340px;
  background: radial-gradient(circle, rgba(83,189,195,.34), transparent 64%);
  animation: drift2 26s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(90px, 70px, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-80px, -60px, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
  html { scroll-behavior: auto; }
}

.hero .wrap { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-size: 12.5px; color: rgba(255,255,255,.74);
  letter-spacing: .01em;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-300); }

h1.display {
  margin: 26px 0 0;
  font-size: clamp(36px, 4.6vw, 57px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 660;
  max-width: 19ch;
}
h1.display em { font-style: normal; color: var(--teal-300); }

.lede {
  margin: 20px 0 0; max-width: 52ch;
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  color: rgba(255,255,255,.68);
}

/* ---------- waitlist ---------- */
.waitlist { margin-top: 30px; max-width: 500px; }
.field {
  display: flex; gap: 8px; padding: 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.field input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  color: #fff; font-size: 15.5px; padding: 12px 14px; outline: none;
  font-family: inherit;
}
.field input::placeholder { color: rgba(255,255,255,.44); }
.field button {
  border: 0; border-radius: 10px; cursor: pointer;
  background: var(--teal-500); color: #fff;
  font: 600 14.5px/1 inherit; padding: 0 20px;
  transition: background .16s ease;
}
.field button:hover { background: var(--teal-400); }
.field button:disabled { opacity: .6; cursor: default; }
.formnote { margin: 12px 2px 0; font-size: 12.5px; color: rgba(255,255,255,.5); }
.formmsg { margin: 12px 2px 0; font-size: 13.5px; display: none; }
.formmsg.ok { display: block; color: #7ee0b8; }
.formmsg.err { display: block; color: #ff9a8f; }

/* ---------- value row ---------- */
.pillars { border-top: 1px solid rgba(255,255,255,.09); margin-top: 66px; padding-top: 38px;
  display: grid; gap: 30px; grid-template-columns: repeat(3, 1fr); }
.pillar h3 { margin: 0 0 7px; font-size: 15px; font-weight: 620; letter-spacing: -.01em; }
.pillar p { margin: 0; font-size: 14px; color: rgba(255,255,255,.58); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- footer ---------- */
footer { background: var(--navy-900); color: rgba(255,255,255,.5); padding: 46px 0; font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer a { color: rgba(255,255,255,.68); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- legal pages ---------- */
.legal-head { background: var(--navy-800); color: #fff; padding: 132px 0 54px; }
.legal-head h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.03em; font-weight: 640; }
.legal-head p { margin: 12px 0 0; color: rgba(255,255,255,.6); font-size: 14.5px; }

.legal { background: var(--white); padding: 56px 0 88px; }
.legal .wrap { max-width: 780px; }
.legal h2 {
  margin: 46px 0 14px; font-size: 21px; letter-spacing: -.02em; font-weight: 640;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.legal h3 { margin: 28px 0 8px; font-size: 16px; font-weight: 640; }
.legal p, .legal li { color: var(--body); font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 7px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 620; background: var(--paper); }
.legal td { color: var(--body); }
.legal code { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 13.5px; }
.callout {
  margin: 22px 0; padding: 16px 18px; border-radius: 12px;
  background: #f1fafa; border: 1px solid #cde7e8; color: #285c60; font-size: 14.5px;
}
.toc { margin: 26px 0 6px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 4px 0; font-size: 14px; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* ---------- hero layout with visual ---------- */
.hero-grid {
  display: grid; gap: 64px;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-bottom: 76px; }
}

/* ---------- artwork ---------- */
.art { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.art svg { width: 100%; height: auto; display: block; overflow: visible; }

.float-a { animation: floaty 7s ease-in-out infinite; }
.float-b { animation: floaty 9s ease-in-out infinite reverse; }
.float-c { animation: floaty 11s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(1.2deg); }
}

.twinkle { animation: twinkle 3.6s ease-in-out infinite; }
.twinkle-2 { animation: twinkle 4.8s ease-in-out infinite .9s; }
.twinkle-3 { animation: twinkle 5.6s ease-in-out infinite 1.8s; }
@keyframes twinkle { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

.orbit { transform-origin: 260px 230px; animation: orbit 26s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .float-a, .float-b, .float-c, .twinkle, .twinkle-2, .twinkle-3, .orbit { animation: none; }
}
