/* ============================================
   MyBFF Coach — Design System
   Premium institutional-grade static site
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-bg-deep:       #090d18;
  --color-bg-primary:    #0b1120;
  --color-bg-secondary:  #0f1729;
  --color-bg-card:       #131d33;
  --color-bg-subtle:     #172038;
  --color-text-primary:  #e2e7f0;
  --color-text-secondary:#8b95a8;
  --color-text-muted:    #5a6478;
  --color-accent:        #5b8fb9;
  --color-accent-soft:   #4a7a9e;
  --color-gold:          #c5a05e;
  --color-gold-soft:     #b8944f;
  --color-border:        rgba(255, 255, 255, 0.06);
  --color-border-light:  rgba(255, 255, 255, 0.10);

  --font-family:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;
  --space-4xl:  12rem;

  --max-width:        1200px;
  --max-width-narrow: 740px;
  --max-width-wide:   960px;

  --header-height:    80px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-text-primary);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.25;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

h4 {
  font-size: 1.0625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(9, 13, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 64px;
  width: auto;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-text span {
  color: var(--color-text-muted);
}

/* --- Navigation --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-text-primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text-secondary);
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Sections --- */
.section {
  padding: var(--space-3xl) 0;
}

.section--hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
}

.section--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(91, 143, 185, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section--alt {
  background-color: var(--color-bg-secondary);
}

.section--deep {
  background-color: var(--color-bg-deep);
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-body p {
  max-width: var(--max-width-narrow);
}

.section-body--centered p {
  margin-left: auto;
  margin-right: auto;
}

.section-link {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-accent);
  border-bottom: 1px solid rgba(91, 143, 185, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.section-link:hover {
  color: var(--color-text-primary);
  border-color: var(--color-text-primary);
}

/* --- Hero --- */
.hero-brand {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.hero-logo {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 200;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Icon Grid (Product Ecosystem) --- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-lg);
  max-width: 640px;
  margin: var(--space-xl) auto 0;
}

.icon-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.icon-grid-item img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.icon-grid-item span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* --- Founder Section --- */
.founder-section {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.founder-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.founder-photo {
  width: 100%;
  max-width: 240px;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.founder-content h2 {
  font-size: 1.75rem;
  font-weight: 300;
  margin-bottom: var(--space-lg);
  color: var(--color-gold);
}

.founder-content p {
  color: var(--color-text-secondary);
  line-height: 1.85;
}

/* --- Bullets / Feature List --- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.6;
}

/* --- Page Content (inner pages) --- */
.page-header {
  padding: var(--space-4xl) 0 var(--space-xl);
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 20%, rgba(91, 143, 185, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-weight: 200;
  letter-spacing: -0.02em;
}

.page-header .page-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: var(--space-md) auto 0;
  font-weight: 300;
}

.page-content {
  padding: 0 0 var(--space-3xl);
}

.page-content .container--narrow {
  max-width: var(--max-width-narrow);
}

.page-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-weight: 300;
  color: var(--color-text-primary);
}

.page-content h3 {
  margin-top: var(--space-lg);
  color: var(--color-text-primary);
  font-weight: 400;
  font-size: 1.1875rem;
}

.page-content p {
  color: var(--color-text-secondary);
  line-height: 1.85;
}

.page-content ul {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.page-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.6;
}

/* --- Divider --- */
.divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-xl) 0;
}

/* --- Footer --- */
.site-footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-text {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: rgba(9, 13, 24, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    z-index: 999;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    font-size: 1.125rem;
  }

  .nav-toggle {
    display: flex;
  }

  .founder-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder-photo {
    margin: 0 auto var(--space-md);
    max-width: 180px;
  }

  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section--hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .page-header {
    padding: var(--space-3xl) 0 var(--space-lg);
  }
}

@media (max-width: 600px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
    --space-4xl: 7rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .header-inner {
    padding: 0 var(--space-md);
  }

  .icon-grid-item img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .hero-logo {
    max-width: 180px;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-gold   { color: var(--color-gold); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
/* --------------------------------------------------
   Primary Background Texture
   -------------------------------------------------- */

.hero,
.section--vision {
  background-image: url("assets/backgrounds/bg-continuity-01.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
