:root {
  --bg0: #0c1218;
  --bg1: #152029;
  --ink: #e8eef4;
  --muted: #9aafc0;
  --accent: #e6a23c;
  --accent-2: #3d8f7a;
  --line: rgba(232, 238, 244, 0.12);
  --font-brand: "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --page-max: 40rem;
  --gutter: clamp(1.15rem, 4.5vw, 2rem);
  --mx: 0px;
  --my: 0px;
  --scroll: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg0);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(165deg, var(--bg0) 0%, var(--bg1) 45%, #0a1015 100%);
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  transform: translate(
    calc(var(--mx) * 0.03),
    calc(var(--my) * 0.02 + var(--scroll) * -0.06px)
  );
  transition: transform 0.15s ease-out;
}

.orb-a {
  width: min(70vw, 480px);
  height: min(70vw, 480px);
  top: -12%;
  left: 50%;
  margin-left: -35vw;
  background: radial-gradient(circle, rgba(230, 162, 60, 0.4), transparent 68%);
  animation: orb-drift 14s ease-in-out infinite alternate;
}

.orb-b {
  width: min(50vw, 380px);
  height: min(50vw, 380px);
  top: 18%;
  left: 50%;
  margin-left: 8vw;
  background: radial-gradient(circle, rgba(61, 143, 122, 0.32), transparent 70%);
  animation: orb-drift 18s ease-in-out infinite alternate-reverse;
}

.road {
  position: absolute;
  inset: 42% -10% -5%;
  opacity: 0.18;
  background: repeating-linear-gradient(
    100deg,
    transparent 0 28px,
    rgba(255, 255, 255, 0.04) 28px 29px
  );
  transform: perspective(400px) rotateX(58deg) translateY(calc(var(--scroll) * 0.1px));
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}

@keyframes orb-drift {
  from {
    transform: translate(calc(var(--mx) * 0.03), calc(var(--my) * 0.02)) scale(1);
  }
  to {
    transform: translate(calc(var(--mx) * 0.03 + 16px), calc(var(--my) * 0.02 - 12px)) scale(1.05);
  }
}

.page {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  padding: 2.5rem 0 1.25rem;
  position: relative;
}

.hero-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(2.35rem, 11vw, 3.75rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.08s;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.2rem, 4.2vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 22ch;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.22s;
}

.tagline {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 3.4vw, 1.08rem);
  max-width: 34rem;
  min-height: 3em;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.36s;
  transition: opacity 0.25s ease;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.45s;
}

.cta a,
.cta span.soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 2.75rem;
  background: var(--accent);
  color: #1a1208;
  border: 0;
  animation: pulse-cta 2.8s ease-in-out infinite;
  flex: 1 1 12rem;
  max-width: 18rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cta a:hover {
  transform: translateY(-2px);
  background: #f0b45a;
  animation: none;
}

.cta span.soon {
  cursor: default;
  user-select: none;
  pointer-events: none;
  opacity: 0.9;
  text-align: center;
  line-height: 1.25;
}

