:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-muted: #eef3ff;
  --text: #10213d;
  --text-soft: #40506c;
  --primary: #0f5bd8;
  --primary-dark: #0a3f96;
  --accent: #14a27b;
  --border: #d2ddf3;
  --shadow: 0 18px 45px rgba(11, 37, 78, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 15% 15%, rgba(20, 162, 123, 0.16), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(15, 91, 216, 0.22), transparent 38%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 50%, #f6f9fd 100%);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-family: "Fraunces", Georgia, serif;
}

p {
  margin: 0;
}

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
  scroll-margin-top: 6rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 10000;
  background: #fff;
  color: #000;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 251, 255, 0.88);
  border-bottom: 1px solid rgba(210, 221, 243, 0.8);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 4.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-weight: 700;
}

.logo-mark {
  width: clamp(2.2rem, 4.4vw, 3rem);
  height: clamp(2.2rem, 4.4vw, 3rem);
  border-radius: clamp(0.65rem, 1.1vw, 0.95rem);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: clamp(1.15rem, 2.3vw, 1.7rem);
  letter-spacing: 0;
}

.logo-text {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-family: "Fraunces", Georgia, serif;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.primary-nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text);
  background: rgba(15, 91, 216, 0.1);
}

.primary-nav a[aria-current="page"] {
  background: var(--primary);
  color: #fff;
}

.primary-nav a[aria-current="page"]:hover,
.primary-nav a[aria-current="page"]:focus-visible {
  background: var(--primary-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 0.65rem;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  padding-top: 6.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  background: rgba(15, 91, 216, 0.12);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 60ch;
  color: var(--text-soft);
  margin-bottom: 1.8rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(16, 33, 61, 0.2);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--border);
  background: #fff;
}

.market-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.market-card h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.market-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.market-card li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.market-card span {
  color: var(--text-soft);
}

.market-card strong {
  color: var(--text);
  font-size: 1.05rem;
}

.market-card .disclaimer {
  font-size: 0.8rem;
  color: #5e6b83;
  margin-top: 0.95rem;
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 62ch;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid-extended {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.feature-card p {
  color: var(--text-soft);
}

.trust-section {
  background: linear-gradient(180deg, rgba(14, 84, 200, 0.09), rgba(20, 162, 123, 0.05));
  border-top: 1px solid rgba(15, 91, 216, 0.15);
  border-bottom: 1px solid rgba(15, 91, 216, 0.15);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
}

.stats-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  padding: 1rem;
}

.stat-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.stat-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.testimonial-card {
  align-self: end;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.testimonial-card h3 {
  margin-bottom: 0.75rem;
}

.testimonial-card p {
  color: var(--text-soft);
}

.testimonial-card .testimonial-author {
  margin-top: 0.9rem;
  color: var(--text);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.2rem 1rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 0.95rem 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  color: var(--text-soft);
  padding-bottom: 1rem;
}

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

.cta-box {
  background: linear-gradient(120deg, #0f5bd8, #0c4eb6);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-box p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 60ch;
  margin: 0 auto;
}

.cta-box .btn-primary {
  justify-self: center;
  background: #fff;
  color: #0c4eb6;
}

.cta-box .btn-primary:hover,
.cta-box .btn-primary:focus-visible {
  background: #e8f0ff;
}

.site-footer {
  padding: 2rem 0 2.4rem;
}

.footer-inner {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  display: grid;
  gap: 0.5rem;
  color: var(--text-soft);
}

.footer-note {
  font-size: 0.92rem;
}

.page-hero {
  padding-top: 6.2rem;
  padding-bottom: 2rem;
}

.home-chatbot-section {
  padding-top: 3rem;
}

.home-chatbot-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.chatbot-header h2,
.chatbot-header h3 {
  font-size: 1rem;
}

.chatbot-body {
  padding: 0.85rem;
  display: grid;
  gap: 0.7rem;
}

.chatbot-body p {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.chatbot-embed-target {
  min-height: 320px;
  border: 1px dashed #9fb4df;
  border-radius: 0.8rem;
  background: #f8faff;
  padding: 0.75rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 940px) {
  .hero-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

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

  .quick-links,
  .feature-grid-extended {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .section {
    padding: 4.5rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    right: 1rem;
    top: 4.1rem;
    width: min(16rem, 90vw);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    box-shadow: var(--shadow);
    padding: 0.55rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.2s ease;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav a {
    display: block;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .quick-links,
  .feature-grid-extended {
    grid-template-columns: 1fr;
  }
}
