:root {
  --nav-bg: #ffffff;
  --brand-blue: #004b87;
  --brand-dark: #0a192f;
  --accent: #ff6600;
  --text-dark: #333333;
  --text-light: #ffffff;
  --gray-bg: #f4f4f4;
  --border-light: #dcdcdc;
  --muted: #6b7280;
  --success-bg: #fff1e8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  line-height: 1.5;
}

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

.container {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
}

.navbar {
  background: var(--nav-bg);
  border-bottom: 1px solid #e8e8e8;
  position: relative;
  z-index: 100;
}

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

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--brand-blue);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text strong {
  color: var(--brand-blue);
  font-size: 20px;
  font-weight: 800;
}

.logo-text span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--brand-blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--text-light);
  padding: 12px 18px;
  font-weight: 800;
  border-radius: 4px;
}

.hero {
  background:
    linear-gradient(rgba(10, 25, 47, 0.76), rgba(10, 25, 47, 0.86)),
    url("https://images.unsplash.com/photo-1519003722824-194d4455a60c?auto=format&fit=crop&w=1800&q=80") center center / cover no-repeat;
  color: var(--text-light);
}

.hero-inner {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
  padding: 84px 0 76px;
}

.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-light);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
  font-weight: 800;
  max-width: 900px;
  margin-bottom: 22px;
}

.hero p {
  font-size: 21px;
  max-width: 820px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  font-weight: 800;
  border-radius: 4px;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-light);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-secondary {
  color: var(--text-light);
  border: 2px solid rgba(255,255,255,0.55);
  background: transparent;
}

.btn-secondary:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 14px;
  max-width: 880px;
}

.stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 18px 18px;
  backdrop-filter: blur(3px);
}

.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.stat span {
  font-size: 13px;
  color: rgba(255,255,255,0.86);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 26px;
  backdrop-filter: blur(4px);
}

.hero-panel h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-panel ul {
  list-style: none;
  display: grid;
  gap: 14px;
}

.hero-panel li {
  padding: 14px 14px 14px 16px;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.93);
  font-size: 15px;
}

.section {
  padding: 88px 0;
}

.section.gray {
  background: var(--gray-bg);
}

.section.dark {
  background: var(--brand-dark);
  color: var(--text-light);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 38px;
  max-width: 980px;
}

.section-head .label {
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section.dark .section-head .label {
  color: #8ec1ff;
}

.section-head h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  font-weight: 800;
}

.section-head p {
  font-size: 20px;
  color: inherit;
  opacity: 0.92;
  max-width: 1050px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 30px 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card h3 {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 14px;
}

.card p {
  font-size: 18px;
  color: var(--text-dark);
}

.card.dark-card {
  background: rgba(255,255,255,0.98);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--success-bg);
  border: 1px solid rgba(255, 102, 0, 0.18);
}

.feature-band {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.feature-copy,
.feature-box {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  padding: 28px;
}

.feature-copy p,
.feature-box p {
  font-size: 18px;
  color: rgba(255,255,255,0.92);
}

.feature-box ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.feature-box li {
  font-size: 16px;
  color: rgba(255,255,255,0.92);
  padding-left: 18px;
  position: relative;
}

.feature-box li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 9px;
}

.powered-box {
  margin-top: 18px;
  max-width: 1180px;
  border-left: 6px solid var(--accent);
  padding-left: 22px;
}

.powered-box p {
  font-size: 22px;
  line-height: 1.6;
  color: rgba(255,255,255,0.94);
}

.cta {
  background: linear-gradient(90deg, var(--brand-blue), #00335d);
  color: var(--text-light);
  padding: 86px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
}

.cta h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta p {
  font-size: 20px;
  max-width: 850px;
  color: rgba(255,255,255,0.92);
}

.footer {
  background: #071424;
  color: rgba(255,255,255,0.82);
  padding: 34px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer strong {
  color: #ffffff;
}

@media (max-width: 1200px) {
  .hero-inner,
  .feature-band,
  .cta-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

@media (max-width: 1200px) {
  .hero-inner,
  .feature-band,
  .cta-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, 1400px);
  }

  .nav-inner {
    padding: 14px 0;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
  }

  .logo-mark {
    display: none;
  }

  .nav-links {
    display: none !important;
  }

  .hero-inner {
    min-height: auto;
    padding: 66px 0 58px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p,
  .section-head p,
  .powered-box p,
  .cta p,
  .card p {
    font-size: 17px;
  }

  .hero-stats,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #ffffff;
  width: min(500px, 90%);
  border-radius: 8px;
  padding: 24px 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 700;
}

.modal-head {
  margin-bottom: 20px;
  text-align: center;
}

.modal-head h2 {
  color: var(--brand-blue);
  font-size: 26px;
  margin-bottom: 8px;
}

.modal-head p {
  color: var(--muted);
}

.onboarding-form {
  display: grid;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-blue);
}

.form-field input, 
.form-field select, 
.form-field textarea {
  padding: 10px 12px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field input:focus, 
.form-field select:focus, 
.form-field textarea:focus {
  border-color: var(--brand-blue);
}

.form-submit {
  background: var(--accent);
  color: #ffffff;
  padding: 14px;
  border: none;
  border-radius: 4px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 5px;
}

.form-submit:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

.success-message {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.success-message h3 {
  color: var(--brand-blue);
  font-size: 28px;
  margin-bottom: 15px;
}

.success-message p {
  color: var(--muted);
}

@media (max-width: 600px) {
  .modal-content {
    padding: 30px 20px;
  }
}
