:root {
  --green: #5dc311;
  --green-dark: #3d9708;
  --navy: #071422;
  --navy-soft: #101b2f;
  --ink: #1f2933;
  --muted: #617080;
  --line: rgba(7, 20, 34, 0.1);
  --surface: #ffffff;
  --soft: #f5f8f5;
  --shadow: 0 18px 45px rgba(7, 20, 34, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(16, 27, 47, 0.62);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}
.site-header.is-scrolled {
  background: rgba(7, 20, 34, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 180px; max-height: 52px; object-fit: contain; }
.brand-fallback {
  display: none;
  color: #fff;
  font-weight: 800;
  font-size: 24px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}
.site-nav a {
  color: #fff;
  padding: 2px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 700;
}
.site-nav a:last-child { border-right: 0; }
.site-nav a:hover, .site-nav a.active { color: var(--green); }
.dashboard-btn {
  color: #fff;
  background: var(--green);
  padding: 11px 18px;
  border-radius: 4px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(93, 195, 17, 0.25);
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 20%, rgba(93,195,17,0.28), transparent 30%),
    linear-gradient(135deg, #071422 0%, #122441 58%, #071422 100%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,20,34,0.88), rgba(7,20,34,0.62), rgba(7,20,34,0.3));
}
.hero-content {
  position: relative;
  color: #fff;
  padding-top: 94px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}
.hero h1, .page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 820px;
}
.hero h1 span, h2 span { color: var(--green); }
.hero-copy {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255,255,255,0.88);
  font-size: 19px;
}
.hero-actions, .center-actions, .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-actions { margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(93,195,17,0.24);
}
.btn-primary:hover { background: var(--green-dark); }
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-outline {
  border-color: var(--green);
  color: var(--green-dark);
  background: #fff;
}
.btn-ghost {
  color: var(--navy);
  background: #eef3ee;
}

.section { padding: 88px 0; }
.section-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 42px;
}
.section-head h2, .contact-panel h2, .form-card h2, .application-intro h2, .map-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}
.section-head p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 760px;
}
.section-head.compact { margin-bottom: 26px; }

.affiliate-section {
  background:
    radial-gradient(circle at 10% 24%, rgba(93,195,17,0.11), transparent 28%),
    linear-gradient(180deg, #fff, #f7fbf6);
}
.advertiser-section {
  background: var(--navy);
  color: #fff;
}
.advertiser-section .section-head h2,
.advertiser-section .section-head p { color: #fff; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  min-height: 240px;
  box-shadow: 0 6px 24px rgba(7,20,34,0.06);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(var(--green), #18a8e8);
}
.feature-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 18px;
}
.feature-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 20px;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
}
.feature-grid.dark .feature-card {
  background: rgba(255,255,255,0.98);
}
.center-actions {
  justify-content: center;
  margin-top: 34px;
}

.dual-cta-section {
  padding: 54px 0;
  background: linear-gradient(135deg, #122441, #071422);
}
.dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.dual-grid article {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 34px;
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.dual-grid h2 { margin: 0 0 4px; font-size: 26px; }
.dual-grid p { margin: 0 0 22px; color: rgba(255,255,255,0.76); }

.partners-section { padding-top: 58px; padding-bottom: 58px; }
.partners {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.partners a {
  min-width: 190px;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7,20,34,0.07);
}
.partners img { max-height: 46px; width: auto; }

.contact-section {
  background: linear-gradient(180deg, #f7fbf6, #fff);
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 32px;
  align-items: start;
}
.contact-panel, .form-card, .application-form, .application-intro, .map-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.contact-panel {
  padding: 34px;
  min-height: 100%;
}
.contact-panel p { color: var(--muted); }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 16px;
}
.contact-list li {
  display: grid;
  gap: 2px;
  padding-left: 16px;
  border-left: 4px solid var(--green);
}
.contact-list b { color: var(--navy); }
.contact-list a, .contact-list span { color: var(--muted); }

form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}
form label span { font-size: 14px; }
input, textarea, select {
  width: 100%;
  border: 1px solid #d9e1dc;
  border-radius: 4px;
  background: #fff;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(93,195,17,0.14);
  outline: none;
}
.form-card {
  padding: 34px;
  display: grid;
  gap: 18px;
}
.form-card h2 { margin-bottom: 0; }
.form-card p { margin: 0; color: var(--muted); }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-status {
  min-height: 24px;
  color: var(--green-dark);
  font-weight: 800;
}

.map-section {
  padding: 0 0 88px;
  background: #fff;
}
.map-card {
  padding: 24px;
}
.map-card p { color: var(--muted); margin-top: 0; }
.map-card iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 8px;
  display: block;
  filter: saturate(0.95);
}

.page-hero {
  padding: 180px 0 92px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 25%, rgba(93,195,17,0.22), transparent 26%),
    linear-gradient(135deg, rgba(7,20,34,0.94), rgba(16,27,47,0.9)),
    url("../images/inner-banner.jpg") center/cover no-repeat;
}
.page-hero p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255,255,255,0.82);
  font-size: 18px;
}
.application-section {
  background: linear-gradient(180deg, #f7fbf6, #fff);
}
.app-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 30px;
  align-items: start;
}
.application-intro {
  padding: 32px;
  position: sticky;
  top: 112px;
}
.application-intro p { color: var(--muted); }
.mini-stats {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.mini-stats div {
  padding: 16px;
  border-radius: 8px;
  background: #f4f9f1;
  border: 1px solid rgba(93,195,17,0.22);
}
.mini-stats b {
  display: block;
  color: var(--green-dark);
  font-size: 24px;
}
.mini-stats span { color: var(--muted); }
.application-form {
  padding: 32px;
  display: grid;
  gap: 26px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
legend {
  width: 100%;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  color: rgba(255,255,255,0.78);
  background: #071422;
  padding: 56px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}
.footer-logo img { width: 170px; margin-bottom: 18px; }
.site-footer h3 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 18px;
}
.site-footer p { margin: 0 0 12px; }
.site-footer a {
  display: block;
  margin: 0 0 10px;
}
.site-footer a:hover { color: var(--green); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer-bottom div {
  display: flex;
  gap: 18px;
}
.footer-bottom a, .footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .header-inner { min-height: 74px; }
  .brand img { width: 150px; }
  .nav-toggle { display: block; margin-left: auto; }
  .dashboard-btn { display: none; }
  .site-nav {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    border-radius: 8px;
    background: rgba(7,20,34,0.98);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a {
    border-right: 0;
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .hero { min-height: 650px; }
  .feature-grid, .contact-layout, .app-layout, .footer-grid {
    grid-template-columns: 1fr;
  }
  .application-intro { position: static; }
  .dual-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1140px); }
  .section { padding: 64px 0; }
  .hero { min-height: 620px; }
  .hero h1, .page-hero h1 { font-size: 40px; }
  .hero-copy { font-size: 16px; }
  .feature-card, .contact-panel, .form-card, .application-form, .application-intro, .map-card, .dual-grid article {
    padding: 22px;
  }
  .form-row, .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }
  .footer-bottom div { flex-wrap: wrap; }
  .page-hero { padding-top: 144px; }
}
