/* Second Chair marketing site - brand tokens from product */
:root {
  --sc-midnight: #0D1326;
  --sc-slate: #1E293B;
  --sc-intelligence: #4F6BFF;
  --sc-wisdom: #8B5CF6;
  --sc-balance: #22D3B3;
  --sc-fog: #F5F7FA;
  --sc-muted: #5B6578;
  --sc-text: #0D1326;
  --sc-white: #ffffff;
  --sc-gradient: linear-gradient(135deg, #8B5CF6 0%, #4F6BFF 100%);
  --sc-gradient-soft: linear-gradient(160deg, rgba(139, 92, 246, 0.22) 0%, rgba(79, 107, 255, 0.12) 45%, rgba(34, 211, 179, 0.08) 100%);
  --sc-glow: 0 0 60px rgba(79, 107, 255, 0.25);
  --font: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
  --nav-h: 4.5rem;
  --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);
  color: var(--sc-text);
  background: var(--sc-fog);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1, h2, h3, h4 {
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--sc-muted);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sc-wisdom);
  margin-bottom: 0.85rem;
}

.accent-line {
  width: 2.25rem;
  height: 0.2rem;
  border-radius: 99px;
  background: var(--sc-balance);
  margin-bottom: 1rem;
}

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(13, 19, 38, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(13, 19, 38, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 1.85rem;
  height: 2.3rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sc-white);
}

.brand-tagline {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-top: 0.18rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(245, 247, 250, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--sc-white);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 5px auto;
  background: var(--sc-white);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--sc-gradient);
  color: var(--sc-white);
  box-shadow: 0 12px 28px rgba(79, 107, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(139, 92, 246, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--sc-white);
  border: 1px solid rgba(245, 247, 250, 0.28);
}

.btn-ghost:hover {
  background: rgba(245, 247, 250, 0.08);
  border-color: rgba(245, 247, 250, 0.5);
}

.btn-balance {
  background: var(--sc-balance);
  color: var(--sc-midnight);
  box-shadow: 0 12px 28px rgba(34, 211, 179, 0.28);
}

.btn-balance:hover {
  box-shadow: 0 16px 36px rgba(34, 211, 179, 0.38);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--sc-white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero- ken 22s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(13, 19, 38, 0.92) 0%, rgba(13, 19, 38, 0.72) 42%, rgba(13, 19, 38, 0.35) 100%),
    linear-gradient(to top, rgba(13, 19, 38, 0.88) 0%, transparent 45%);
}

.hero-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) 0 5.5rem;
  max-width: 38rem;
}

.hero-page .hero-inner {
  max-width: 40rem;
}

.hero-brand {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.35rem;
  background: linear-gradient(180deg, #ffffff 20%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  color: var(--sc-white);
  font-weight: 600;
  max-width: 18ch;
}

.hero .lede {
  color: rgba(245, 247, 250, 0.78);
  font-size: 1.08rem;
  max-width: 34ch;
  margin-top: 1rem;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.22s; }
.hero-content > *:nth-child(3) { animation-delay: 0.34s; }
.hero-content > *:nth-child(4) { animation-delay: 0.46s; }
.hero-content > *:nth-child(5) { animation-delay: 0.58s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-ken {
  from { transform: scale(1.02); }
  to { transform: scale(1.08) translate(-1.5%, -1%); }
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  color: var(--sc-midnight);
}

.section-dark {
  background: var(--sc-midnight);
  color: var(--sc-white);
}

.section-dark .section-head h2,
.section-dark h3 {
  color: var(--sc-white);
}

.section-dark p {
  color: rgba(245, 247, 250, 0.7);
}

.section-slate {
  background:
    var(--sc-gradient-soft),
    linear-gradient(180deg, #10182e 0%, var(--sc-slate) 100%);
  color: var(--sc-white);
}

.section-slate .section-head h2,
.section-slate h3 {
  color: var(--sc-white);
}

.section-slate p {
  color: rgba(245, 247, 250, 0.72);
}

.section-fog {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(139, 92, 246, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(79, 107, 255, 0.08), transparent 50%),
    var(--sc-fog);
}

.section-white {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--sc-fog) 100%);
}

/* ---------- Feature strips (no cards) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem 2.25rem;
}

.feature {
  position: relative;
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.1rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.feature p {
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- How it works ---------- */
.process {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.process-step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.65rem 0;
  border-top: 1px solid rgba(13, 19, 38, 0.08);
  align-items: start;
}

.process-step:last-child {
  border-bottom: 1px solid rgba(13, 19, 38, 0.08);
}

.process-num {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--sc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  padding-top: 0.15rem;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.process-step p {
  margin: 0;
  max-width: 48rem;
}

.section-dark .process-step {
  border-color: rgba(245, 247, 250, 0.1);
}

/* ---------- Split / modes ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split-visual {
  position: relative;
  min-height: 22rem;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--sc-midnight);
}

.split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sc-gradient-soft);
  mix-blend-mode: screen;
  pointer-events: none;
}

.mode-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mode {
  padding: 2rem 0 0;
  border-top: 3px solid transparent;
  border-image: var(--sc-gradient) 1;
}

.mode h3 {
  font-size: 1.35rem;
}

.mode .mode-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sc-balance);
  margin-bottom: 0.65rem;
}

/* ---------- Values row ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.value h3 {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.value .feature-icon {
  margin-bottom: 1.25rem;
}

/* ---------- Stats / proof strip ---------- */
.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 1rem;
}

.proof-item strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--sc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.35rem;
}