@keyframes pulse-cta {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(230, 162, 60, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(230, 162, 60, 0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 16rem;
  margin: 0.25rem auto 0;
  opacity: 0;
  animation: rise 1s ease forwards 0.5s;
}

.phone {
  width: 100%;
  background: linear-gradient(160deg, #1c2833, #101820);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 0.85rem 0.75rem 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.phone-notch {
  width: 36%;
  height: 0.35rem;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.phone-script-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 14.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  text-align: left;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.bubble {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 92%;
  padding: 0.5rem 0.65rem;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.35;
  flex-shrink: 0;
}

.bubble-role {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

.bubble-text {
  white-space: pre-wrap;
}

.bubble.in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.bubble.out {
  align-self: flex-end;
  background: rgba(230, 162, 60, 0.22);
  color: var(--ink);
}

.bubble.specialist {
  background: rgba(120, 180, 220, 0.12);
  border: 1px solid rgba(120, 180, 220, 0.35);
  color: var(--ink);
}

.bubble.specialist .bubble-role {
  color: rgba(160, 200, 230, 0.95);
}

.bubble.is-enter {
  animation: bubble-in 0.35s ease both;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.car-sil {
  display: none;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.75rem 0.5rem 0.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.75s, cue-bounce 2.2s ease-in-out infinite 1.6s;
}

.scroll-cue:hover {
  color: var(--ink);
}

.scroll-cue-icon {
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

@keyframes cue-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

main {
  padding: 0 0 3rem;
  text-align: center;
}

.section {
  padding: 2.75rem 0 0.5rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.35rem, 5vw, 1.6rem);
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 auto 1.35rem;
  color: var(--muted);
  max-width: 34rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-list,
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  text-align: left;
}

.feature-list li,
.step-list li {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.025);
}

.feature-list h3,
.step-list h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.feature-list p,
.step-list p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.98rem;
}

.step-list {
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding-top: 1.35rem;
}

.step-list li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.faq {
  text-align: left;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  font-family: var(--font-brand);
  padding-right: 1.5rem;
  min-height: 1.5rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  margin-right: -1.5rem;
  color: var(--accent);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.quote-block blockquote {
  margin: 0;
  padding: 1.15rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(230, 162, 60, 0.06);
}

.quote-block p {
  margin: 0 0 0.75rem;
  font-family: var(--font-brand);
  font-size: clamp(1.1rem, 4vw, 1.25rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.quote-block footer {
  color: var(--muted);
  font-size: 0.92rem;
}

.note p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

.footer {
  padding: 1.75rem 0 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

.legal-inline {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.legal-inline a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-inline a:hover {
  color: var(--ink);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 12, 16, 0.72);
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-card {
  width: min(100%, 26rem);
  background: #15202a;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem 1.15rem 1.15rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.modal-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.modal-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.modal-card p a {
  color: var(--accent);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.modal-actions .primary {
  flex: 1 1 8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border-radius: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent);
  color: #1a1208;
  min-height: 2.75rem;
}

.modal-cancel {
  flex: 1 1 8rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0.35rem;
  font: inherit;
  font-weight: 600;
  min-height: 2.75rem;
  cursor: pointer;
}

.legal-page {
  min-height: 100vh;
}

.legal-wrap {
  max-width: 42rem;
  padding: 2rem 1.25rem 3rem;
}

.legal-brand {
  font-size: 1.35rem !important;
  margin-bottom: 1rem !important;
  animation: none !important;
  opacity: 1 !important;
}

.legal-brand a {
  color: inherit;
  text-decoration: none;
}

.legal-meta {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.legal-body h2 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.05rem;
}

.legal-body p,
.legal-operator p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.55;
}

.legal-operator {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.legal-nav {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-nav a {
  color: var(--accent);
}

@media (min-width: 720px) {
  .hero {
    padding-top: 3.5rem;
    gap: 1.75rem;
  }

  .hero-art {
    max-width: 15rem;
  }

  .car-sil {
    display: block;
    position: absolute;
    left: 50%;
    bottom: -0.35rem;
    width: 120%;
    height: 42px;
    margin-left: -60%;
    opacity: 0.28;
    background:
      linear-gradient(90deg, transparent, rgba(232, 238, 244, 0.25) 20%, rgba(232, 238, 244, 0.35) 50%, transparent),
      radial-gradient(ellipse 40% 80% at 20% 70%, rgba(230, 162, 60, 0.35), transparent);
    clip-path: polygon(8% 70%, 18% 40%, 35% 28%, 62% 28%, 78% 42%, 92% 55%, 96% 70%, 88% 78%, 78% 70%, 70% 78%, 28% 78%, 20% 70%, 12% 78%);
    z-index: -1;
  }

  .cta a,
  .cta span.soon {
    flex: 0 1 auto;
  }
}

@media (max-width: 419px) {
  .brand {
    font-size: clamp(2.1rem, 12vw, 2.6rem);
  }

  .hero {
    min-height: auto;
    padding-top: 1.75rem;
  }

  .hero-art {
    max-width: 13.5rem;
  }

  .cta a,
  .cta span.soon {
    flex: 1 1 100%;
    max-width: none;
  }

  .chat {
    height: 13rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb-a,
  .orb-b,
  .cta a,
  .cta span.soon,
  .bubble.is-enter,
  .scroll-cue {
    animation: none;
  }
  .brand,
  .hero h1,
  .tagline,
  .cta,
  .hero-art,
  .scroll-cue {
    opacity: 1;
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
