/* ========================================
   Longqi Capital - Main Stylesheet
   Bold, High-Contrast Design with Autumn Accents
   ======================================== */

/* ----------------------------------------
   CSS Custom Properties (Color Scheme)
   ---------------------------------------- */
:root {
  /* Primary Colors */
  --white: #FFFFFF;
  --off-white: #FFFBF7;
  --warm-white: #FFF5EB;
  
  /* Orange Palette */
  /*--lqcolor-primary: #E67E22;
  --lqcolor-deep: #D35400;
  --lqcolor-burnt: #B84A1F;
  --lqcolor-light: #F39C12;*/
  
  --lqcolor-primary: #C7A35F;
  --lqcolor-deep: #9B7B3F;
  --lqcolor-burnt: #7C6428;
  --lqcolor-light: #FFCC6C;
  --lqcolor-subtle: rgba(199, 163, 95, 0.08);

  /* Slate Blue Accent - complements gold for a fresh, modern quant feel */
  --accent: #5B7FA5;
  --accent-dark: #3F5C8A;
  --accent-light: #8AACC7;
  --accent-subtle: rgba(91, 127, 165, 0.06);
  --accent-lighter: rgba(91, 127, 165, 0.04);


  /* Grey Palette */
  --charcoal: #2C3E50;
  --grey-dark: #4A5568;
  --grey-medium: #718096;
  --grey-light: #A0AEC0;
  --grey-subtle: #CBD5E0;
  
  /* Background warm tones */
  --warm-bg: #FDF8F3;
  --warm-bg-alt: #FAF0E6;
  
  /* Heading Colors */
  --heading: #0a3069;    /* lighter navy blue for h1/h2 */

  /* Timing */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Global spacing between consecutive paragraphs */
p + p {
  margin-top: 1.25em;
}

/* ----------------------------------------
   Main Content Wrapper - contains animation
   ---------------------------------------- */
.main-content-wrapper {
  position: relative;
  overflow: hidden;
}

/* ----------------------------------------
   Background Animation - Candlestick Tiled Pattern
   ---------------------------------------- */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* ----------------------------------------
   Section Base Styles
   ---------------------------------------- */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  overflow: hidden;
  z-index: 10;
}

.section-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Remove individual section dividers - keep HTML elements but no rendering */
.section-divider {
  display: none;
}

/* Diagonal band animation replaced by canvas candlestick renderer in js/main.js */
/* Old @keyframes bandSlide and .diagonal-band rules removed */


/* ----------------------------------------
   Section Background Colors
   ---------------------------------------- */
.hero,
.section-warm,
.section-white {
  background: transparent;
}

.section-dark {
  background: linear-gradient(
    180deg,
    var(--charcoal) 0%,
    #1a252f 100%
  );
}

/* ----------------------------------------
   Campus Image in Proven Section
   ---------------------------------------- */
.campus-image-container-proven {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-top: 24px;
  margin-bottom: 0;
}

.campus-image-container-proven.reveal-stagger {
  opacity: 0;
  transform: translateY(30px) scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.campus-image-container-proven.reveal-stagger.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ----------------------------------------
   Stats Section with Campus Image
   ---------------------------------------- */
.stats-header {
  margin-bottom: 60px;
}

.campus-image-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.campus-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease, opacity 0.8s ease;
}

.campus-image-container:hover .campus-image {
  transform: scale(1.05);
}

/* Image overlay with gradient */
.campus-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 40px;
  background: linear-gradient(
    to top,
    rgba(44, 62, 80, 0.6) 0%,
    rgba(44, 62, 80, 0) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.campus-caption {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.95;
}

/* Animation for campus image container */
.campus-image-container.reveal-stagger {
  opacity: 0;
  transform: translateY(30px) scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.campus-image-container.reveal-stagger.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero .section-content {
  text-align: center;
  
}

.hero-company-name {
  font-size: 6rem;
  color: var(--grey-subtle);
  margin: -30px 0 20px 0;
  font-weight: 700;
  opacity: 0.4 !important;
  letter-spacing: 0.05em;
  z-index: -1;
}

.hero-logo-container {
  margin-bottom: 24px;
  display: inline-block;
  padding: 16px;
  border: 3px solid var(--lqcolor-primary);
  border-radius: 50%;
}

.hero-logo-container:hover {
  border-color: var(--lqcolor-light);
}

.hero-logo {
  width: 80px;
  height: auto;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  transform: translateY(8px);
}

.hero-logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 12px rgba(199, 163, 95, 0.3));
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1.15;
}