.proof-item span {
  color: rgba(245, 247, 250, 0.65);
  font-size: 0.92rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(139, 92, 246, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(34, 211, 179, 0.18), transparent 55%),
    var(--sc-midnight);
  text-align: center;
}

.cta-band h2 {
  color: var(--sc-white);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  max-width: 18ch;
  margin: 0 auto 1rem;
}

.cta-band p {
  color: rgba(245, 247, 250, 0.7);
  max-width: 36ch;
  margin: 0 auto 1.75rem;
}

.cta-band .btn-group {
  justify-content: center;
}

/* ---------- About page ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.story-aside {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.story-aside .pull {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  color: var(--sc-midnight);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin: 0;
}

.pillars {
  display: grid;
  gap: 2rem;
}

.pillar {
  padding-left: 1.25rem;
  border-left: 3px solid var(--sc-balance);
}

.pillar h3 {
  font-size: 1.15rem;
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.75rem;
}

.contact-detail h3 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sc-wisdom);
  margin-bottom: 0.4rem;
}

.contact-detail p,
.contact-detail a {
  color: var(--sc-midnight);
  font-size: 1.05rem;
  margin: 0;
}

.contact-detail a:hover {
  color: var(--sc-intelligence);
}

.contact-form {
  background: var(--sc-white);
  border-radius: 1.15rem;
  padding: 2rem;
  box-shadow: 0 18px 50px rgba(13, 19, 38, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sc-midnight);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(13, 19, 38, 0.12);
  border-radius: 0.65rem;
  background: var(--sc-fog);
  color: var(--sc-midnight);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sc-intelligence);
  box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.18);
  background: var(--sc-white);
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--sc-muted);
  margin: 0.75rem 0 0;
}

.form-success {
  display: none;
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  background: rgba(34, 211, 179, 0.12);
  color: var(--sc-midnight);
  border-left: 3px solid var(--sc-balance);
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
  animation: rise 0.5s var(--ease);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #090d1a;
  color: rgba(245, 247, 250, 0.65);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .brand-name {
  color: var(--sc-white);
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 28ch;
  color: rgba(245, 247, 250, 0.55);
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--sc-white);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: rgba(245, 247, 250, 0.6);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--sc-balance);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 247, 250, 0.08);
  padding-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- Page hero compact ---------- */
.hero-compact {
  min-height: 72vh;
}

.hero-compact .hero-inner {
  padding-bottom: 4rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-grid,
  .values,
  .proof,
  .mode-pair,
  .split,
  .story,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .proof {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    background: rgba(13, 19, 38, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 0;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(245, 247, 250, 0.08);
  }

  .nav-links a {
    display: block;
    padding: 0.95rem 0;
  }

  .nav-links .btn {
    margin-top: 0.85rem;
    width: 100%;
  }

  .split-visual {
    min-height: 16rem;
    order: -1;
  }

  .story-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .form-row,
  .proof {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-bottom: 3.5rem;
  }

  .process-step {
    grid-template-columns: 3rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-content > * {
    opacity: 1;
    transform: none;
  }
}
