:root {
  --ink: #14213d;
  --muted: #5f6f81;
  --line: #dfe8ef;
  --surface: #ffffff;
  --soft: #f5f8fb;
  --brand: #1267b3;
  --brand-dark: #0c4478;
  --teal: #0d9488;
  --gold: #f4b400;
  --shadow: 0 18px 45px rgba(20, 33, 61, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

p {
  margin: 0;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 800;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 16px rgba(20, 33, 61, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: #2d3e50;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  min-width: 72px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.hero {
  min-height: min(760px, calc(100vh - 74px));
  display: flex;
  align-items: center;
  padding: clamp(72px, 10vw, 130px) clamp(18px, 4vw, 64px);
  background:
    linear-gradient(90deg, rgba(13, 30, 55, 0.9), rgba(13, 30, 55, 0.58), rgba(13, 30, 55, 0.15)),
    url("../images/hero-home-apps.png") center/cover;
}

.hero-content {
  max-width: 760px;
  color: #fff;
}

.hero h1 {
  margin-top: 10px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
}

.hero-copy {
  max-width: 690px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.cta-section .eyebrow {
  color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(18, 103, 179, 0.2);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: clamp(54px, 8vw, 90px) clamp(18px, 4vw, 64px);
}

.intro-grid,
.split-section,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.section h2 {
  margin-top: 10px;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section p {
  margin-top: 16px;
  max-width: 760px;
}

.stats-strip,
.role-list,
.value-band {
  display: grid;
  gap: 14px;
}

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

.stats-strip div,
.role-list div,
.value-band div,
.contact-panel,
.module-grid article,
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats-strip div {
  min-height: 126px;
  padding: 22px;
}

.stats-strip strong {
  display: block;
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.stats-strip span,
.role-list span,
.value-band span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.feature-band {
  background: var(--soft);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.card-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.module-grid article {
  min-height: 230px;
  padding: 24px;
}

.icon-box {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 900;
}

.feature-card h3,
.module-grid h2 {
  font-size: 1.22rem;
}

.feature-card p,
.module-grid p {
  margin-top: 12px;
}

.role-list div {
  min-height: 78px;
  padding: 18px;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(42px, 7vw, 74px) clamp(18px, 4vw, 64px);
  color: #fff;
  background: linear-gradient(135deg, #12355b, #0d766f);
}

.cta-section h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero {
  min-height: 430px;
  padding: clamp(70px, 11vw, 120px) clamp(18px, 4vw, 64px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13, 30, 55, 0.9), rgba(13, 30, 55, 0.42)),
    url("../images/hero-features-apps.png") center/cover;
}

.page-hero.compact {
  min-height: 330px;
}

.about-hero {
  background:
    linear-gradient(90deg, rgba(13, 30, 55, 0.88), rgba(13, 30, 55, 0.35)),
    url("../images/hero-about-apps.png") center/cover;
}

.features-hero {
  background:
    linear-gradient(90deg, rgba(13, 30, 55, 0.9), rgba(13, 30, 55, 0.38)),
    url("../images/hero-features-apps.png") center/cover;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(13, 30, 55, 0.9), rgba(13, 30, 55, 0.38)),
    url("../images/hero-contact-apps.png") center/cover;
}

.policy-hero {
  background:
    linear-gradient(90deg, rgba(13, 30, 55, 0.9), rgba(13, 30, 55, 0.42)),
    url("../images/hero-policy-apps.png") center/cover;
}

.page-hero h1 {
  max-width: 880px;
  margin-top: 10px;
  font-size: clamp(2.6rem, 6vw, 5.1rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

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

.value-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--soft);
}

.value-band div {
  padding: 28px;
}

.value-band strong {
  color: var(--brand);
  font-size: 1.3rem;
}

.contact-panel,
.contact-form {
  align-self: stretch;
}

.contact-panel {
  padding: 28px;
}

.muted {
  color: #7a8794;
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: #24364b;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd7e2;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.policy-page {
  background: #fff;
}

.policy-content {
  max-width: 900px;
}

.policy-content h2 {
  margin-top: 34px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content ul {
  max-width: 900px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.policy-content li {
  margin-top: 10px;
}

.policy-content strong {
  color: var(--ink);
}

.contact-summary {
  margin-top: 38px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.contact-summary h2 {
  margin-top: 0;
}

.contact-summary p {
  margin-top: 10px;
}

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.notice.success {
  color: #064e3b;
  background: #d1fae5;
  border: 1px solid #86efac;
}

.notice.error {
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.admin-body {
  background: #eef4f8;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 3vw, 36px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  color: #2d3e50;
  font-size: 0.9rem;
  font-weight: 800;
}

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

.admin-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.admin-heading {
  margin-bottom: 22px;
}

.admin-heading h1,
.admin-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-heading p,
.admin-card p {
  margin-top: 8px;
}

.admin-card {
  margin-bottom: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-card strong {
  display: block;
  color: var(--brand);
  font-size: 2.4rem;
  line-height: 1;
}

.admin-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-login {
  max-width: 560px;
  margin: 40px auto;
}

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

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-inline-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.admin-code {
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-image-preview {
  display: block;
  max-width: 220px;
  max-height: 130px;
  object-fit: contain;
  margin: 8px 0 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-secondary {
  color: var(--brand);
  border-color: var(--brand);
  background: #fff;
}

.danger {
  color: #fff;
  background: #b91c1c;
}

.admin-small {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check-label input {
  width: auto;
}

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

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--ink);
  background: var(--soft);
}

.admin-status-form {
  min-width: 130px;
}

.policy-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.policy-link-grid a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand);
  background: var(--soft);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(150px, 0.7fr) minmax(240px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 34px clamp(18px, 4vw, 64px);
  background: #101c2e;
  color: #fff;
}

.footer-column {
  min-width: 0;
}

.footer-brand strong {
  display: block;
  font-size: 1.08rem;
}

.site-footer p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-links h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  line-height: 1;
}

.footer-links a:hover {
  color: #fff;
}

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

  .intro-grid,
  .split-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

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

  .site-nav a {
    padding: 13px 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }

  .hero {
    min-height: 650px;
    background:
      linear-gradient(180deg, rgba(13, 30, 55, 0.88), rgba(13, 30, 55, 0.56)),
      url("https://images.unsplash.com/photo-1588072432836-e10032774350?auto=format&fit=crop&w=1000&q=80") center/cover;
  }

  .card-grid,
  .module-grid,
  .stats-strip,
  .value-band,
  .policy-link-grid {
    grid-template-columns: 1fr;
  }

  .cta-section,
  .site-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-nav {
    justify-content: flex-start;
  }

  .admin-grid,
  .admin-inline-form {
    grid-template-columns: 1fr;
  }
}
