*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background: var(--page-bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  background: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-soft);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-link img,
.logo-link-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(26, 29, 53, 0.12));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: var(--text-base);
  font-weight: 700;
}

.logo-text span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: var(--space-3) var(--space-4);
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
}

.mobile-nav a:hover {
  background: var(--surface-2);
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  padding: var(--space-16) 0 var(--space-12);
  background: transparent;
}

.hero-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero h1 {
  margin: 0 0 var(--space-5);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  font-weight: 800;
}

.hero-lead {
  margin: 0 0 var(--space-6);
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: var(--leading-relaxed);
  max-width: 32rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  background: linear-gradient(to top, rgba(15, 20, 25, 0.95) 0%, transparent 60%);
}

.hero-visual-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
}

.hero-visual-placeholder svg {
  width: 5rem;
  height: 5rem;
  color: var(--blue);
  opacity: 0.4;
}

.hero-visual-caption {
  position: relative;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Sections */
.section {
  padding: var(--space-16) 0;
}

.section-light {
  background: var(--bg-light);
  color: var(--text-light);
}

.section-dark {
  background: transparent;
  border: none;
}

.section-header {
  margin-bottom: var(--space-10);
  text-align: center;
}

.section-header .section-lead {
  margin-inline: auto;
}

.grid-2 {
  display: grid;
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Feature band */
.feature-band {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-10);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .feature-band {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-12);
  }
}

.feature-band h2 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-2xl);
}

.feature-band p {
  margin: 0 0 var(--space-5);
  color: var(--muted);
  line-height: var(--leading-relaxed);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.feature-list li svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Pillars */
.pillar {
  text-align: center;
  padding: var(--space-6);
}

.pillar-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 166, 35, 0.12);
  border-radius: 50%;
  color: var(--accent);
}

.pillar h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
}

.pillar p {
  margin: 0;
  color: var(--muted-light);
  font-size: var(--text-sm);
}

/* Service areas */
.area-group h3 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-lg);
  color: var(--accent-dim);
}

.area-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.area-list li {
  padding: 0.35rem 0.75rem;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--text-light);
}

/* CTA banner */
.cta-banner {
  padding: var(--space-12) var(--space-8);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(245, 166, 35, 0.12) 0%, rgba(91, 156, 245, 0.08) 100%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.cta-banner h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-2xl);
}

.cta-banner p {
  margin: 0 0 var(--space-6);
  color: var(--muted);
}

/* Tools teaser */
.tools-teaser {
  padding: var(--space-10) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.tools-teaser-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.tools-teaser h2 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xl);
}

.tools-teaser p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* Tools hub */
.tools-page {
  min-height: calc(100vh - var(--header-height));
  padding: var(--space-16) 0;
}

.tools-intro {
  max-width: 36rem;
  margin-bottom: var(--space-10);
}

.tool-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 36rem;
}

.tool-card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  flex-shrink: 0;
  object-fit: contain;
}

.tool-card h2 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xl);
}

.tool-card p {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: var(--text-sm);
}

/* Feeder chrome bar (reference mockup) */
.feeder-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.feeder-chrome-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  text-decoration: none;
}

.feeder-chrome-back:hover {
  color: var(--blue);
}

.feeder-chrome-title {
  font-weight: 600;
  color: var(--text);
}

.feeder-chrome-mock {
  margin-top: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feeder-chrome-app {
  height: 280px;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* Footer */
.site-footer {
  padding: var(--space-12) 0 var(--space-8);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  margin: var(--space-4) 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  max-width: 22rem;
}

.footer-col h3 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-2);
}

.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--muted);
}

.footer-tools-link {
  color: var(--muted);
  text-decoration: none;
}

.footer-tools-link:hover {
  color: var(--blue);
}

/* Minimal placeholder layout */
.hero-minimal {
  padding: var(--space-12) 0 var(--space-20);
  min-height: calc(100vh - var(--header-height) - 6rem);
  min-height: calc(100dvh - var(--header-height) - 6rem);
  display: flex;
  align-items: center;
  background: transparent;
}

.hero-minimal-inner {
  max-width: 40rem;
  text-align: center;
  margin-inline: auto;
  position: relative;
}

/* Shield logo — matte filled to match --bg (#eef1f6) */
.hero-logo {
  width: min(72vw, 240px);
  height: auto;
  margin: 0 auto var(--space-8);
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(26, 29, 53, 0.12));
}

.hero-minimal h1 {
  margin: 0 0 var(--space-5);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-lead-secondary {
  font-size: var(--text-base) !important;
  margin-bottom: var(--space-8) !important;
}

.hero-minimal .hero-cta {
  justify-content: center;
}

.site-footer-minimal {
  padding: var(--space-8) 0;
}

.footer-minimal-inner {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--muted);
}

.footer-minimal-inner p {
  margin: 0 0 var(--space-2);
}

.footer-minimal-inner a {
  color: var(--navy-soft);
  text-decoration: none;
}

.footer-minimal-inner a:hover {
  color: var(--accent-dim);
  text-decoration: underline;
}

.footer-meta {
  margin-top: var(--space-4) !important;
  font-size: var(--text-xs);
}

.site-nav-minimal a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}

.site-nav-minimal a:hover {
  color: var(--navy);
}

.home-product {
  padding: var(--space-12) 0 var(--space-16);
  background: var(--surface-2);
  border-top: 1px solid var(--border-subtle);
}

.home-product-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-10);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 52rem;
  margin-inline: auto;
}

.home-product-icon {
  border-radius: var(--radius);
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(26, 29, 53, 0.1));
}

.home-product-copy h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-2xl);
}

.home-product-copy p {
  margin: 0 0 var(--space-6);
  color: var(--muted);
  line-height: var(--leading-relaxed);
  max-width: 32rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: var(--space-12) 0 var(--space-8);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212, 175, 55, 0.08), transparent),
    var(--bg);
}

.page-hero h1 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-3xl);
}

.page-hero .section-lead {
  margin: 0;
}

/* Content prose */
.prose {
  max-width: 42rem;
  line-height: var(--leading-relaxed);
}

.prose h2 {
  margin: var(--space-10) 0 var(--space-4);
  font-size: var(--text-xl);
}

.prose p {
  margin: 0 0 var(--space-4);
  color: var(--muted-light);
}

.prose-light {
  color: var(--text-light);
}

/* Contact layout */
.contact-grid {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info h2 {
  margin: 0 0 var(--space-6);
  font-size: var(--text-xl);
}

.contact-item {
  margin-bottom: var(--space-5);
}

.contact-item strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--muted-light);
  margin-bottom: var(--space-1);
}

.contact-item a,
.contact-item span {
  font-size: var(--text-lg);
  color: var(--text-light);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--blue);
}

.map-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--surface-2-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: var(--muted-light);
  font-size: var(--text-sm);
  margin-top: var(--space-6);
}

/* Brand sheet page */
.brand-page {
  padding: var(--space-10) 0 var(--space-16);
}

.brand-section {
  margin-bottom: var(--space-12);
}

.brand-section h2 {
  margin: 0 0 var(--space-6);
  font-size: var(--text-2xl);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-4);
}

.swatch {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.swatch-color {
  height: 4rem;
}

.swatch-info {
  padding: var(--space-3);
  background: var(--surface);
  font-size: var(--text-xs);
}

.swatch-info code {
  color: var(--blue);
}

.type-sample h1,
.type-sample h2,
.type-sample h3,
.type-sample p {
  margin: 0 0 var(--space-4);
}

.component-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-6);
}
