/* Home page — Fitstart Performance (ecosystem landing) */

#page-home {
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(205, 156, 79, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 400px at 100% 10%, rgba(205, 156, 79, 0.06), transparent 55%);
  font-family: 'Inter', sans-serif;
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
}

#page-home img {
  max-width: 100%;
  display: block;
}

#page-home a {
  color: inherit;
  text-decoration: none;
}

#page-home ul {
  list-style: none;
}

#page-home .serif {
  font-family: 'Cormorant Garamond', serif;
}

#page-home ::selection {
  background: var(--gold);
  color: var(--ink);
}

#page-home a:focus-visible,
#page-home button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

#page-home .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

#page-home .rule-gold {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

#page-home .section-border-y {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

#page-home .btn {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 2px;
  text-align: center;
  transition:
    box-shadow .35s ease,
    transform .35s ease,
    background-color .35s ease,
    border-color .35s ease;
}

#page-home .btn-solid {
  background: var(--gold);
  color: var(--ink);
}

#page-home .btn-solid:hover {
  background: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(233, 183, 104, 0.4), 0 12px 30px -10px rgba(205, 156, 79, 0.55);
  transform: translateY(-1px);
}

#page-home .btn-outline {
  border: 1px solid #3a372f;
  color: var(--bone);
}

#page-home .btn-outline:hover {
  border-color: var(--gold);
  background: rgba(205, 156, 79, 0.06);
  transform: translateY(-1px);
}

#page-home .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Header & navigation */

#page-home header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(11, 11, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

#page-home .nav-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#page-home .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

#page-home .logo-text {
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
}

#page-home .logo-text small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--fog);
  font-weight: 500;
  margin-top: 4px;
}

#page-home nav.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}

#page-home .nav-link {
  position: relative;
}

#page-home .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}

#page-home .nav-link:hover::after {
  width: 100%;
}

#page-home .menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--bone);
  cursor: pointer;
}

#page-home .mobile-menu {
  display: none;
  border-top: 1px solid var(--hairline);
  background: var(--ink);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
}

#page-home .mobile-menu.open {
  display: flex;
}

#page-home .mobile-menu .btn {
  margin-top: 8px;
}

@media (max-width:1024px) {
  #page-home nav.nav-links {
    display: none;
  }

  #page-home .menu-btn {
    display: block;
  }

  #page-home .header-cta {
    display: none;
  }
}

/* Hero */

#page-home .hero {
  position: relative;
  padding: 160px 0 112px;
  overflow: hidden;
  text-align: center;
}

#page-home .hero-watermark {
  position: absolute;
  right: -8%;
  top: 0;
  width: 720px;
  max-width: none;
  opacity: 0.06;
  pointer-events: none;
  object-fit: contain;
}

#page-home .hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

#page-home .hero-tag {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.3em;
  font-weight: 500;
  margin-bottom: 24px;
}

#page-home .hero h1 {
  font-size: 42px;
  line-height: 1.08;
  font-weight: 500;
  color: var(--bone);
}

#page-home .hero p.lead {
  margin-top: 28px;
  font-size: 16px;
  color: var(--fog);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

#page-home .hero .btn-row {
  margin-top: 40px;
}

@media (min-width:640px) {
  #page-home .hero h1 {
    font-size: 56px;
  }

  #page-home .hero p.lead {
    font-size: 18px;
  }
}

@media (min-width:768px) {
  #page-home .hero {
    padding: 224px 0 160px;
  }

  #page-home .hero h1 {
    font-size: 72px;
  }
}

/* Shared section styles */

#page-home section {
  padding: 96px 0;
}

@media (min-width:768px) {
  #page-home section {
    padding: 128px 0;
  }
}

#page-home .eyebrow {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 16px;
}

#page-home h2.section-title {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.12;
}

#page-home h2.section-title.spaced {
  margin-bottom: 24px;
}

@media (min-width:768px) {
  #page-home h2.section-title {
    font-size: 44px;
  }
}

/* About */

#page-home .about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
}

@media (min-width:1024px) {
  #page-home .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

#page-home .about-text p {
  color: var(--fog);
  line-height: 1.75;
  max-width: 52ch;
}

#page-home .pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
  margin-top: 32px;
}

#page-home .pill {
  border: 1px solid var(--hairline);
  color: #d8d3c6;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 2px;
  text-align: center;
}

#page-home .stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width:640px) and (max-width:1023px) {
  #page-home .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

#page-home .stat-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

#page-home .stats .stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#page-home .stat-number {
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

#page-home .stat-label {
  font-size: 14px;
  color: var(--fog);
  max-width: 16ch;
}

/* Ecosystem / brand cards */

#page-home .ecosystem-section {
  background: rgba(20, 19, 17, 0.4);
}

#page-home .ecosystem-header {
  margin-bottom: 56px;
  max-width: 560px;
}

#page-home .ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width:768px) {
  #page-home .ecosystem-grid {
    grid-template-columns: 1fr 1fr;
  }
}

#page-home .brand-card {
  background: var(--panel);
  border: 1px solid #262420;
  border-radius: 2px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  transition: border-color .4s ease, transform .4s ease, box-shadow .4s ease;
}

