:root {
  --navy: #0d1b2a;
  --gold: #c89d5b;
  --gold-soft: #f6efe4;
  --ink: #162235;
  --muted: #5d6b7c;
  --line: #dde4ec;
  --paper: #ffffff;
  --soft: #f7f9fb;
  --soft-navy: #eef3f8;
  --success: #16745f;
  --warning: #9a6824;
  --radius: 8px;
  --maxw: 1180px;
  --font: "Montserrat", "Aptos", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.4rem, 5vw, 5.35rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 3.7vw, 4rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 44px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(13, 27, 42, 0.1);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

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

.brand-link img {
  width: 184px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--gold);
}

.site-nav .nav-action {
  color: #fff;
  background: var(--navy);
}

.site-nav .nav-action:hover {
  color: #fff;
  background: #122942;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--navy);
  background: #fff;
  font: inherit;
  font-weight: 700;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  display: block;
  background: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 8vw, 104px) 0 clamp(34px, 6vw, 78px);
  background:
    linear-gradient(90deg, rgba(246, 239, 228, 0.92), rgba(255, 255, 255, 0.88) 48%, rgba(238, 243, 248, 0.95)),
    #fff;
}

.hero::after {
  content: "";
  position: absolute;
  left: max(18px, calc((100vw - var(--maxw)) / 2 + 44px));
  right: max(18px, calc((100vw - var(--maxw)) / 2 + 44px));
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) calc(100% - 18px), transparent calc(100% - 18px));
}

.hero::before {
  content: "";
  position: absolute;
  right: max(18px, calc((100vw - var(--maxw)) / 2 + 34px));
  bottom: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  z-index: 1;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.78fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

.hero-actions,
.footer-inner,
.portal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

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

.btn-small {
  min-height: 38px;
  color: var(--navy);
  border-color: rgba(200, 157, 91, 0.55);
  background: var(--gold-soft);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.hero-proof div {
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.hero-proof dt {
  color: var(--navy);
  font-weight: 900;
}

.hero-proof dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.portal-preview {
  border: 1px solid rgba(13, 27, 42, 0.1);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--navy);
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.2);
}

.preview-topbar,
.pipeline,
.lead-list p {
  display: flex;
  align-items: center;
}

.preview-topbar {
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}

.preview-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.preview-topbar em {
  color: #d8e0e8;
  font-size: 0.78rem;
  font-style: normal;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.pipeline div,
.lead-card,
.lead-list {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.pipeline div {
  padding: 12px;
}

.pipeline span,
.lead-card span {
  display: block;
  color: #c9d3df;
  font-size: 0.76rem;
  font-weight: 700;
}

.pipeline strong {
  display: block;
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
}

.lead-card {
  padding: 16px;
}

.lead-card strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
}

.lead-card p {
  margin-bottom: 0;
  color: #d8e0e8;
}

.lead-card.hot {
  border-color: rgba(200, 157, 91, 0.6);
  background: rgba(200, 157, 91, 0.13);
}

.lead-list {
  margin-top: 12px;
  padding: 8px 14px;
}

.lead-list p {
  gap: 9px;
  margin: 8px 0;
  color: #d8e0e8;
  font-size: 0.9rem;
}

.lead-list span {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--gold);
}

.section {
  padding: clamp(58px, 8vw, 110px) 0;
}

.split-grid,
.process-layout,
.security-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 78px);
}

.copy-stack p,
.section-heading p,
.section-copy,
.security-grid p,
.about-grid p,
.contact-grid p {
  color: var(--muted);
}

.service-section,
.platform-section,
.about-section {
  background: var(--soft);
}

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

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

.service-grid article,
.security-list article,
.about-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.service-grid article {
  padding: 22px;
}

.service-grid span {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.15em;
}

.service-grid p,
.timeline span,
.security-list p {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.timeline li {
  position: relative;
  border-left: 4px solid var(--gold);
  padding: 4px 0 18px 22px;
  counter-increment: steps;
}

.timeline li::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  color: var(--gold);
  font-weight: 900;
}

.timeline strong,
.timeline span {
  display: block;
}

.portal-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(13, 27, 42, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 22px 58px rgba(13, 27, 42, 0.11);
}

.portal-sidebar {
  padding: 20px;
  background: var(--navy);
}

.portal-sidebar img {
  width: 150px;
  margin-bottom: 26px;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
}

.portal-sidebar nav {
  display: grid;
  gap: 8px;
}

.portal-sidebar button {
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  color: #d8e0e8;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.portal-sidebar button.active,
.portal-sidebar button:hover {
  color: #fff;
  background: rgba(200, 157, 91, 0.16);
}

.portal-main {
  padding: 24px;
}

.portal-header {
  justify-content: space-between;
  margin-bottom: 18px;
}

.portal-header h3 {
  margin-bottom: 0;
}

.portal-label {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portal-widgets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.portal-widgets div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--soft);
}

.portal-widgets span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.portal-widgets strong {
  color: var(--navy);
  font-size: 1.85rem;
  line-height: 1;
}

