:root {
  --bg: #07111f;
  --bg-soft: #0d1728;
  --surface: rgba(11, 23, 39, 0.7);
  --surface-strong: rgba(11, 23, 39, 0.92);
  --surface-border: rgba(255, 255, 255, 0.09);
  --text: #e5eef8;
  --muted: #aab9cf;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --warm: #f6b45a;
  --warm-soft: rgba(246, 180, 90, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(246, 180, 90, 0.1), transparent 30%),
    linear-gradient(180deg, #06111e 0%, #091321 24%, #081320 100%);
}

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

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #06111e;
  font-weight: 700;
  z-index: 100;
  transition: top 180ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid #06111e;
  outline-offset: 2px;
}

:where(a, button, select, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------------------------- Layout ----------------------------- */
.page-shell {
  min-height: 100vh;
}

.site-header,
.section,
.site-footer {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(56px, 8vw, 110px);
}

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  background: rgba(6, 17, 30, 0.68);
  box-shadow: var(--shadow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.93rem;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav-sep {
  width: 1px;
  height: 18px;
  background: var(--surface-border);
}

.site-nav .site-nav-alt {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-nav .site-nav-alt:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.site-header.scrolled {
  background: rgba(6, 17, 30, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.mobile-nav[data-open="true"] {
  display: flex;
  position: fixed;
  inset: 84px 16px auto 16px;
  z-index: 25;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--surface-border);
  border-radius: 22px;
  background: rgba(6, 17, 30, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ----------------------------- Buttons ----------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  font-family: inherit;
}

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

.button-primary {
  color: #04121d;
  background: linear-gradient(135deg, #7fdcff 0%, #38bdf8 55%, #22d3ee 100%);
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.32);
}

.button-primary:hover {
  box-shadow: 0 18px 44px rgba(56, 189, 248, 0.45);
}

.button-secondary {
  color: var(--text);
  border-color: var(--surface-border);
  background: rgba(255, 255, 255, 0.04);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.button-ghost {
  color: var(--text);
  border-color: var(--surface-border);
  background: transparent;
}

.button-small {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

/* --------------------------- Typography --------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.06;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.18rem;
  margin: 0 0 8px;
}

p {
  line-height: 1.65;
  color: var(--muted);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.section-heading p {
  font-size: 1.05rem;
}

.section-footnote {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  opacity: 0.85;
}

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.bullet-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  line-height: 1.55;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

.bullet-list li strong {
  color: var(--text);
}

/* --------------------------- Glass cards --------------------------- */
.glass-card {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

/* ------------------------------ Reveal ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

/* ------------------------------- Hero ------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-top: clamp(40px, 6vw, 70px);
}

.hero-lead {
  font-size: 1.12rem;
  max-width: 560px;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
}

.hero-trust li {
  flex: 1 1 150px;
  padding: 16px 18px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-trust strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
}

.hero-trust span {
  font-size: 0.84rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}

.hero-orb-a {
  width: 320px;
  height: 320px;
  top: -40px;
  right: -30px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.5), transparent 70%);
}

.hero-orb-b {
  width: 260px;
  height: 260px;
  bottom: -30px;
  left: -20px;
  background: radial-gradient(circle, rgba(246, 180, 90, 0.4), transparent 70%);
}

.home-stage {
  position: relative;
  z-index: 1;
  padding: 14px;
  overflow: hidden;
}

.home-stage img {
  border-radius: 16px;
  width: 100%;
  height: auto;
}

.home-stage-tag {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(6, 17, 30, 0.72);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
}

/* --------------------------- Day-in-life --------------------------- */
.life-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.life-step {
  padding: 26px 24px;
  position: relative;
}

.life-time {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--warm);
  background: var(--warm-soft);
  border: 1px solid rgba(246, 180, 90, 0.3);
}

.life-step p {
  margin: 0;
  font-size: 0.96rem;
}

/* ------------------------ What you control ------------------------ */
.control-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.control-card {
  padding: 24px 22px;
}

.control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.control-icon svg {
  width: 24px;
  height: 24px;
}

.control-card p {
  margin: 0;
  font-size: 0.92rem;
}

/* ------------------------------- Hub ------------------------------- */
.hub-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.hub-lead {
  font-size: 1.08rem;
  margin-bottom: 22px;
}

.hub-split .bullet-list {
  margin-bottom: 8px;
}

.hub-visual {
  padding: 16px;
  overflow: hidden;
}

.hub-visual img {
  border-radius: 16px;
  width: 100%;
  height: auto;
}

/* --------------------------- Consultant --------------------------- */
.consultant-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.consultant-view {
  padding: clamp(20px, 3vw, 30px);
}

.consultant-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.consultant-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  font-weight: 800;
  color: #04121d;
  background: linear-gradient(135deg, #7fdcff, #38bdf8);
}

.consultant-head strong {
  display: block;
  font-size: 1rem;
}

.consultant-head small {
  color: var(--muted);
  font-size: 0.85rem;
}

.consultant-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.chat-msg {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.97rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.chat-msg-bot {
  align-self: flex-start;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  border-bottom-left-radius: 6px;
}

.chat-msg-user {
  align-self: flex-end;
  color: #04121d;
  background: linear-gradient(135deg, #9fe6ff, #38bdf8);
  border-bottom-right-radius: 6px;
}

.consultant-typing {
  display: flex;
  gap: 5px;
  padding: 12px 4px 2px;
}

.consultant-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: dotpulse 1.2s infinite ease-in-out;
}

.consultant-typing span:nth-child(2) {
  animation-delay: 0.18s;
}
.consultant-typing span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes dotpulse {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.consultant-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.starter-chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
  cursor: pointer;
  font-family: inherit;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.starter-chip:hover {
  color: var(--text);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.32);
}

.consultant-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.consultant-form textarea {
  flex: 1;
  resize: none;
  min-height: 48px;
  max-height: 160px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.97rem;
  line-height: 1.5;
}

.consultant-form textarea::placeholder {
  color: rgba(170, 185, 207, 0.7);
}

.consultant-send {
  flex: 0 0 auto;
}

.consultant-disclaimer {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: #fca5a5;
}

/* ---------------------------- Review view ---------------------------- */
.review-fields {
  display: grid;
  gap: 16px;
}

.review-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
}

.review-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 60px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
}

.review-contact {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.review-contact h4 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.review-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.review-contact-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.review-contact-grid input {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.review-consent {
  margin: 20px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.review-actions .button-primary {
  margin-left: auto;
}

/* ----------------------------- Done view ----------------------------- */
.consultant-done {
  text-align: center;
  padding-block: clamp(36px, 6vw, 60px);
}

.done-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #04121d;
  background: linear-gradient(135deg, #7fdcff, #38bdf8);
}

.done-mark svg {
  width: 30px;
  height: 30px;
}

.consultant-done p {
  max-width: 460px;
  margin: 0 auto 22px;
}

/* ----------------------------- Audience ----------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.audience-card {
  padding: 28px 26px;
}

.audience-card p {
  margin: 0;
}

.audience-card-wide {
  grid-column: 1 / -1;
  border-color: rgba(246, 180, 90, 0.32);
  background: linear-gradient(135deg, rgba(246, 180, 90, 0.08), rgba(11, 23, 39, 0.7));
}

.audience-card-wide a {
  color: var(--warm);
  font-weight: 600;
  white-space: nowrap;
}

/* ----------------------------- Why Solace ----------------------------- */
.why-card {
  text-align: center;
  padding: clamp(36px, 6vw, 64px);
  max-width: 880px;
  margin: 0 auto;
}

.why-card p {
  max-width: 640px;
  margin-inline: auto;
}

.why-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 4px;
}

.why-points span {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
}

.why-card .hero-actions {
  justify-content: center;
}

/* ------------------------------ Footer ------------------------------ */
.site-footer {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-block: 56px 64px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 240px;
}

.footer-links a {
  color: var(--muted);
}

.footer-copy {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.8;
}

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hub-split {
    grid-template-columns: 1fr;
  }
  .life-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .control-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .life-timeline {
    grid-template-columns: 1fr;
  }
  .control-grid {
    grid-template-columns: 1fr;
  }
  .review-contact-grid {
    grid-template-columns: 1fr;
  }
  .review-actions .button {
    flex: 1 1 100%;
  }
  .review-actions .button-primary {
    margin-left: 0;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .consultant-typing span {
    animation: none;
  }
}