.hero h1 .title-line-1 {
  display: block;
}

.hero h1 .title-line-2 {
  display: block;
  font-size: 0.75em;
  color: var(--lqcolor-primary);
  letter-spacing: 0.02em;
  margin-top: 0.15em;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--lqcolor-primary);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.05em;
  text-transform: none;
  position: relative;
  padding-top: 24px;
  margin-top: 0;
}

.hero .subtitle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 2px;
  background: var(--lqcolor-primary);
}

.scroll-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 100;
}

.scroll-indicator span {
  font-size: 0.875rem;
  color: var(--grey-medium);
  letter-spacing: 0.05em;
}

/* ----------------------------------------
   Content Blocks
   ---------------------------------------- */
.content-block {
  margin-bottom: 60px;
}

.block-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--lqcolor-primary);
  margin-bottom: 16px;
  padding: 8px 16px;
  border: 1px solid var(--lqcolor-primary);
  border-radius: 2px;
}

.content-block h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 20px;
  line-height: 1.2;
}

.content-block p {
  font-size: 1.125rem;
  color: var(--grey-dark);
  max-width: 800px;
}

/* ----------------------------------------
   Grid Blocks
   ---------------------------------------- */
.grid-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  padding: 32px;
  border-radius: 4px;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-orange {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.card-grey {
  background: linear-gradient(135deg, var(--charcoal) 0%, #34495e 100%);
}

.card-outline {
  background: transparent;
  border: 2px solid var(--lqcolor-primary);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  font-size: 1rem;
  line-height: 1.5;
}

/* ----------------------------------------
   Feature Grid
   ---------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-block {
  padding: 32px;
  border-left: 3px solid var(--lqcolor-primary);
  background: linear-gradient(90deg, var(--accent-lighter) 0%, transparent 100%);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.feature-block:hover {
  border-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-subtle) 0%, transparent 100%);
}

.feature-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.feature-block h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-block p {
  font-size: 1rem;
}

@media (min-width: 769px) {
  .feature-block:nth-child(2) {
    margin-top: 70px;
  }
  .feature-block:nth-child(1) {
    margin-top: 140px;
  }  
}

/* ----------------------------------------
   Stats Section
   ---------------------------------------- */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.stat-block {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
}

.quote-block {
  text-align: center;
  padding: 40px;
  border-top: 1px solid var(--grey-subtle);
  border-bottom: 1px solid var(--grey-subtle);
}

.quote-block blockquote {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 300;
}

/* ----------------------------------------
   Awards Grid (Proven Section)
   ---------------------------------------- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.award-card {
  background: var(--white);
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  border: 1px solid var(--grey-subtle);
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.award-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-icon .mono-icon {
  color: var(--lqcolor-primary);
  width: 40px;
  height: 40px;
}

.award-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.award-card p {
  font-size: 0.9375rem;
  color: var(--grey-dark);
  margin-bottom: 16px;
}

.award-link {
  display: inline-block;
  color: var(--lqcolor-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.award-link:hover {
  color: var(--lqcolor-deep);
  text-decoration: underline;
}

/* ----------------------------------------
   Proven Stats
   ---------------------------------------- */
.proven-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--grey-subtle);
}

.proven-stat {
  text-align: center;
}

.proven-stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.proven-stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* ----------------------------------------
    Opportunity Section — 3-Card Grid
    ---------------------------------------- */
