/* ════════════════════════════════════════════════════════════
   CROWNTUNE — GLOBAL STYLES
   Shared across every page: reset, tokens, nav, footer, buttons,
   and the section-header pattern reused throughout the site.
   Flat treatment: solid surfaces, no glows or gradient washes.
   ════════════════════════════════════════════════════════════ */

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

:root {
  --gold: #F0C330;
  --gold-light: #FFD95C;
  --gold-dim: #A8861D;
  --neon: #C3F53C;
  --black: #0A0A0A;
  --black-2: #111111;
  --black-3: #1A1A1A;
  --card: #151515;
  --card-warm: #1C1811;
  --white: #FFFFFF;
  --off-white: #F2EDE4;
  --gray: #888888;
  --gray-light: #CCCCCC;
  --border: rgba(240,195,48,0.25);
  --content-max: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 72px;
  background: rgba(10,10,10,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
/* The logo PNG is a 1024² square that is mostly transparent padding — the wordmark
   itself sits at x 226–794, y 322–670. This window crops to exactly that region,
   so the nav shows the mark with no dead space around it. */
.nav-logo-clip {
  display: block;
  width: 65px;
  height: 40px;
  overflow: hidden;
}
.nav-logo-clip img {
  display: block;
  width: 118px;
  height: 118px;
  max-width: none;
  margin: -37px 0 0 -26px;
}

.nav-links {
  display: flex;
  gap: 14px;
  list-style: none;
}
.nav-links a {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s;
}
/* Static gold underline marks the current page — no slide-in animation */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 1px;
  background: var(--gold);
  opacity: 0;
}
.nav-links a:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}
.nav-links a.active { color: var(--gold-light); }
.nav-links a.active::after { opacity: 1; }

/* Get Started: clean gold-outline pill, fills solid gold on hover */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  padding: 12px 26px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--black);
}

/* ── BUTTONS ── */
.btn-gold {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--black);
  background: var(--gold);
  padding: 16px 36px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--white);
  background: transparent;
  padding: 16px 36px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── SECTION HEADER PATTERN (reused on every page) ── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
}
.section-sub {
  font-size: 15px;
  color: var(--gray);
  margin-top: 14px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── FOOTER (rendered by footer.js) ── */
footer {
  background: var(--black);
  padding: 68px 60px 0;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr 1.05fr 0.8fr 0.8fr;
  gap: 52px;
  padding-bottom: 52px;
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
/* Same crop window as the nav logo — see .nav-logo-clip — scaled to a 68px wordmark */
.footer-logo-clip {
  display: block;
  width: 111px;
  height: 68px;
  overflow: hidden;
}
.footer-logo-clip img {
  display: block;
  width: 200px;
  height: 200px;
  max-width: none;
  margin: -63px 0 0 -44px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 14px;
}

.footer-trust {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.32);
  line-height: 1.75;
  max-width: 300px;
}

.footer-col-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

/* Pages + Socials: quiet text links */
.footer-linkcol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-linkcol a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-linkcol a:hover { color: var(--gold); }

/* Legal: quiet small links, toolost-style */
.footer-legal {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-legal a {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--gold); }

/* Bottom bar */
.footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(240,195,48,0.12);
  padding: 22px 0 26px;
}
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.05em;
}

/* ── UTILITIES ── */
.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 20px;
}


/* ════════════════════════════════════════════════════════════
   MOBILE / TABLET
   The layout above is desktop-first, so everything below is the
   narrow-screen treatment for the shared chrome: nav, footer,
   buttons and the section-header pattern.
   ════════════════════════════════════════════════════════════ */

/* Never let anything force the page wider than the screen */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; }

@media (max-width: 900px) {
  nav { padding: 0 20px; height: 62px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 12px; letter-spacing: 0.02em; }
  /* the Get started pill is the first thing to go — the links matter more */
  .nav-cta { display: none; }
  .nav-logo-clip { width: 52px; height: 32px; }
  .nav-logo-clip img { width: 94px; height: 94px; margin: -29px 0 0 -21px; }

  footer { padding: 48px 24px 0; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding-bottom: 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-tagline, .footer-trust { max-width: none; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 0 22px;
  }

  .section-header { margin-bottom: 40px; }
  .section-title { font-size: clamp(30px, 8vw, 44px); }
  .section-sub { font-size: 14px; }
}

@media (max-width: 560px) {
  nav { padding: 0 14px; }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: 11.5px; }

  .btn-gold, .btn-ghost { padding: 14px 24px; font-size: 11.5px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-col-label { font-size: 12px; }
}
