@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --orange: #e85c04;
  --orange-deep: #c44a00;
  --orange-soft: #ff9a4a;
  --orange-glow: rgba(232, 92, 4, 0.22);
  --ink: #1a2332;
  --ink-elevated: #ffffff;
  --ink-soft: #334155;
  --slate: #1e2937;
  --steel: #64748b;
  --mist: #475569;
  --line: rgba(26, 35, 50, 0.1);
  --line-strong: rgba(26, 35, 50, 0.18);
  --white: #ffffff;
  --panel: #ffffff;
  --bg: #f7f5f2;
  --bg-alt: #f0ece6;
  --header-bg: rgba(30, 41, 55, 0.94);
  --font-display: 'Sora', 'Avenir Next', sans-serif;
  --font-body: 'Outfit', 'Avenir Next', sans-serif;
  --max: 1140px;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--mist);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 480px at 12% -8%, rgba(232, 92, 4, 0.08), transparent 55%),
    radial-gradient(ellipse 700px 420px at 92% 8%, rgba(70, 110, 160, 0.06), transparent 50%),
    linear-gradient(180deg, #f7f5f2 0%, #f4f1ec 40%, #f7f5f2 100%);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px) saturate(1.2);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 34px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 1.35rem; align-items: center; font-weight: 500; font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); }
.nav-links a:not(.btn):hover { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border: 0; border-radius: var(--radius); padding: 0.9rem 1.4rem;
  font: inherit; font-weight: 700; letter-spacing: 0.01em; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: var(--white); box-shadow: 0 10px 32px var(--orange-glow);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(232, 92, 4, 0.35); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: rgba(232, 92, 4, 0.55); background: rgba(232, 92, 4, 0.06); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: grid; align-items: end; overflow: hidden; color: var(--white); isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.05); animation: drift 22s ease-in-out infinite alternate; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(30, 41, 55, 0.68) 0%, rgba(30, 41, 55, 0.32) 48%, rgba(232, 92, 4, 0.18) 100%),
    linear-gradient(to top, rgba(30, 41, 55, 0.58) 0%, transparent 45%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.12;
  background-image: linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 85%);
  pointer-events: none;
}
.hero-inner { padding: 8rem 0 4.75rem; max-width: 740px; }
.brand-lockup { margin-bottom: 1.35rem; }
.brand-lockup img {
  height: clamp(48px, 7vw, 72px);
  width: auto;
  max-width: min(100%, 280px);
  object-fit: contain;
  aspect-ratio: 454 / 142;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25));
}
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin-bottom: 0.65rem; max-width: 14ch; color: var(--white); }
.hero .lede { font-size: 1.18rem; max-width: 36rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 1.9rem; }
.hero .btn-secondary { color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.hero .btn-secondary:hover { border-color: rgba(232, 92, 4, 0.65); background: rgba(232, 92, 4, 0.12); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }

/* Sections */
.section { padding: 5rem 0; }
.section:nth-child(even) { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); }
.muted { color: var(--steel); }
.page-intro { position: relative; padding: 5.5rem 0 2.5rem; overflow: hidden; background: var(--bg-alt); }
.page-intro::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 280px at 0% 0%, rgba(232, 92, 4, 0.1), transparent 60%), linear-gradient(180deg, rgba(240, 236, 230, 0.9), transparent);
  pointer-events: none;
}
.page-intro .wrap { position: relative; }
.page-intro h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); max-width: 20ch; }
.page-intro .lede { max-width: 40rem; color: var(--steel); font-size: 1.1rem; }

/* Org selector */
.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.org-card {
  position: relative; text-align: left; padding: 1.35rem 1.25rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
  font: inherit; color: inherit; width: 100%;
  box-shadow: 0 2px 12px rgba(26, 35, 50, 0.04);
}
.org-card:hover { border-color: rgba(232, 92, 4, 0.45); transform: translateY(-3px); box-shadow: 0 10px 32px rgba(26, 35, 50, 0.08); }
.org-card .org-icon { font-size: 1.6rem; margin-bottom: 0.65rem; }
.org-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.org-card p { margin: 0; font-size: 0.88rem; color: var(--steel); }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.feature-card {
  padding: 1.5rem; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); border-left: 3px solid var(--orange);
  box-shadow: 0 2px 12px rgba(26, 35, 50, 0.04);
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature-card p { margin: 0; color: var(--steel); font-size: 0.95rem; }