.mini-chart-container {
  width: 100%;
  max-width: 500px;
  margin: 20px auto 16px;
  background: var(--white);
  padding: 20px 16px 12px;
  border-radius: 6px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.mini-chart-container canvas {
  width: 100%;
  max-height: 260px;
}

/* ---- Argument Cards ---- */
.opportunity-arguments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

.argument-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--lqcolor-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.argument-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.argument-number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lqcolor-primary);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.argument-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 14px;
  line-height: 1.4;
}

.argument-card p {
  font-size: 0.9375rem;
  color: var(--grey-dark);
  line-height: 1.7;
  margin-bottom: 12px;
}

.argument-card p:last-child {
  margin-bottom: 0;
}

.argument-result {
  color: var(--charcoal) !important;
  font-weight: 600;
}

.argument-citation {
  font-size: 0.75rem !important;
  color: var(--grey-medium) !important;
  font-style: italic;
  margin-top: 8px !important;
}

/* ---- Dispersion Chart Legends (custom) ---- */
.dispersion-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--grey-dark);
}

.dispersion-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dispersion-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* ---- Responsive: Opportunity ---- */
@media (max-width: 1024px) {
  .opportunity-arguments {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .argument-card {
    padding: 24px 20px;
  }

  .argument-card h3 {
    font-size: 1.125rem;
  }

  .argument-card p {
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .opportunity-arguments {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .argument-card {
    padding: 24px 20px;
  }

  .mini-chart-container {
    padding: 16px 12px 8px;
  }
}

/* ----------------------------------------
   Fund Families Block
   ---------------------------------------- */
.fund-families-block {
  text-align: center;
  padding: 50px 30px;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, var(--accent-lighter) 100%);
  border-radius: 8px;
  border: 1px solid var(--grey-subtle);
}

.fund-families-block h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--charcoal);
}

.fund-families-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .fund-families-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.fund-family-card {
  background: var(--white);
  padding: 24px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--grey-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.fund-family-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.fund-family-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.fund-family-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--grey-dark);
  margin: 0;
}

.fund-families-tagline {
  font-size: 1rem;
  font-style: italic;
  color: var(--grey-medium);
  margin-bottom: 24px;
}

.contact-link {
  display: inline-block;
  color: var(--lqcolor-primary);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid var(--lqcolor-primary);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.contact-link:hover {
  background: var(--lqcolor-primary);
  color: var(--white);
}

/* ----------------------------------------
    Who We Are Section
    ---------------------------------------- */
.who-we-are-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: center;
}

.who-stat {
  padding: 30px 20px;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, var(--accent-lighter) 100%);
  border-radius: 8px;
  border: 1px solid var(--grey-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.who-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.who-stat .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.who-stat .stat-label {
  font-size: 1rem;
  font-weight: 500;
}

.who-we-are-description {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.who-we-are-text p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--grey-dark);
}

.who-we-are-image {
  width: 100%;
}

.quarters-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: block;
  transform: scale(1.2) translateY(30px);
  transform-origin: left center;
}

.who-we-are-image {
  overflow: visible;
}

@media (max-width: 768px) {
  .who-we-are-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .who-we-are-description {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .who-we-are-text p {
    font-size: 1rem;
  }
}

/* ----------------------------------------
    Risk Management Block (Sustainable Section)
    ---------------------------------------- */
.risk-management-block {
  text-align: center;
  padding: 50px 30px;
  margin-top: 60px;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, var(--accent-lighter) 100%);
  border-radius: 8px;
  border: 1px solid var(--grey-subtle);
}

