/* DoorForce Marketing — American enterprise brand system */
:root {
  --navy: #0a2342;
  --navy-deep: #06162b;
  --navy-mid: #12325c;
  --red: #c8102e;
  --red-deep: #9b0c24;
  --white: #ffffff;
  --off-white: #f5f7fb;
  --slate: #334155;
  --muted: #64748b;
  --line: rgba(10, 35, 66, 0.12);
  --shadow: 0 18px 40px rgba(6, 22, 43, 0.14);
  --radius: 14px;
  --max: 1140px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-top);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--red); }

.nav-cta { display: flex; gap: 0.6rem; align-items: center; }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  color: var(--navy);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(200, 16, 46, 0.35); outline-offset: 2px; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy-mid); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Hero — one composition, full-bleed */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(200, 16, 46, 0.35), transparent 55%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 48%, var(--navy-mid) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: min(62vw, 640px);
  height: min(62vw, 640px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.28), transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4.5rem;
  max-width: 720px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--white);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  max-width: 18ch;
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background:
    linear-gradient(180deg, var(--off-white), #eef2f8 100%);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 0.55rem;
}

.section-navy .eyebrow { color: #ffb3bf; }

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-transform: uppercase;
}

.section-navy h2 { color: var(--white); }

.lead {
  margin: 0 0 2.25rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-navy .lead { color: rgba(255, 255, 255, 0.82); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  min-height: 118px;
  box-shadow: 0 8px 24px rgba(10, 35, 66, 0.05);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card.is-in {
  opacity: 1;
  transform: none;
}

.feature-card:hover {
  border-color: rgba(200, 16, 46, 0.35);
  box-shadow: var(--shadow);
}

.feature-card .mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(200, 16, 46, 0.1);
  color: var(--red);
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Industries */
.industry-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.industry-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-weight: 600;
}

/* Why list */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.5rem;
}

.why-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.why-item .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 0.15rem;
}

.why-item strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
}

/* Portal / download cards — interaction containers */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.portal-card,
.download-card,
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
  box-shadow: 0 10px 28px rgba(10, 35, 66, 0.06);
}

.portal-card h3,
.download-card h3,
.price-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 600;
}

.portal-card p,
.download-card p,
.price-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.portal-card .url {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--navy-mid);
  word-break: break-all;
}

/* Pricing */
.price-card.featured {
  border-color: var(--red);
  box-shadow: var(--shadow);
  position: relative;
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--navy);
  margin: 0.4rem 0 1rem;
}

.price-card ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--slate);
}

.price-card li { margin: 0.35rem 0; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}

input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  background: var(--white);
  color: var(--slate);
}

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

.form-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Page hero (inner pages) */
.page-hero {
  background:
    linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--navy-mid));
  color: var(--white);
  padding: 4rem 0 3rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.page-hero p {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.88);
}

/* Downloads */
.device-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(10, 35, 66, 0.06);
  border: 1px solid var(--line);
}

.device-banner strong { color: var(--navy); }

.meta-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 2rem;
}

.meta-list div {
  background: var(--off-white);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--line);
}

.meta-list span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.meta-list strong { color: var(--navy); }

.release-notes {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--red);
  background: var(--off-white);
  border-radius: 0 12px 12px 0;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 calc(2rem + var(--safe-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer a:hover { color: #ffb3bf; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.92rem;
}

/* Placeholder pages */
.placeholder-panel {
  border: 1px dashed rgba(10, 35, 66, 0.25);
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2rem;
}

/* Video modal */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 22, 43, 0.72);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-card {
  width: min(860px, 100%);
  background: var(--navy-deep);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.modal-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  color: white;
}

.modal-card iframe,
.modal-card .video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  text-align: center;
}

.legal {
  max-width: 760px;
  color: var(--ink);
  line-height: 1.65;
}

.legal h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin: 1.75rem 0 0.65rem;
  font-size: 1.35rem;
}

.legal ul {
  margin: 0.5rem 0 1rem 1.15rem;
}

.coming-soon {
  max-width: 640px;
}

.coming-soon .badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(200, 16, 46, 0.35);
  color: var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Reveal utility */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover { transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .meta-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .menu-toggle { display: inline-flex; }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav.is-open .nav-links,
  .nav.is-open .nav-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.75rem;
  }
  .nav { position: relative; flex-wrap: wrap; }
  .feature-grid,
  .card-grid,
  .why-grid,
  .form-grid,
  .meta-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner { padding: 4.25rem 0 3.25rem; }
  .section { padding: 3.5rem 0; }
}
