:root {
  --bg: #f5f7fb;
  --bg-soft: #eef3f9;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --ink: #132033;
  --muted: #5a6780;
  --line: rgba(19, 32, 51, 0.1);
  --accent: #0d5bd7;
  --accent-dark: #0a42a0;
  --accent-soft: #eaf2ff;
  --footer: #0f203c;
  --shadow: 0 26px 70px rgba(18, 34, 63, 0.08);
  --shadow-soft: 0 16px 34px rgba(18, 34, 63, 0.06);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --title-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --body-font: "Avenir Next", Montserrat, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--body-font);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(13, 91, 215, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 38%, #eef3f9 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(13, 91, 215, 0.045), transparent 20%),
    radial-gradient(circle at 78% 24%, rgba(43, 124, 255, 0.05), transparent 22%);
  z-index: 0;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

figure {
  margin: 0;
}

.site-header,
.section,
.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  margin-top: 12px;
  border-radius: 22px;
  background: rgba(248, 251, 255, 0.82);
  border: 1px solid rgba(19, 32, 51, 0.06);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(18, 34, 63, 0.04);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(18, 34, 63, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-wordmark {
  flex: 0 0 auto;
}

.brand-logo {
  width: auto;
  height: 52px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #2b7cff 100%);
  color: white;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.92rem;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span {
  color: var(--muted);
}

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

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.header-cta,
.primary-button,
.composer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--accent) 0%, #2b7cff 100%);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(13, 91, 215, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
  text-decoration: none;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 91, 215, 0.16);
  border-radius: 999px;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent-dark);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  text-decoration: none;
}

.header-cta:hover,
.primary-button:hover,
.composer button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.section {
  padding: 44px 0;
}

.eyebrow,
.section-kicker,
.panel-kicker,
.unlock-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--accent-dark);
}

.landing-hero h1,
.landing-hero h2,
.assistant-launch-copy h2,
.assistant-launch-copy h1,
.statement-copy h2,
.feature-copy h2,
.privacy-card h2,
.chat-header h2,
.unlock-card h3,
.modal-card h2,
.legal-shell h1,
.legal-shell h2,
.admin-header h1,
.admin-card h2,
.faq-section h2 {
  font-family: var(--title-font);
  letter-spacing: -0.03em;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 30px;
  align-items: center;
  padding-top: 18px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 14px 0 18px;
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.94;
}