.risk-management-block h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--charcoal);
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .risk-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.risk-item {
  background: var(--white);
  padding: 24px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--grey-subtle);
  text-align: left;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.risk-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.risk-number {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.risk-item p {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}

/* ----------------------------------------
   Stat Note
   ---------------------------------------- */
.stat-note {
  display: block;
  font-size: 0.75rem;
  color: var(--grey-medium);
  margin-top: 4px;
}

/* ----------------------------------------
   Office Note
   ---------------------------------------- */
.office-note {
  font-style: italic;
  margin-top: 16px;
  opacity: 0.8;
}

/* ----------------------------------------
   Footer Section
   ---------------------------------------- */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-chinese-name {
  font-size: 0.9375rem;
  color: var(--lqcolor-primary);
  margin-bottom: 8px;
}

.footer-brand h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-links p {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
}

/* ----------------------------------------
   Text Color Utilities
   ---------------------------------------- */
.text-white {
  color: var(--white);
}

.text-white-light {
  color: rgba(255, 255, 255, 0.85);
}

.text-white-muted {
  color: rgba(255, 255, 255, 0.6);
}

.text-orange {
  color: var(--lqcolor-primary);
}

.text-charcoal {
  color: var(--charcoal);
}

.text-grey {
  color: var(--grey-dark);
}

/* ----------------------------------------
   Scroll Animation States
   ---------------------------------------- */
.reveal-stagger {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-stagger.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for nested items */
.reveal-stagger:nth-child(1) { transition-delay: 0s; }
.reveal-stagger:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger:nth-child(6) { transition-delay: 0.5s; }

/* Hero immediate visibility */
.hero .reveal-stagger,
.hero .reveal-text {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------
   Responsive Design
   ---------------------------------------- */
@media (max-width: 1024px) {
  .section {
    padding: 60px 30px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 50px 20px;
  }
  
  .grid-block {
    grid-template-columns: 1fr;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .stats-header {
    margin-bottom: 40px;
  }
  
  .campus-image-container {
    /* More compact aspect ratio on mobile */
    aspect-ratio: 16 / 9;
    border-radius: 6px;
  }
  
  .campus-image-overlay {
    padding: 20px;
  }
  
  .campus-caption {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

/* ----------------------------------------
   Accessibility
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal-stagger,
  .reveal-text {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Focus states for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--lqcolor-primary);
  outline-offset: 2px;
}

/* ----------------------------------------
   Selection Styling
   ---------------------------------------- */
::selection {
  background: var(--lqcolor-primary);
  color: var(--white);
}

/* ----------------------------------------
   Professional Investor Gate Overlay
   ---------------------------------------- */
.investor-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f5f0eb;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 30px 20px;
}

.investor-gate-overlay.declined {
  background: rgba(44, 62, 80, 0.97);
}

.investor-gate-container {
  background: var(--white);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  animation: gateFadeIn 0.4s ease;
}

@keyframes gateFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.investor-gate-header {
  text-align: center;
  padding: 40px 40px 20px;
}

.gate-logo {
  width: 64px;
  height: auto;
  margin-bottom: 16px;
}

.investor-gate-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
}

.gate-subtitle {
  font-size: 0.9375rem;
  color: var(--lqcolor-primary);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.investor-gate-body,
.investor-gate-footer {
  padding: 20px 40px 30px;
}

.investor-gate-footer {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Notice box */
.gate-notice {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--accent-subtle);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  margin-bottom: 24px;
}

.gate-notice-icon {
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1.4;
}

.gate-notice p {
  font-size: 0.875rem;
  color: var(--charcoal);
  line-height: 1.6;
  margin: 0;
}

/* Jurisdiction select */
.gate-field {
  margin-bottom: 20px;
}

.gate-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.gate-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--grey-subtle);
  border-radius: 6px;
  appearance: auto;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gate-select:focus {
  outline: none;
  border-color: var(--lqcolor-primary);
  box-shadow: 0 0 0 3px rgba(199, 163, 95, 0.15);
}

.gate-select:invalid {
  color: var(--grey-light);
}

/* Professional Investor Definition */
.gate-definition {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--warm-bg);
  border-radius: 8px;
  border: 1px solid var(--grey-subtle);
}

.gate-definition h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.definition-text {
  font-size: 0.875rem;
  color: var(--grey-dark);
  line-height: 1.7;
}

.definition-text ul {
  margin: 8px 0;
  padding-left: 20px;
}

.definition-text li {
  margin-bottom: 4px;
  font-size: 0.85rem;
}

/* Confirmation checkboxes */
.gate-confirmations {
  margin-bottom: 20px;
}

.gate-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.gate-checkbox-label:hover {
  background: var(--accent-lighter);
}

.gate-checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--lqcolor-primary);
  cursor: pointer;
}

.gate-checkbox-text {
  font-size: 0.875rem;
  color: var(--charcoal);
  line-height: 1.5;
}

.gate-checkbox-text .gate-link {
  color: var(--lqcolor-primary);
  text-decoration: underline;
  cursor: pointer;
}

.gate-checkbox-text .gate-link:hover {
  color: var(--lqcolor-deep);
}

.gate-extra {
  margin-left: 16px;
  margin-bottom: 4px;
}

/* Error message */
.gate-error {
  padding: 12px 16px;
  background: #fff5f5;
  border: 1px solid #e53e3e;
  border-radius: 6px;
  color: #c53030;
  font-size: 0.875rem;
}

/* Buttons */
.gate-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gate-btn-primary {
  background: var(--lqcolor-primary);
  color: var(--white);
}

.gate-btn-primary:hover:not(:disabled) {
  background: var(--lqcolor-deep);
}

.gate-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gate-btn-secondary {
  background: transparent;
  color: var(--grey-medium);
  border: 1px solid var(--grey-subtle);
}

.gate-btn-secondary:hover {
  color: var(--charcoal);
  border-color: var(--grey-light);
  background: var(--grey-subtle);
}

/* Declined state */
.gate-declined-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--grey-light);
}

