:root {
  --deep-navy: #071d3f;
  --primary-blue: #2f80ed;
  --bright-blue: #3b8fef;
  --light-blue: #eaf6ff;
  --bg-light: #f5faff;
  --text-dark: #101828;
  --text-muted: #667085;
  --border: #e5eaf2;
  --white: #ffffff;
  --card-radius: 24px;
  --pill-radius: 999px;
  --shadow-soft: 0 14px 40px rgba(7, 29, 63, 0.09);
  --shadow-light: 0 8px 22px rgba(7, 29, 63, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text-dark);
  background: linear-gradient(180deg, #f5faff 0%, #eaf6ff 100%);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 234, 242, 0.8);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: var(--deep-navy);
  flex-grow: 0;
  flex-shrink: 0;
}

.logo-text {
  white-space: nowrap;
}

.logo-image {
  display: block;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  flex-grow: 0;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--deep-navy);
  display: block;
  position: relative;
  transition: transform 0.2s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--deep-navy);
  background: rgba(59, 143, 239, 0.12);
}

main {
  padding: 2.2rem 0 3rem;
}

.hero-card {
  border-radius: 34px;
  padding: clamp(1.4rem, 2vw + 1rem, 3.2rem);
  background: linear-gradient(135deg, #071d3f 0%, #2f80ed 100%);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -80px;
  top: -110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.eyebrow {
  margin: 0;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.85;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: inherit;
  line-height: 1.2;
}

.hero-title {
  margin: 0.65rem 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 16ch;
}

.hero-text {
  margin: 0;
  max-width: 64ch;
  opacity: 0.95;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn {
  border: none;
  border-radius: var(--pill-radius);
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--white);
  color: var(--deep-navy);
  box-shadow: var(--shadow-light);
}

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

.content-section {
  margin-top: 1.7rem;
}

.section-head {
  margin: 0 0 0.7rem;
  color: var(--deep-navy);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
}

.section-subhead {
  margin: 0;
  color: var(--text-muted);
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-light);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--deep-navy);
  font-size: 1.03rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.panel,
.legal-card,
.contact-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-light);
  padding: clamp(1.1rem, 2vw, 2rem);
}

.page-intro {
  margin-bottom: 1rem;
}

.page-intro h1 {
  margin-bottom: 0.55rem;
  color: var(--deep-navy);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.page-intro p {
  margin: 0;
  color: var(--text-muted);
}

.legal-wrap {
  width: min(900px, 100%);
  margin: 0 auto;
}

.legal-card h1,
.legal-card h2 {
  color: var(--deep-navy);
}

.legal-card h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.legal-card p,
.legal-card li {
  color: #344054;
}

.legal-card ul {
  margin-top: 0.4rem;
}

.legal-card .effective-date {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
  color: #344054;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-group {
  display: grid;
  gap: 0.35rem;
}

label {
  font-weight: 700;
  color: var(--deep-navy);
}

input,
textarea {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fcfdff;
  padding: 0.78rem 0.9rem;
  color: var(--text-dark);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(47, 128, 237, 0.22);
  border-color: var(--bright-blue);
}

.btn-solid {
  background: linear-gradient(135deg, var(--deep-navy), var(--primary-blue));
  color: var(--white);
}

.btn-ghost {
  background: rgba(59, 143, 239, 0.11);
  color: var(--deep-navy);
}

.form-note,
.success-message,
.error-message {
  font-size: 0.93rem;
}

.form-note {
  margin: 0;
  color: var(--text-muted);
}

.error-message {
  color: #b42318;
  display: none;
}

.error-message.show {
  display: block;
}

.success-message {
  display: none;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #027a48;
  border-radius: 12px;
  padding: 0.75rem;
}

.success-message.show {
  display: block;
}

.site-footer {
  border-top: 1px solid rgba(229, 234, 242, 0.85);
  background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-inner small {
  color: #475467;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--deep-navy);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  border: 1px solid rgba(7, 29, 63, 0.2);
  background: var(--white);
  color: var(--deep-navy);
  border-radius: var(--pill-radius);
  padding: 0.5rem 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.6rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-light);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.7rem 0.85rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 1.2rem));
  }

  .hero-card {
    border-radius: 26px;
  }

  .logo-image {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
  }

  .logo {
    gap: 0.4rem;
    font-size: 0.95rem;
  }

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

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

@media (max-width: 360px) {
  .logo-image {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
  }

  .logo-text {
    font-size: 0.85rem;
  }
}