.hero-lead,
.section-heading p,
.hero-support-text,
.assistant-launch-copy p,
.statement-copy p,
.feature-copy p,
.feature-copy li,
.privacy-card p,
.privacy-note-card p,
.composer-note,
.faq-item p,
.modal-text,
.privacy-copy p,
.legal-shell p,
.legal-shell li {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lead {
  max-width: 58ch;
  font-size: 1.08rem;
}

.hero-support-text {
  max-width: 50ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-stat-card,
.launch-benefit,
.category-card,
.privacy-note-card,
.faq-item,
.hero-floating-card,
.feature-copy,
.feature-image,
.statement-copy,
.statement-image,
.privacy-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.hero-stat-card {
  padding: 18px;
  border-radius: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-stat-card strong,
.launch-benefit strong,
.category-card h3,
.feature-copy h3,
.privacy-note-card h3 {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.hero-stat-card span,
.launch-benefit span,
.category-card p {
  color: var(--muted);
  line-height: 1.55;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.hero-main-image {
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: floatHero 9s ease-in-out infinite;
}

.hero-main-image img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow-one {
  top: -24px;
  right: 26px;
  width: 160px;
  height: 160px;
  background: rgba(13, 91, 215, 0.16);
}

.hero-glow-two {
  bottom: 84px;
  left: -18px;
  width: 120px;
  height: 120px;
  background: rgba(43, 124, 255, 0.12);
}

.hero-floating-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  animation: floatCard 7s ease-in-out infinite;
}

.hero-floating-card h2 {
  margin: 10px 0 10px;
  font-size: 2rem;
  font-family: var(--title-font);
}

.prompt-list,
.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prompt-list {
  margin-top: 18px;
}

.prompt-chip,
.topic-pill {
  border: 1px solid rgba(13, 91, 215, 0.14);
  border-radius: 999px;
  padding: 12px 15px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.hero-stat-card:hover,
.launch-benefit:hover,
.category-card:hover,
.faq-item:hover,
.topic-pill:hover,
.prompt-chip:hover,
.feature-copy:hover,
.privacy-note-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(18, 34, 63, 0.1);
}

.assistant-launch {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  gap: 28px;
  align-items: stretch;
  padding-top: 18px;
}

.assistant-launch-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.assistant-launch-copy h2,
.assistant-launch-copy h1,
.statement-copy h2,
.feature-copy h2,
.privacy-card h2,
.faq-section h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.assistant-launch-copy h1 {
  max-width: 11ch;
  line-height: 0.95;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.launch-benefits {
  display: grid;
  gap: 14px;
}

.launch-benefit {
  padding: 18px 20px;
  border-radius: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.assistant-card,
.modal-card,
.admin-card,
.admin-table-wrap,
.legal-shell {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.assistant-card {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.assistant-card-primary {
  min-height: 720px;
}

.hero-chat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.96) 100%);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chat-header h2,
.faq-section h2 {
  margin: 10px 0 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-window {
  min-height: 460px;
  max-height: 560px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(13, 91, 215, 0.06), transparent 24%),
    #fbfdff;
  overflow: auto;
}

.message {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.message-role {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.message-bubble {
  width: fit-content;
  max-width: min(86%, 62ch);
  padding: 16px 18px;
  border-radius: 20px;
  line-height: 1.65;
  white-space: pre-wrap;
  box-shadow: var(--shadow-soft);
}

.message.assistant .message-bubble {
  background: white;
  border: 1px solid rgba(19, 32, 51, 0.06);
}

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

.message.user .message-bubble {
  background: var(--accent-soft);
}

.unlock-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px;
  margin-top: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 100%);
  border: 1px solid rgba(13, 91, 215, 0.16);
}

.unlock-card h3 {
  margin: 8px 0;
  font-size: 1.6rem;
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 16px;
}

.composer textarea,
.lead-form input,
.admin-card input {
  width: 100%;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: 18px;
  padding: 16px 18px;
  background: white;
  color: var(--ink);
  resize: none;
}

.composer textarea:focus,
.lead-form input:focus,
.admin-card input:focus {
  outline: 2px solid rgba(13, 91, 215, 0.18);
  border-color: rgba(13, 91, 215, 0.28);
}

.composer-note {
  margin: 12px 4px 0;
  font-size: 0.95rem;
}

.statement-band,
.feature-row,
.privacy-layout {
  display: grid;
  gap: 22px;
  align-items: center;
}

.statement-band {
  grid-template-columns: 0.95fr 1.05fr;
}

.statement-copy,
.privacy-card,
.privacy-note-card {
  padding: 30px;
  border-radius: var(--radius-xl);
}

.statement-image,
.feature-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.statement-image img,
.feature-image img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.feature-row {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.feature-row.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.feature-copy {
  padding: 30px;
  border-radius: var(--radius-xl);
}

.feature-list {
  display: grid;
  gap: 12px;
  padding-left: 18px;
  margin: 18px 0 24px;
}

.steps-stack {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.step-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.step-card h3 {
  margin: 2px 0 6px;
}

.step-card p {
  margin: 0;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.category-card {
  padding: 18px 20px;
  border-radius: 20px;
}

.faq-section .section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

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

.faq-item {
  padding: 22px;
  border-radius: 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.faq-item p {
  margin: 14px 0 0;
}

.privacy-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.legal-links,
.modal-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 28px;
  margin-bottom: 28px;
  border-radius: var(--radius-xl);
  background: var(--footer);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 28px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: auto;
  height: 56px;
  filter: brightness(0) invert(1);
}

.footer-brand p,
.footer-copy {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.footer-copy {
  max-width: 54ch;
  margin: 14px 0 0;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 230px;
}

.footer-title {
  color: white;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-links-group a {
  color: rgba(255, 255, 255, 0.88);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@keyframes floatHero {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

.access-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 18, 34, 0.54);
  z-index: 30;
}

.access-modal.is-hidden {
  display: none;
}

.modal-card,
.admin-card,
.admin-table-wrap,
.legal-shell {
  width: min(100%, 760px);
  padding: 32px;
  border-radius: 28px;
}

.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  line-height: 1.6;
}

.checkbox-row input {
  margin-top: 4px;
}

.modal-benefits span {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.93rem;
}

.privacy-box {
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.privacy-box summary {
  cursor: pointer;
  font-weight: 700;
}

.privacy-copy {
  margin-top: 14px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-error {
  margin: 0;
  color: #af2626;
}

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

.legal-shell {
  margin: 40px auto 60px;
}

.legal-shell h1 {
  margin-top: 0;
}

.legal-shell h2 {
  margin-top: 28px;
  font-size: 1.8rem;
}

.legal-shell ul {
  padding-left: 18px;
}

.legal-meta {
  color: var(--muted);
  margin-bottom: 22px;
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-gate {
  display: grid;
  place-items: center;
  padding-top: 52px;
}

.admin-card {
  max-width: 540px;
}

.admin-table-wrap {
  width: 100%;
  overflow: auto;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
}

.leads-table th,
.leads-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.leads-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
}

.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: 1120px) {
  .landing-hero,
  .assistant-launch,
  .statement-band,
  .feature-row,
  .feature-row.reverse,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-copy h2,
  .assistant-launch-copy h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: 520px;
  }

  .assistant-card-primary {
    min-height: auto;
  }

  .faq-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header,
  .section,
  .site-footer {
    width: min(100% - 24px, 1200px);
  }

  .site-header,
  .site-footer,
  .chat-header,
  .unlock-card,
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-stats,
  .faq-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 440px;
  }

  .hero-floating-card {
    position: static;
    margin-top: -40px;
  }

  .statement-image img,
  .feature-image img {
    min-height: 320px;
  }

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

@media (max-width: 640px) {
  .section {
    padding: 30px 0;
  }

  .site-nav {
    display: none;
  }

  .site-header {
    margin-top: 8px;
    padding: 14px 16px;
  }

  .brand-logo {
    height: 44px;
  }

  .assistant-card,
  .statement-copy,
  .feature-copy,
  .privacy-card,
  .privacy-note-card,
  .modal-card,
  .admin-card,
  .admin-table-wrap,
  .legal-shell {
    padding: 22px;
    border-radius: 22px;
  }

  .hero-main-image,
  .feature-image,
  .statement-image,
  .site-footer {
    border-radius: 22px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .assistant-launch-copy h2,
  .assistant-launch-copy h1,
  .statement-copy h2,
  .feature-copy h2,
  .privacy-card h2,
  .faq-section h2,
  .chat-header h2,
  .legal-shell h1,
  .admin-header h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-floating-card {
    padding: 18px;
    border-radius: 22px;
  }

  .chat-window {
    min-height: 320px;
    max-height: 380px;
    padding: 16px;
  }

  .composer textarea {
    min-height: 96px;
  }

  .footer-links-group {
    min-width: 0;
  }

  .hero-glow {
    display: none;
  }

  .footer-logo {
    height: 48px;
  }
}
