/* ==========================================================================
   ACCNTNT clone — shared theme
   Dark + gold aesthetic re-themed from the robotta.ai marketing site.
   Vanilla CSS only. Self-hosted only: no @import, no external font/CDN, no url(http*).
   All colors flow from CSS variables so the light-mode block only re-maps tokens.
   Behavior hooks (see assets/js/site.js, infra-owned — do not edit):
     - button[data-nav-toggle="primary-nav"] toggles .open on #primary-nav
     - [data-reveal] elements receive .in on scroll into view
     - [data-year] text is filled with the current year
   ========================================================================== */

/* ---------- Tokens (dark default) ---------- */
:root {
  --bg: #0a0a0a;
  --text: #f0f0f0;
  --muted: #888;
  --border: #1e1e1e;
  --gold: #ffd700;
  --gold-dark: #b8860b;
  --nav-height: 64px;

  /* derived / layout tokens */
  --container: 1100px;
  --radius: 18px;
  --radius-sm: 12px;
  --gold-ink: #ffd700;            /* gold used as text/accent on the page bg */
  --text-soft: #d8d8d8;
  --nav-bg: rgba(10, 10, 10, 0.92);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  --card-bg-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  --gold-soft: rgba(255, 215, 0, 0.08);
  --gold-border: rgba(255, 215, 0, 0.18);
  --gold-glow: rgba(255, 215, 0, 0.22);
  --overlay: rgba(10, 10, 10, 0.55);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Accessible focus ring (gold) on every interactive element */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header / nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  min-height: var(--nav-height);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.brand span { color: var(--gold); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.15s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.18s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Layout ---------- */
.site-main { flex: 1; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--nav-height));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--gold-glow), transparent 70%),
    var(--bg);
}
.hero-overlay {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 820px;
}
.hero-overlay .logo {
  width: 300px;
  max-width: 72vw;
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.45));
}
.hero-overlay h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.18;
  margin-bottom: 1.1rem;
  color: var(--text);
}
.hero-overlay .sub {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 620px;
  margin-bottom: 1.6rem;
}

/* Price pill — "Starting at $400 per month" */
.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-ink);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
}
.price-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* CTA — gold gradient pill */
.cta {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #b8860b);
  color: #0a0a0a;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px var(--gold-glow);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--gold-glow);
}
.cta:active { transform: translateY(0); }

/* ---------- Section ---------- */
.section {
  padding: 5rem 2rem;
  text-align: center;
}
.section > * { margin-left: auto; margin-right: auto; }
.section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.section p { color: var(--muted); max-width: 600px; line-height: 1.6; }

/* Section eyebrow — small uppercase kicker above a heading */
.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* ---------- Numbered services ---------- */
.services-grid {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: left;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.9rem 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
  background: var(--card-bg-hover);
  box-shadow: var(--shadow);
}
.service-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold-ink);
  opacity: 0.55;
}
.service-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.service-card p { color: var(--muted); line-height: 1.6; font-size: 0.96rem; }

/* ---------- Long-term cards (photo + text) ---------- */
.lt-grid {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  text-align: left;
}
.lt-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.lt-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow);
}
.lt-card .lt-media {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #111;
}
.lt-card .lt-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.lt-card:hover .lt-media img { transform: scale(1.05); }
.lt-card .lt-body { padding: 1.4rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: 0.55rem; }
.lt-card h4 { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.lt-card p { color: var(--muted); line-height: 1.6; font-size: 0.95rem; }

/* ---------- Scale CTA band ---------- */
.scale-band {
  position: relative;
  margin: 4rem 0;
  padding: 4.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(70% 120% at 50% 0%, var(--gold-soft), transparent 70%),
    var(--bg);
}
.scale-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.scale-band p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 0.9rem;
  line-height: 1.65;
}
.scale-band .cta { margin-top: 1.4rem; }

/* ---------- Industries strip ---------- */
.industries {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  text-align: left;
}
.industry-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.industry-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow);
}
.industry-card .industry-media {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: #111;
}
.industry-card .industry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.industry-card:hover .industry-media img { transform: scale(1.05); }
.industry-card .industry-body { padding: 1.3rem 1.4rem 1.6rem; }
.industry-name { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 0.85rem; }
.industry-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.industry-chip {
  color: var(--gold-ink);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ---------- Inner page ---------- */
.page {
  min-height: calc(100vh - var(--nav-height) - 200px);
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page .logo { width: 200px; max-width: 62vw; margin-bottom: 1.3rem; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.45)); }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.page p { color: var(--muted); max-width: 600px; line-height: 1.65; }
.page .placeholder { margin-top: 1.5rem; color: var(--muted); opacity: 0.7; font-size: 0.9rem; font-style: italic; }
.back {
  display: inline-block;
  margin-top: 2rem;
  color: var(--gold-ink);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.back:hover { text-decoration: underline; }

/* ---------- Badge + disclaimer (kept from robotta vocabulary) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #ffd700, #b8860b);
  color: #0a0a0a;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 18px var(--gold-glow);
}
.disclaimer {
  max-width: 820px;
  margin: 1.5rem auto 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.footer {
  padding: 3rem 2rem 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.footer-tag { color: var(--muted); font-size: 0.92rem; max-width: 460px; }
.footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; }
.footer-social a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.footer-social a:hover { color: var(--gold); }
.footer-social .footer-contact { color: var(--gold-ink); font-weight: 600; }
.footer-copy { color: var(--muted); font-size: 0.78rem; line-height: 1.6; max-width: 720px; }

/* ---------- Reveal-on-scroll (works with site.js [data-reveal] -> .in) ---------- */
.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.in,
[data-reveal].in {
  opacity: 1;
  transform: none;
}
/* Optional stagger utilities (add to .reveal elements inside a grid) */
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section { padding: 3.5rem 1.25rem; }
  .services-grid, .lt-grid, .industries { padding: 0 1.25rem; }
  .scale-band { padding: 3.5rem 1.25rem; margin: 3rem 0; }
}

@media (max-width: 720px) {
  .nav-inner { padding: 0 1rem; }
  .brand { font-size: 0.98rem; }

  /* Switch nav to a hamburger dropdown */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.8rem 0.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }

  /* Hamburger -> X when open */
  .nav-links.open ~ .nav-toggle span,
  .nav-toggle:active span { background: var(--gold); }

  .hero-overlay { padding: 3rem 1.25rem; }
  .page { padding: 3.5rem 1.25rem; }
  .container { padding: 0 1.25rem; }
  .footer { padding: 2.5rem 1.25rem 2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Light mode — only re-maps tokens; component rules above inherit them.
   ========================================================================== */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f2;
    --text: #16160f;
    --muted: #5f5f57;
    --border: #e4e4dc;
    --gold-ink: #9a7a00;
    --text-soft: #3a3a33;
    --nav-bg: rgba(245, 245, 242, 0.9);
    --card-bg: linear-gradient(180deg, #ffffff, #fbfbf8);
    --card-bg-hover: linear-gradient(180deg, #ffffff, #f2f2ec);
    --gold-soft: rgba(184, 134, 11, 0.10);
    --gold-border: rgba(184, 134, 11, 0.30);
    --gold-glow: rgba(184, 134, 11, 0.16);
    --overlay: rgba(245, 245, 242, 0.6);
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
  }
  /* Gold is low-contrast as text on light, but stays as CTA fill (dark text) */
  .brand span { color: var(--gold-dark); }
  .nav-links a:hover, .nav-links a.active { color: var(--gold-dark); }
  .nav-links a::after { background: var(--gold-dark); }
  .lt-card .lt-media, .industry-card .industry-media { background: #e8e8e2; }
}