/* Pain / solution split */
.split-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.panel-box {
  padding: 1.75rem; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 2px 12px rgba(26, 35, 50, 0.04);
}
.panel-box h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 1.45rem; margin-bottom: 0.7rem; color: var(--mist); }
.list-check li::before {
  content: ''; position: absolute; left: 0; top: 0.55rem;
  width: 0.55rem; height: 0.55rem; background: var(--orange); transform: rotate(45deg);
}
.list-x li::before { background: var(--steel); transform: rotate(0); width: 0.45rem; height: 2px; top: 0.65rem; }

/* Quiz */
.quiz-form { max-width: 680px; }
.quiz-q { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.quiz-q h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.quiz-options { display: grid; gap: 0.65rem; }
.quiz-option {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease;
}
.quiz-option:hover { border-color: rgba(232, 92, 4, 0.4); }
.quiz-option input { accent-color: var(--orange); }
.quiz-option:has(input:checked) { border-color: var(--orange); background: rgba(232, 92, 4, 0.06); }

/* Forms */
.site-form { display: grid; gap: 0.95rem; max-width: 520px; }
.site-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.site-form input, .site-form select, .site-form textarea {
  font: inherit; color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 0.85rem 0.95rem;
  background: var(--white);
}
.site-form input:focus, .site-form select:focus, .site-form textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 92, 4, 0.15);
}
.site-form textarea { min-height: 120px; resize: vertical; }
.errorlist { color: #d64545; margin: 0.25rem 0 0; padding: 0; list-style: none; font-size: 0.85rem; }
.form-error { color: #d64545; margin-bottom: 1rem; }

/* Calendly embed */
.calendly-wrap { min-height: 700px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.calendly-wrap iframe { width: 100%; height: 700px; border: 0; }

/* Staging gate */
.staging-gate { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: var(--bg); }
.staging-card {
  width: min(420px, 100%); padding: 2.5rem 2rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; box-shadow: 0 8px 32px rgba(26, 35, 50, 0.06);
}
.staging-card img { height: 42px; width: auto; object-fit: contain; margin: 0 auto 1.5rem; }
.staging-card h1 { font-size: 1.5rem; }
.staging-card p { color: var(--steel); font-size: 0.95rem; }

/* Admin dashboard */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.dash-stat {
  padding: 1.25rem; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 2px 12px rgba(26, 35, 50, 0.04);
}
.dash-stat .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--orange); }
.dash-stat .lbl { font-size: 0.85rem; color: var(--steel); }
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dash-table th, .dash-table td { padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--line); text-align: left; }
.dash-table th { color: var(--steel); font-weight: 600; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.75rem 0 3.25rem; margin-top: 0; background: #eae6e0; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.75rem; align-items: start; }
.footer-grid a:hover { color: var(--orange); }
.footer-links { display: grid; gap: 0.4rem; margin-top: 0.55rem; color: var(--steel); font-size: 0.92rem; }
.footer-grid small { color: var(--steel); opacity: 0.85; }
.staging-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.25rem 0.5rem; border-radius: 4px;
  background: rgba(232, 92, 4, 0.15); color: var(--orange-soft); margin-left: 0.5rem;
}

@keyframes drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.8%, -1.2%, 0); }
}
.rise { animation: rise 0.85s var(--ease) both; }
.rise-delay-1 { animation-delay: 0.12s; }
.rise-delay-2 { animation-delay: 0.24s; }
.rise-delay-3 { animation-delay: 0.36s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .org-grid, .feature-grid, .split-panels, .dash-grid, .dash-stats { grid-template-columns: 1fr; }
  .nav-links a:not(.btn):not(.nav-cta) { display: none; }
  .hero-inner { padding-top: 6rem; }
}
@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 1.75rem)); }
  .cta-row .btn { width: 100%; }
}