.declined .investor-gate-container {
  text-align: center;
}

.declined .investor-gate-body p {
  font-size: 1rem;
  color: var(--grey-dark);
  line-height: 1.7;
  margin-bottom: 12px;
}

.declined .investor-gate-body a {
  color: var(--lqcolor-primary);
}

/* Gate disclaimer panel (inline overlay) */
.gate-disclaimer-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.gate-disclaimer-content {
  background: var(--white);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 40px;
  position: relative;
  animation: gateFadeIn 0.3s ease;
}

.gate-disclaimer-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--grey-medium);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
}

.gate-disclaimer-close:hover {
  color: var(--charcoal);
  background: var(--grey-subtle);
}

.gate-disclaimer-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 20px;
}

.gate-disclaimer-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 20px 0 10px;
}

.gate-disclaimer-content p {
  font-size: 0.875rem;
  color: var(--grey-dark);
  line-height: 1.7;
  margin-bottom: 12px;
}

.gate-disclaimer-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.gate-disclaimer-content li {
  font-size: 0.875rem;
  color: var(--grey-dark);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ----------------------------------------
   Legal Disclaimer Section (after main content)
   ---------------------------------------- */
.section-legal {
  background: var(--warm-bg);
  min-height: auto;
  padding: 80px 40px;
}

.section-legal .section-content {
  max-width: 900px;
}

.legal-disclaimer h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 20px;
}

.legal-intro {
  font-size: 1.0625rem;
  color: var(--grey-dark);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Footer legal block */
.footer-legal {
  padding: 24px 0;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

.footer-legal-link {
  color: var(--lqcolor-primary);
  text-decoration: underline;
}

.footer-legal-link:hover {
  color: var(--lqcolor-light);
}

/* ----------------------------------------
   Utility: Hidden
   ---------------------------------------- */
.hidden {
  display: none !important;
}

/* ----------------------------------------
   Language Toggle
   ---------------------------------------- */
.lang-toggle {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--grey-subtle);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0.02em;
  color: var(--grey-medium);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  user-select: none;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.lang-toggle .active {
  color: var(--lqcolor-primary);
}

.lang-toggle-divider {
  color: var(--grey-subtle);
  font-weight: 300;
}

@media (max-width: 768px) {
  .lang-toggle {
    top: 14px;
    right: 16px;
    padding: 4px 12px;
    font-size: 0.75rem;
  }
}

/* Responsive gate */
@media (max-width: 600px) {
  .investor-gate-body,
  .investor-gate-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .investor-gate-header {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .gate-disclaimer-content {
    padding: 24px;
  }
}
