/* ---------- Tokens ---------- */
:root {
  --color-ink: #0B0B0F;
  --color-ink-soft: #18181B;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F4F4F5;
  --color-text: #18181B;
  --color-text-muted: #52525B;
  --color-text-inverse: #FFFFFF;
  --color-primary: #0055FF;
  --color-accent: #CAFF00;
  --color-border: #E4E4E7;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-full: 999px;

  --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.10);
  --container: 1180px;

  --font-heading: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-ink);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

.text-accent { color: var(--color-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}
.btn--accent {
  background: var(--color-accent);
  color: var(--color-ink);
  box-shadow: 0 10px 25px rgba(202, 255, 0, 0.25);
}
.btn--accent:hover { transform: translateY(-2px); background: #b8e600; }
.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav__inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}
.nav__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-ink);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.nav__links a:hover { color: var(--color-text); }
.nav__cta { display: none; padding: 0.7rem 1.4rem; font-size: 0.85rem; }
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem 1.25rem 2rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-weight: 600; }
.mobile-menu .btn { margin-top: 0.5rem; }

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at top right, #14141a 0%, var(--color-ink) 55%);
  color: var(--color-text-inverse);
  padding-block: 4.5rem 5rem;
}
.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.hero__lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero__tags li {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero__visual { display: flex; justify-content: center; }
.chat-card {
  width: 100%;
  max-width: 380px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.chat-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border); }
.chat-card__title {
  margin-left: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
}
.chat-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
}
.bubble {
  max-width: 80%;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.bubble--in {
  background: var(--color-surface-alt);
  color: var(--color-text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble--out {
  background: var(--color-primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 0.6rem 0.9rem;
  background: var(--color-surface-alt);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: blink 1.4s infinite ease-in-out both;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Sections ---------- */
.section { padding-block: 5rem; }
.section--alt { background: var(--color-surface-alt); }
.section--dark { background: var(--color-ink-soft); color: var(--color-text-inverse); }
.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}
.section__title--inverse { color: var(--color-text-inverse); }
.section__lead {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 40rem;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}
.section--dark .section__lead { color: rgba(255, 255, 255, 0.7); }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 1.5rem; margin-top: 1rem; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); }
.card--pain, .card--white { background: var(--color-surface); border: 1px solid var(--color-border); }
.card--dark { background: var(--color-ink); color: var(--color-text-inverse); }
.card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.card p { color: var(--color-text-muted); }
.card--dark p { color: rgba(255, 255, 255, 0.7); }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 85, 255, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.card--dark .card__icon,
.card__icon--onaccent {
  background: var(--color-accent);
  color: var(--color-ink);
}
.card__icon--onblue { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* Bento */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--lg { grid-column: span 2; }
}
.bento__item {
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}
.bento__item:hover { transform: translateY(-4px); }
.bento__item h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.card--white { background: var(--color-surface); border: 1px solid var(--color-border); }
.card--white p { color: var(--color-text-muted); }
.card--blue { background: var(--color-primary); color: #fff; }
.card--blue p { color: rgba(255, 255, 255, 0.85); }
.card--accent { background: var(--color-accent); color: var(--color-ink); }
.card--accent p { color: rgba(11, 11, 15, 0.75); }

/* Steps */
.steps {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.step__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { color: rgba(255, 255, 255, 0.65); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: 3rem;
}
@media (min-width: 960px) {
  .contact { grid-template-columns: 1fr 1fr; align-items: start; }
}
.contact__copy .section__title { text-align: left; margin-bottom: 1rem; }
.contact__copy .section__lead { text-align: left; margin: 0 0 2rem; }
.contact__direct {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  padding: 0.9rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  width: fit-content;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.contact__link:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.contact__form {
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: var(--shadow-card);
}
.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.contact__form input,
.contact__form textarea {
  font: inherit;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text);
  resize: vertical;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}
.contact__note { font-size: 0.85rem; color: var(--color-text-muted); min-height: 1.2em; }
.contact__note--success { color: #0a7d32; }
.contact__note--error { color: #c0392b; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.65);
  padding-block: 2.5rem;
  font-size: 0.85rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a:hover { color: #fff; }

@media (min-width: 720px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