#page-home .brand-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.7);
}

#page-home .brand-card.featured {
  min-height: 280px;
}

#page-home .brand-card.neuro {
  background: #152233;
  border-color: #22344a;
}

#page-home .card-icon-row {
  display: flex;
  align-items: center;
  height: 64px;
}

#page-home .card-icon-row.center {
  justify-content: center;
  height: 128px;
}

#page-home .card-icon-row.between {
  justify-content: space-between;
}

#page-home .brand-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

#page-home .brand-card.featured h3 {
  font-size: 22px;
}

#page-home .brand-card p {
  font-size: 14px;
  color: var(--fog);
  line-height: 1.6;
  margin-bottom: 16px;
}

#page-home .neuro p {
  color: rgba(219, 234, 254, 0.7);
}

#page-home .neuro h3 {
  color: #fff;
}

#page-home .explore-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#page-home .neuro .explore-link {
  color: #bfdbfe;
}

#page-home .explore-arrow {
  transition: transform .3s ease;
  display: inline-block;
}

#page-home .brand-card:hover .explore-arrow {
  transform: translateX(4px);
}

#page-home .badge-pill {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(191, 219, 254, 0.7);
  border: 1px solid rgba(191, 219, 254, 0.2);
  border-radius: 999px;
  padding: 4px 12px;
}

#page-home .koyla-word {
  font-size: 26px;
  font-weight: 600;
  color: var(--bone);
}

#page-home .koyla-sub {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fog);
  margin-left: 12px;
  margin-top: 4px;
}

#page-home .cassfit-word {
  font-size: 26px;
  font-weight: 500;
  color: var(--gold-bright);
  font-family: cursive;
}

#page-home .logo-mark {
  width: 34px;
  height: auto;
  display: block;
}

#page-home footer .logo-mark {
  width: 24px;
}

#page-home .card-logo-lockup {
  width: 170px;
  height: auto;
}

#page-home .card-logo-icon {
  width: 44px;
  height: auto;
}

#page-home .card-logo-small {
  height: 56px;
  width: auto;
  border-radius: 4px;
}

#page-home .koyla-logo {
  background: #fff;
  padding: 6px 10px;
  height: 48px;
}

#page-home .cassfit-logo {
  background: #1c1a17;
  padding: 4px;
  height: 56px;
  border-radius: 6px;
}

/* Corporate banner */

#page-home .corporate-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}

#page-home .corporate-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 500px at 30% 20%, rgba(138, 106, 60, 0.25), transparent 60%);
}

#page-home .corporate-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

#page-home .corporate-inner p.lead {
  color: var(--fog);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 40px;
}

/* Partners marquee */

#page-home .partners-section {
  padding: 64px 0;
  background: rgba(243, 240, 232, 0.02);
  overflow: hidden;
}

#page-home .partners-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--fog);
  margin-bottom: 40px;
}

#page-home .marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#page-home .marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 72px;
  animation: marquee-scroll 28s linear infinite;
}

#page-home .marquee:hover .marquee-track {
  animation-play-state: paused;
}

#page-home .partner-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  width: 180px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform .3s ease, box-shadow .3s ease;
}

#page-home .partner-mark img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: auto;
}

#page-home .partner-mark:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Contact */

#page-home .contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

@media (min-width:1024px) {
  #page-home .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

#page-home .contact-list {
  color: var(--fog);
  font-size: 15px;
  margin-top: 24px;
}

#page-home .contact-list li {
  padding: 6px 0;
}

#page-home .contact-note {
  color: var(--fog);
  font-size: 14px;
  margin-top: 24px;
}

#page-home .contact-details > div {
  margin-bottom: 24px;
}

#page-home .contact-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--fog);
  margin-bottom: 6px;
}

#page-home .contact-details p {
  font-size: 15px;
}

#page-home .contact-details a:hover {
  color: var(--gold);
  transition: color .2s ease;
}

/* Footer */

#page-home footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
}

#page-home .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

@media (min-width:768px) {
  #page-home .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

#page-home .footer-brand {
  grid-column: span 2;
}

@media (min-width:768px) {
  #page-home .footer-brand {
    grid-column: span 1;
  }
}

#page-home .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

#page-home .footer-logo span {
  font-weight: 600;
  font-size: 14px;
}

#page-home .footer-desc {
  color: var(--fog);
  font-size: 13px;
  line-height: 1.6;
  max-width: 26ch;
}

#page-home .footer-col-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--fog);
  margin-bottom: 16px;
}

#page-home .footer-col ul li {
  padding: 5px 0;
  font-size: 14px;
  color: rgba(243, 240, 232, 0.85);
}

#page-home .footer-col ul li a:hover {
  color: var(--gold);
  transition: color .2s ease;
}

#page-home .footer-location p {
  font-size: 14px;
  color: rgba(243, 240, 232, 0.85);
  line-height: 1.6;
}

#page-home .footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fog);
}

@media (min-width:640px) {
  #page-home .footer-bottom {
    flex-direction: row;
  }
}

/* Scroll-reveal start state */

#page-home [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: reduce) {
  #page-home .marquee-track {
    animation: none;
  }

  #page-home [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
