* {
  box-sizing: border-box;
}

:root {
  --navy: #08335f;
  --navy-dark: #052542;
  --blue: #0b74c9;
  --aqua: #5dd6d0;
  --sky: #eaf8ff;
  --cream: #fffdf7;
  --ink: #172331;
  --muted: #607080;
  --line: #dce8ef;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(8, 51, 95, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(93, 214, 208, 0.24), transparent 34rem),
    linear-gradient(180deg, #f8fdff 0%, #eef9ff 62%, #fffdf7 100%);
  color: var(--ink);
}

button,
textarea,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: 0 10px 24px rgba(11, 116, 201, 0.22);
}

.brand-name {
  font-weight: 900;
  color: var(--navy);
  line-height: 1.05;
}

.brand-subtitle {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 700;
}

.header-link {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.header-link:hover {
  text-decoration: underline;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  padding: 54px 0 38px;
}

.eyebrow {
  color: var(--blue);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  color: var(--navy-dark);
  font-size: clamp(2.65rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 1.16rem;
  line-height: 1.65;
  color: var(--muted);
}

.assistant-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(220, 232, 239, 0.95);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(14px);
}

.assistant-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.assistant-avatar {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: var(--sky);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.assistant-top h2 {
  margin: 0 0 2px;
  color: var(--navy);
  font-size: 1rem;
}

.assistant-top p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24b36b;
  margin-right: 6px;
}

.chat {
  height: 330px;
  overflow-y: auto;
  padding: 20px 4px 12px;
  scroll-behavior: smooth;
}

.message {
  margin-bottom: 14px;
}

.user-message {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.message-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.message-bubble {
  max-width: 88%;
  padding: 13px 15px;
  border-radius: 18px;
  line-height: 1.5;
  white-space: pre-line;
}

.assistant-message .message-bubble {
  background: var(--sky);
  border-top-left-radius: 6px;
}

.user-message .message-bubble {
  background: var(--navy);
  color: white;
  border-top-right-radius: 6px;
}

.message-bubble a {
  color: inherit;
  font-weight: 900;
}

.quick-actions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
}

.quick-actions button,
.help-grid button {
  border: 1px solid #b9d8ea;
  background: white;
  color: var(--navy);
  border-radius: 999px;
  padding: 9px 13px;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 900;
}

.quick-actions button:hover,
.help-grid button:hover {
  background: var(--sky);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  border: 1px solid #b9d8ea;
  border-radius: 18px;
  padding: 8px;
  background: #fbfdff;
}

.chat-form textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  min-height: 42px;
  max-height: 120px;
  padding: 10px 8px;
  color: var(--ink);
}

.chat-form button {
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  padding: 11px 18px;
  font-weight: 900;
}

.chat-form button:hover {
  transform: translateY(-1px);
}

.fine-print {
  margin: 10px 4px 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 36px 0 60px;
}

.help-grid article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}

.topic-icon {
  font-size: 1.6rem;
}

.help-grid h3 {
  margin: 12px 0 8px;
  color: var(--navy);
}

.help-grid p {
  color: var(--muted);
  line-height: 1.55;
  min-height: 74px;
}

.help-grid button {
  padding-left: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
}

.contact-strip {
  margin-bottom: 58px;
  padding: 30px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.contact-strip h2 {
  margin: 0 0 6px;
}

.contact-strip p {
  margin: 0;
  color: #d9e9f6;
}

.contact-button {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--navy-dark);
  background: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
}

footer {
  text-align: center;
  padding: 0 16px 30px;
  color: var(--muted);
  font-size: 0.84rem;
}

.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: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }

  .help-grid p {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(100% - 22px, 1180px);
    padding-top: 14px;
  }

  main {
    width: min(100% - 20px, 1180px);
  }

  .header-link {
    display: none;
  }

  .hero {
    gap: 28px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .assistant-card {
    border-radius: 22px;
    padding: 14px;
  }

  .chat {
    height: 350px;
  }

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

  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-button {
    width: 100%;
    text-align: center;
  }
}
