/** Leadcraft Marketing — Sitewide Base */

/** FONTS */
@font-face {
  font-family: 'Neue Montreal';
  src: url('../fonts/NeueMontreal-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('../fonts/NeueMontreal-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/** TOKENS */
:root {
  --b900: #0d1e2d;
  --b800: #112638;
  --b700: #162f47;
  --b600: #1d3d5e;
  --b500: #254f79;
  --b400: #c85c0a;
  --b300: #f07823;
  --b200: #fbad74;
  --b100: #fde8d0;
  --orange: #f07823;
  --orange2: #f59040;
  --electric: #f8aa68;
  --white: #f0f8ff;
  --muted: #94a3b8;
  --dim: #334155;
  --font-heading: 'Neue Montreal', 'Inter', sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --glass-bg: rgba(29,61,94,.3);
  --border-subtle: rgba(240,120,35,.1);
  --border-faint: rgba(240,120,35,.08);
  --border-mid: rgba(240,120,35,.15);
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--b900);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

/** BASE LAYOUT */
main   { margin-top: 64px; display: flex; flex-direction: column; gap: 28px; width: 100%; }
footer { margin-top: 40px; width: 100%; }

.section-py { padding-top: 40px; padding-bottom: 40px; }
.section-px { padding-left: 12px; padding-right: 12px; }
.uppercase  { text-transform: uppercase; }

.bg-base    { background: var(--b900); }
.bg-raised  { background: var(--b800); }
.bg-slope   { background: linear-gradient(180deg, var(--b900) 0%, var(--b800) 100%); }
.bg-slope-r { background: linear-gradient(180deg, var(--b800) 0%, var(--b900) 100%); }

/** TYPOGRAPHY */
h1 { font-family: var(--font-heading); font-weight: 700; color: var(--white); }
h2 { font-family: var(--font-heading); font-weight: 700; color: var(--b100); }
h3 { font-family: var(--font-heading); font-weight: 600; color: var(--b200); }
h4 { font-family: var(--font-heading); font-weight: 600; color: var(--electric); }
h5 { font-family: var(--font-heading); font-weight: 600; color: var(--orange); }
h6 { font-family: var(--font-heading); font-weight: 600; color: var(--muted); }
a  { color: var(--orange); }

/** CURSOR */
#cursor {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--orange);
  position: fixed; z-index: 9999; pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: screen;
}
#cursor-trail {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(240,120,35,.4);
  position: fixed; z-index: 9998; pointer-events: none;
  transform: translate(-50%,-50%);
  transition: all .12s ease;
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 20px; height: 20px; background: var(--electric);
}

/** NAV */
header#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 70px;
  background: rgba(13,30,45,.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(240,120,35,.12);
  transition: background .3s;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 36px; width: auto; display: block; }

#nav-burger {
  display: flex;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  background: none; border: none; cursor: pointer;
}
#nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transform-origin: center;
  transition: transform .25s ease, opacity .2s ease;
}
header#header.nav-open #nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header#header.nav-open #nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
header#header.nav-open #nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#nav {
  display: flex;
  position: absolute; top: 70px; left: 0; right: 0;
  flex-direction: column; align-items: flex-start; gap: 0;
  background: rgba(13,30,45,.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(240,120,35,.12);
  padding: 0 20px;
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
header#header.nav-open #nav { max-height: 400px; padding: 16px 20px 20px; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; flex-direction: column; gap: 0; width: 100%; list-style: none; }
.nav-links li { border-bottom: 1px solid var(--border-faint); }
.nav-links a {
  display: block; padding: 14px 0; font-size: .9rem;
  color: rgba(240,248,255,.5); text-decoration: none;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--orange);
  transform: scaleX(0); transition: transform .2s;
}
.nav-links a:hover          { color: var(--orange); }
.nav-links a:hover::after   { transform: scaleX(1); }
.nav-cta {
  background: transparent;
  border: 1px solid var(--orange); color: var(--orange);
  padding: 9px 24px; border-radius: 4px;
  position: relative; overflow: hidden;
  transition: all .25s;
}
.nav-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--orange); transform: translateX(-100%);
  transition: transform .25s;
}
.nav-cta:hover             { color: var(--b900); }
.nav-cta:hover::before     { transform: translateX(0); }
.nav-cta span              { position: relative; z-index: 1; }

