:root {
  --ink: #101418;
  --muted: #5b6572;
  --line: #d8dee5;
  --paper: #f7f9fb;
  --white: #ffffff;
  --teal: #0d9488;
  --coral: #e15d3f;
  --gold: #c58b1a;
  --leaf: #4d7c0f;
  --focus: #1f6feb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

#field {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #f7fbff 0%, #eff8f5 45%, #fff7f1 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(16, 20, 24, 0.08);
  background: rgba(247, 249, 251, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
nav a,
.button {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, var(--teal), var(--gold), var(--coral), var(--teal));
  box-shadow: 0 0 0 5px rgba(13, 148, 136, 0.12);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a:hover {
  color: var(--ink);
  background: rgba(16, 20, 24, 0.06);
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100svh - 65px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(42px, 8vw, 110px) clamp(18px, 5vw, 64px) 48px;
}

.hero-copy {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(4rem, 13vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
}

.lead {
  max-width: 620px;
  margin: 24px 0;
  color: #26313b;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.hero-text {
  max-width: 720px;
  margin: -10px 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions,
.toolbar,
.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.7);
}

.signal-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 8px;
  background: rgba(16, 20, 24, 0.1);
  box-shadow: 0 24px 70px rgba(40, 48, 56, 0.14);
}

.signal-panel div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.signal-panel strong {
  display: block;
  font-size: 2rem;
}

.signal-panel span {
  color: var(--muted);
}

.section {
  padding: 76px clamp(18px, 5vw, 64px);
  background: rgba(247, 249, 251, 0.82);
  border-top: 1px solid rgba(16, 20, 24, 0.08);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.narrative {
  background: rgba(255, 255, 255, 0.76);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.insight-grid article,
.program-promise {
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(22, 28, 35, 0.07);
}

.insight-grid p,
.program-promise p {
  color: var(--muted);
  line-height: 1.6;
}

.toolbar {
  justify-content: space-between;
  margin-bottom: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.28);
  outline-offset: 2px;
}

.search-box {
  flex: 1 1 280px;
  max-width: 520px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
}

.tab.active {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.12);
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(22, 28, 35, 0.08);
}

.card .meta,
.answer-box .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.pill {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(197, 139, 26, 0.13);
  color: #6f4a00;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.icon-button.saved {
  border-color: var(--coral);
  background: rgba(225, 93, 63, 0.12);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.chat-box,
.answer-box {
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.chat-box {
  display: grid;
  gap: 14px;
}

.answer-box {
  min-height: 260px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.compact .card {
  min-height: 230px;
}

.program {
  background: rgba(255, 255, 255, 0.74);
}

.program-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: stretch;
}

.program-promise {
  display: grid;
  gap: 14px;
  align-content: start;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.module-list span {
  display: flex;
  min-height: 72px;
  align-items: center;
  border: 1px solid rgba(16, 20, 24, 0.1);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: #26313b;
  font-weight: 800;
}

.community {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.community .eyebrow,
.community label,
.community p {
  color: rgba(255, 255, 255, 0.72);
}

.community input {
  min-width: min(100%, 260px);
}

@media (max-width: 820px) {
  .topbar,
  .hero,
  .split,
  .community,
  .program-layout,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5.8rem);
  }
}

@media (max-width: 560px) {
  .topbar {
    position: static;
  }

  nav {
    justify-content: flex-start;
  }

  .button,
  .hero-actions,
  .newsletter,
  .module-list {
    width: 100%;
  }

  .module-list {
    grid-template-columns: 1fr;
  }

  .button {
    flex: 1 1 100%;
  }
}
