:root {
  color-scheme: dark;
  --bg: #10131f;
  --bg-soft: #171b2b;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f3ea;
  --muted: #c8c3b8;
  --gold: #ffd166;
  --coral: #ff8a7a;
  --mint: #97f3c5;
  --blue: #8ec5ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius-lg: 34px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.2), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(142, 197, 255, 0.16), transparent 28rem),
    linear-gradient(135deg, #10131f 0%, #15192a 48%, #201827 100%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 4rem);
  background: rgba(16, 19, 31, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand,
.nav-links,
.hero-actions,
.resource-cards,
.spark-form div,
.chat-header,
.chat-form,
.quick-prompts {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  box-shadow: 0 0 34px rgba(255, 209, 102, 0.85);
}

.nav-links {
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 4vw, 4rem);
}

.hero {
  min-height: 78vh;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3.4rem, 9vw, 7.6rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4.25rem);
}

p {
  line-height: 1.75;
}

.hero-text,
.section-copy p,
.resources p,
.site-footer p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-text {
  max-width: 42rem;
  margin: 1.5rem 0 2rem;
}

.hero-actions {
  gap: 1rem;
  flex-wrap: wrap;
}

.button,
.chat-form button,
.spark-form button,
.support-form button {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-weight: 800;
  cursor: pointer;
}

.button {
  text-decoration: none;
}

.primary,
.chat-form button,
.spark-form button,
.support-form button {
  color: #171108;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  box-shadow: 0 16px 40px rgba(255, 138, 122, 0.18);
}

.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hope-card,
.chat-shell,
.resources,
.promise-band article,
.spark-form {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hope-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: var(--radius-lg);
  min-height: 32rem;
}

.hope-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -30% 12%;
  height: 18rem;
  background: radial-gradient(circle, rgba(151, 243, 197, 0.22), transparent 65%);
}

.hope-card h2 {
  position: relative;
  z-index: 1;
  max-width: 8ch;
}

.hope-card p {
  position: relative;
  z-index: 1;
  max-width: 27rem;
  margin-top: 2rem;
  color: var(--muted);
}

.pulse-orb {
  width: 11rem;
  height: 11rem;
  margin: 0 0 3rem auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, #fff9d7 0 10%, transparent 11%),
    radial-gradient(circle, var(--gold), var(--coral) 58%, transparent 60%);
  box-shadow: 0 0 70px rgba(255, 209, 102, 0.45);
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.05);
  }
}

.promise-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 4rem) clamp(4rem, 9vw, 7rem);
}

.promise-band article {
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.promise-band span {
  color: var(--mint);
  font-weight: 800;
}

.promise-band h2 {
  margin-top: 1.8rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.promise-band p {
  color: var(--muted);
}

.chat-section {
  padding-top: 2rem;
}

.feature-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.feature-list li {
  padding-left: 1.8rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--mint);
}

.chat-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 42rem;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.chat-header {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
}

.chat-header p,
.chat-header span {
  margin: 0;
}

.chat-header p {
  font-weight: 800;
}

.chat-header span,
.message-time {
  color: var(--muted);
  font-size: 0.85rem;
}

.status-dot {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(151, 243, 197, 0.16);
  color: var(--mint) !important;
  font-weight: 700;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
  overflow-y: auto;
  max-height: 30rem;
}

.message {
  max-width: 84%;
  border-radius: 1.25rem;
  padding: 0.9rem 1rem;
}

.message p {
  margin: 0;
  line-height: 1.6;
}

.message.guide {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.11);
}

.message.user {
  align-self: flex-end;
  color: #171108;
  background: linear-gradient(135deg, var(--gold), var(--coral));
}

.quick-prompts {
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0 1.2rem 1rem;
}

.quick-prompts button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}

.chat-form {
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-form input,
.spark-form input,
.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.chat-form input {
  border-radius: 999px;
  padding: 0.95rem 1rem;
}

.chat-note,
.community-note {
  margin: 0;
  padding: 0 1.2rem 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.connect-section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 4vw, 4rem);
}

.centered {
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.spark-form {
  max-width: 58rem;
  margin: 0 auto 2rem;
  padding: 1rem;
  border-radius: var(--radius-md);
}

.spark-form label {
  display: block;
  margin: 0 0 0.7rem 0.4rem;
  color: var(--muted);
  font-weight: 700;
}

.spark-form div {
  gap: 0.75rem;
}

.spark-form input {
  padding: 1rem 1.1rem;
  border-radius: 999px;
}

.spark-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.spark-card {
  min-height: 12rem;
  display: flex;
  align-items: flex-end;
  padding: 1.3rem;
  border-radius: var(--radius-md);
  color: #171108;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.95), rgba(151, 243, 197, 0.9));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.45;
}

.resources {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  margin: 0 clamp(1rem, 4vw, 4rem) clamp(4rem, 8vw, 6rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
}

.resource-cards {
  gap: 1rem;
  flex-wrap: wrap;
}

.resource-card {
  flex: 1 1 13rem;
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.resource-card span {
  color: var(--muted);
  font-weight: 700;
}

.resource-card strong {
  font-size: 1.35rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
  max-width: 48rem;
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hidden {
  display: none;
}

.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;
}

@media (max-width: 900px) {
  .section-grid,
  .resources,
  .promise-band,
  .spark-wall {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hope-card {
    min-height: 24rem;
  }

  .chat-shell {
    min-height: 38rem;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .spark-form div,
  .chat-form {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .message {
    max-width: 94%;
  }
}
