:root {
  --color-bg: #2b2724;
  --color-bg-alt: #38322f;
  --color-accent: #1b7fa3;
  --color-accent-bright: #45afd6;
  --color-text: #f7f5f1;
  --color-text-muted: #bcb5ac;
  --color-surface-light: #f5f4f2;
  --color-border: #4a433d;

  --font-heading: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1120px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(43, 39, 36, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-surface-light);
  flex: none;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.primary-nav a:hover {
  color: var(--color-text);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--color-accent-bright);
  color: #fff !important;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button-primary {
  background: var(--color-accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--color-accent-bright);
}

.button-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.button-ghost:hover {
  border-color: var(--color-accent-bright);
  color: var(--color-accent-bright);
}

/* Hero */

.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent-bright);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin: 0 auto 22px;
  color: var(--color-text);
}

.hero-sub {
  max-width: 600px;
  margin: 0 auto 38px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 18px;
}

.section-lead {
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0 0 48px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--color-text);
}

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

/* Products */

.products-grid {
  align-items: stretch;
}

.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-bright);
  margin-bottom: 10px;
}

.product-card-head h3 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  color: var(--color-text);
}

.product-tagline {
  margin: 0;
  color: var(--color-text-muted);
  font-weight: 500;
}

.product-desc {
  margin: 0;
  color: var(--color-text-muted);
  flex: 1;
}

.product-card .button {
  align-self: flex-start;
}

.product-card-placeholder {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  color: var(--color-text-muted);
}

.product-card-placeholder h3 {
  margin: 0 0 6px;
  color: var(--color-text-muted);
  font-size: 1.2rem;
}

.product-card-placeholder p {
  margin: 0;
}

.placeholder-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

/* Why SA-built */

.trust-item {
  padding-top: 4px;
}

.trust-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--color-accent);
  margin-bottom: 16px;
  transform: rotate(45deg);
}

.trust-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--color-text);
}

.trust-item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Contact */

.contact-section {
  text-align: center;
}

.contact-section .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */

.site-footer {
  padding: 48px 0;
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.footer-links a {
  color: var(--color-accent-bright);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 6px 0 0;
}

/* Responsive */

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-watermark {
    width: 600px;
  }
}

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

  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav a {
    padding: 12px 0;
    width: 100%;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 88px 0 72px;
  }

  .section {
    padding: 72px 0;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }
}