/** BUTTONS */
.btn-primary,
.btn-line,
.nav-cta,
.sol-btn,
.pc-btn,
.form-submit {
  font-family: var(--font-body);
  font-weight: 600; font-size: 18px;
}
.btn-primary,
.btn-line,
.nav-cta,
.sol-btn {
  letter-spacing: 0.5px; text-transform: uppercase; text-decoration: none;
}
.btn-primary,
.btn-line {
  padding: 14px 36px; border-radius: 4px;
  display: block; width: 100%; text-align: center; box-sizing: border-box;
}
.btn-primary {
  background: linear-gradient(135deg,var(--b400),var(--orange));
  color: var(--white); border-radius: 4px;
  box-shadow: 0 0 32px rgba(200,92,10,.4), 0 0 80px rgba(240,120,35,.15);
  transition: all .3s; position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,var(--orange),var(--b300));
  opacity: 0; transition: opacity .3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 48px rgba(200,92,10,.6), 0 0 100px rgba(240,120,35,.25); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }
.btn-line {
  border: 1px solid rgba(240,248,255,.2);
  color: rgba(240,248,255,.7); transition: all .25s;
}
.btn-line:hover { border-color: var(--orange); color: var(--orange); }
.form-submit {
  display: block; width: 100%; box-sizing: border-box;
  background: linear-gradient(135deg,var(--b400),var(--orange));
  color: var(--white); border: none; text-decoration: none;
  border-radius: 6px; padding: 15px 40px;
  cursor: pointer; transition: all .3s;
  box-shadow: 0 4px 24px rgba(200,92,10,.35);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(240,120,35,.4); }
.form-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/** SECTION HEADER UTILITIES */
.section-label {
  font-family: var(--font-mono); font-weight: 400;
  font-size: .7rem; letter-spacing: 4px; color: var(--orange);
  text-transform: uppercase; margin-bottom: 12px; display: block;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem,4vw,3.2rem);
  font-weight: 700; line-height: 1.15; color: var(--b100);
}
.section-title em {
  font-style: italic; color: transparent;
  background: linear-gradient(135deg,var(--b300),var(--orange));
  -webkit-background-clip: text; background-clip: text;
}
.section-desc {
  font-size: 1rem; color: var(--muted);
  max-width: 600px; margin: 16px auto 0;
  line-height: 1.8; text-align: center;
}

/** FOOTER */
footer {
  background: var(--b900);
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 16px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 12px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 24px;
}
.footer-brand { display: flex; align-items: flex-end; }
.footer-logo  { display: flex; align-items: center; }
.footer-links     { display: flex; gap: 24px; justify-content: center; }
.footer-links a   { color: var(--muted); text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--orange); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: 1px; color: var(--muted); margin: 0 0 7px;
}

/** UTILS */
section header { text-align: center; margin-bottom: 36px; }
.fade-up { opacity: 0; transform: translateY(28px); }
.fade-up.vis { opacity: 1; transform: none; }

@keyframes fade-in { to { opacity: 1; } }

/** RESPONSIVE — sitewide */

@media (pointer: coarse) {
  body { cursor: auto; }
  #cursor, #cursor-trail { display: none; }
}

@media (min-width: 400px) {
  main          { gap: 40px; }
  .section-px   { padding-left: 16px; padding-right: 16px; }
  .header-inner { padding: 0 16px; }
  .footer-inner { padding: 0 16px; }
}

@media (min-width: 640px) {
  main          { gap: 64px; }
  footer        { margin-top: 64px; }
  .section-py   { padding-top: 64px; padding-bottom: 64px; }
  .section-px   { padding-left: 24px; padding-right: 24px; }
  .header-inner { padding: 0 20px; }
  section header { margin-bottom: 48px; }
  .btn-primary,
  .btn-line     { display: inline-block; width: auto; text-align: left; }
  .form-submit  { display: inline-block; width: auto; }
  .footer-inner {
    flex-direction: row; text-align: left;
    justify-content: space-between; align-items: center;
    flex-wrap: nowrap; gap: 16px; padding: 0 24px;
  }
  .footer-links { justify-content: flex-start; }
}

@media (min-width: 900px) {
  footer        { padding: 36px 0 24px; }
  .section-px   { padding-left: 48px; padding-right: 48px; }
  .header-inner { padding: 0 48px; }
  section header { margin-bottom: 72px; }
  #nav-burger   { display: none; }
  #nav {
    display: flex; position: static;
    flex-direction: row; align-items: center; gap: 40px;
    background: none; backdrop-filter: none;
    border-bottom: none; padding: 0;
    max-height: none; overflow: visible; transition: none;
  }
  .nav-links    { flex-direction: row; gap: 32px; width: auto; }
  .nav-links li { border-bottom: none; }
  .nav-links a  { display: inline; padding: 0; font-size: .85rem; }
  .footer-inner { padding: 0 48px; }
}

@media (min-width: 1280px) {
  .section-px {
    padding-left:  max(48px, calc((100% - 1184px) / 2));
    padding-right: max(48px, calc((100% - 1184px) / 2));
  }
}