.upload-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  border: 1px dashed rgba(200, 157, 91, 0.8);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--gold-soft);
}

.upload-panel h4 {
  margin-bottom: 4px;
}

.upload-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.upload-zone {
  flex: 0 0 auto;
  cursor: pointer;
}

.upload-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.upload-zone span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
}

.lead-table-wrap {
  overflow-x: auto;
}

.lead-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.lead-table caption {
  text-align: left;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}

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

.lead-table th {
  color: var(--navy);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status.hot {
  color: var(--success);
  background: #e8f6f0;
}

.status.warm {
  color: var(--warning);
  background: #fff3dd;
}

.status.neutral {
  color: #476173;
  background: #eef3f8;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.security-list article {
  padding: 20px;
}

.about-card {
  min-height: 320px;
  display: grid;
  align-content: center;
  justify-items: center;
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.92), rgba(13, 27, 42, 0.98)),
    var(--navy);
  color: #fff;
}

.about-card span {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.about-card strong {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
  text-transform: uppercase;
}

.contact-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(246, 239, 228, 0.72), rgba(255, 255, 255, 0.92) 42%, rgba(238, 243, 248, 0.78)),
    #fff;
}

.contact-section::before {
  content: "";
  position: absolute;
  left: max(18px, calc((100vw - var(--maxw)) / 2 + 44px));
  right: max(18px, calc((100vw - var(--maxw)) / 2 + 44px));
  top: 38px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) calc(100% - 18px), transparent calc(100% - 18px));
}

.contact-section::after {
  content: "";
  position: absolute;
  top: 27px;
  right: max(18px, calc((100vw - var(--maxw)) / 2 + 38px));
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
}

.contact-watermark {
  position: absolute;
  right: -90px;
  bottom: 18px;
  width: min(760px, 72vw);
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
}

.contact-grid {
  position: relative;
  z-index: 1;
  align-items: center;
}

.contact-copy {
  max-width: 620px;
}

.contact-logo {
  width: min(330px, 72vw);
  margin-bottom: 28px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  box-shadow: 0 22px 54px rgba(13, 27, 42, 0.1);
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin-bottom: 0;
  color: var(--success);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  background: #fff;
}

.portal-login-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(13, 27, 42, 0.86)),
    var(--navy);
}

.portal-login {
  width: min(1180px, calc(100% - 36px));
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 78px) 0;
}

.portal-login-panel,
.portal-admin-preview {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.portal-login-panel {
  padding: clamp(22px, 4vw, 38px);
}

.portal-login-panel img {
  width: min(360px, 82vw);
  margin-bottom: 28px;
}

.portal-login-panel h1 {
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.portal-login-panel p {
  color: var(--muted);
}

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

.portal-status {
  min-height: 26px;
  margin: 0;
  font-weight: 800;
}

.portal-status[data-state="error"] {
  color: #a53737;
}

.portal-status[data-state="ok"] {
  color: var(--success);
}

.portal-admin-preview {
  padding: clamp(22px, 4vw, 34px);
}

.portal-admin-preview[hidden] {
  display: none;
}

.portal-admin-preview .portal-widgets {
  margin: 22px 0;
}

.portal-note {
  border-left: 4px solid var(--gold);
  padding-left: 14px;
  color: var(--muted);
}

.content-editor {
  margin: 26px 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-section-head h3 {
  margin-bottom: 0;
}

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

.content-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.content-fields label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}

.content-fields label:nth-child(1),
.content-fields label:nth-child(2),
.content-fields label:nth-child(4),
.content-fields label:nth-child(5),
.content-fields label:nth-child(12),
.content-fields label:nth-child(13),
.content-fields label:nth-child(14) {
  grid-column: 1 / -1;
}

.content-fields span {
  font-size: 0.86rem;
}

.content-fields input,
.content-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
}

.content-fields textarea {
  resize: vertical;
}

.footer-inner {
  justify-content: space-between;
}

.footer-inner img {
  width: 190px;
}

.footer-inner p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
}

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

  .site-nav {
    position: absolute;
    inset: 74px 18px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: #fff;
    box-shadow: 0 22px 48px rgba(13, 27, 42, 0.16);
  }

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

  .hero-grid,
  .split-grid,
  .process-layout,
  .security-grid,
  .about-grid,
  .contact-grid,
  .portal-login {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .portal-widgets,
  .security-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    display: none;
  }
}

@media (max-width: 680px) {
  .brand-link img {
    width: 142px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-proof,
  .service-grid,
  .pipeline,
  .portal-widgets,
  .security-list {
    grid-template-columns: 1fr;
  }

  .upload-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-zone span,
  .btn {
    width: 100%;
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }

  .admin-section-head,
  .content-fields {
    grid-template-columns: 1fr;
  }

  .admin-section-head {
    display: grid;
  }

  .content-fields label:nth-child(n) {
    grid-column: auto;
  }

  .contact-watermark {
    right: -180px;
    width: 620px;
    opacity: 0.04;
  }

  .contact-logo {
    width: min(280px, 82vw);
  }

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