/* =============================================
   O‘zYYE — O‘zbekiston Yetakchi Yoshlari Ensiklopediyasi
   Premium Dark Edition (Senior Frontend)
   ============================================= */

@view-transition {
  navigation: auto;
}

/* Outfit has no glyph for the Uzbek letter marks ʻ and ʼ, so browsers borrowed a
   wider one from another font and left a gap after Oʻ and gʻ. This tiny face reuses
   Outfit's own quote shapes for them. It is a separate family listed before
   Outfit, because Chrome prefers Google's Outfit face even where it lacks a glyph. */
@font-face {
  font-family: 'Outfit UZ';
  src: url("fonts/outfit-uz-marks.2dd95b2bac0b.woff2") format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+02BB-02BC;
}

/* ===== CSS VARIABLES ===== */
:root {
  /* Ultra-Premium Dark Theme (Linear/Stripe style) */
  --bg-body: #050d1b; /* Deep astronomical navy */
  --bg-surface: rgba(13, 19, 36, 0.85);
  --bg-surface-hover: rgba(20, 29, 54, 0.95);
  --bg-surface-active: rgba(30, 42, 75, 0.95);
  
  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #dbe4f0;
  --text-tertiary: #b8c6d9;

  /* Accent Colors (From Logo) */
  --accent-primary: #00A6EB; /* Bright Cyan/Blue */
  --accent-primary-hover: #008cc7;
  --accent-secondary: #0D2C54; /* Deep Navy */
  --accent-gold: #C9A050; /* Premium Gold */
  --accent-green: #009B4D; /* Green accent */

  /* Borders & Glows */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-highlight: rgba(255, 255, 255, 0.12);
  
  --glow-primary: 0 0 40px rgba(0, 166, 235, 0.15);
  --glow-gold: 0 0 40px rgba(201, 160, 80, 0.15);
  
  /* Soft Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);

  /* Fonts */
  --font-main: 'Outfit UZ', 'Outfit', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 80px;
  --site-bottom-clearance: 0px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  font-size: 16px;
  background-color: var(--bg-body);
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

ul, ol {
  list-style: none;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 32px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, .section-title, .hero-title {
  text-wrap: balance;
  font-family: var(--font-heading);
}

p, .section-desc {
  text-wrap: pretty;
}

.section-label {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
  position: relative;
  padding-left: 48px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 1px;
  background: var(--accent-gold);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.section-desc {
  color: var(--text-secondary);
  text-shadow: 0 1px 3px rgba(2, 6, 23, 0.8);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 600px;
}

.section-header {
  margin-bottom: 80px;
  max-width: 720px;
}

.section-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 56px;
  padding-top: 16px;
}

/* ===== BUTTONS (APPLE-STYLE PROFESSIONAL) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 980px; /* Signature Apple pill */
  font-family: -apple-system, BlinkMacSystemFont, var(--font-heading), 'SF Pro Text', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #0071e3;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 4px 16px rgba(0, 113, 227, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: #0077ed;
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 113, 227, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-primary:active {
  background: #006edb;
  transform: scale(0.97);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 113, 227, 0.3),
    inset 0 1px 0 rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7 !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-outline:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.97);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* Micro-interaction for button arrow/chevron */
.btn .btn-arrow,
.btn svg.btn-arrow {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover .btn-arrow,
.btn:hover svg.btn-arrow {
  transform: translateX(3px);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 24px; /* Floating from top */
  inset-inline: 0;
  z-index: 1000;
  height: auto;
  display: flex;
  justify-content: center;
  pointer-events: none; /* Let clicks pass through empty areas */
}

/* Modern Shrink Header */
@supports (animation-timeline: scroll()) {
  @keyframes shrink-header {
    to {
      transform: scale(0.96) translateY(-10px);
      opacity: 0.95;
    }
  }
  
  .site-header {
    animation: shrink-header auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 150px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: max-content; /* Floating island style */
  max-width: calc(100% - 32px); /* keep some margin on mobile */
  height: 76px;
  background: rgba(10, 14, 26, 0.94); /* Dark opaque background */
  padding: 0 20px 0 28px;
  border-radius: 100px;
  /* Keep the rounded edge in one paint layer during the scroll transform.
     A translucent border over backdrop blur can leave corner seams. */
  border: 1px solid transparent;
  background-clip: padding-box;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  pointer-events: auto; /* Re-enable clicks inside the pill */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 166, 235, 0.15);
  gap: 32px;
}

.logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 166, 235, 0.3));
  transition: transform var(--transition), opacity var(--transition);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.logo-link:hover .logo-img {
  opacity: 0.9;
  transform: scale(1.05);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  background: transparent;
  padding: 0;
  border: none;
  backdrop-filter: none;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00A6EB;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

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

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-cta {
  background: linear-gradient(135deg, #00A6EB 0%, #0066FF 100%);
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 700;
  border: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 166, 235, 0.3);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #00B5FF 0%, #1A75FF 100%);
  box-shadow: 0 6px 20px rgba(0, 166, 235, 0.5);
  transform: scale(1.03);
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
  margin-block: auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  border-radius: 980px;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  white-space: normal;
  height: auto;
  line-height: 1.4;
  max-width: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.main-hero-logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: -0.035em;
}

.hero-title span {
  display: block;
}

.hero-accent {
  background: linear-gradient(135deg, #ffffff 0%, #00A6EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-accent.gold {
  background: linear-gradient(135deg, #00A6EB 0%, #0066FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-shadow: 0 1px 3px rgba(2, 6, 23, 0.8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-image {
  position: relative;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.hero-img {
  width: 100%;
  transition: all var(--transition-slow);
}

.hero-image:hover .hero-img {
  transform: scale(1.02);
}

/* ===== ABOUT (STATS) SECTION ===== */
.about-section {
  padding: 160px 0;
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

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

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(0, 166, 235, 0.35);
  box-shadow: 0 10px 35px rgba(0, 166, 235, 0.15);
  transform: translateY(-6px);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, #00A6EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ===== LEADERS CARDS ===== */
.content-section {
  padding: 120px 0;
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.leader-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.leader-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
  transition: all var(--transition);
}

.leader-card:hover {
  transform: translateY(-8px);
  background: var(--bg-surface-hover);
  border-color: rgba(0, 166, 235, 0.4);
  box-shadow: 0 15px 35px rgba(0, 166, 235, 0.15);
}

.leader-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
}
.leader-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
  display: block;
}

.leader-card:hover .leader-photo {
  transform: scale(1.05);
}

.leader-info {
  padding: 28px 24px;
}

.leader-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.leader-sphere {
  display: block;
  font-size: 0.8rem;
  color: #00A6EB;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ===== JOURNAL SECTION ===== */
.journal-section {
  padding: 160px 0;
  background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.03));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: center;
}

.journal-cover-wrap {
  perspective: 1200px;
}

.journal-cover-img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  transition: all var(--transition-slow);
}

.journal-cover-wrap:hover .journal-cover-img {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 0 1px #00A6EB;
}

.journal-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}

.journal-feature {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.journal-feature:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary-hover);
  transform: translateX(10px);
}

/* ===== QUOTES / TOP 100 SECTION ===== */
.quotes-section {
  padding: 120px 0;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.quote-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.quote-card:hover {
  border-color: rgba(0, 166, 235, 0.4);
  background: rgba(0, 166, 235, 0.03);
  transform: translateY(-6px);
}

.quote-mark {
  font-size: 4rem;
  font-family: Georgia, serif;
  color: #00A6EB;
  opacity: 0.6;
  line-height: 0;
  margin-bottom: 32px;
}

.quote-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 300;
  margin-bottom: 40px;
  flex-grow: 1;
}

.quote-author strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.quote-author span {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =============================================
   CONTINUOUS HORIZONTAL MARQUEES (LEADERS & QUOTES)
   ============================================= */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0 32px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  touch-action: pan-y;
  cursor: grab;
}

.marquee-wrapper.is-dragging { cursor: grabbing; }
.marquee-wrapper.is-dragging a { pointer-events: none; }

.marquee-track {
  display: flex;
  width: max-content;
  user-select: none;
  will-change: transform;
}

.marquee-group {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
}

.quotes-marquee .marquee-group {
  align-items: center;
  gap: 24px;
  padding-right: 24px;
}

/* ===== COMPACT LEADER CARDS (MARQUEE) ===== */
.marquee-leader-card {
  width: 210px;
  flex: 0 0 210px;
  /* Opaque instead of backdrop blur: blurring behind moving cards costs a repaint every frame. */
  background: rgb(13, 21, 38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.35s ease;
  position: relative;
  isolation: isolate;
}

.marquee-leader-card:hover,
.marquee-leader-card:focus-visible {
  z-index: 2;
  transform: translateY(-9px) scale(1.025);
  border-color: rgba(67, 196, 255, 0.8);
  box-shadow: 0 20px 42px rgba(0, 166, 235, 0.32), 0 0 0 1px rgba(67, 196, 255, 0.22);
  outline: none;
}

.marquee-leader-card::after,
.marquee-quote-card::after {
  position: absolute;
  z-index: 2;
  right: 12px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 12, 23, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.marquee-leader-card::after {
  content: 'Profilni ochish ↗';
  bottom: 76px;
}

.marquee-quote-card::after {
  content: 'Iqtibosni ko‘rish ↗';
  bottom: 12px;
}

.marquee-leader-card:hover::after,
.marquee-leader-card:focus-visible::after,
.marquee-quote-card:hover::after,
.marquee-quote-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.marquee-leader-photo-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #080d1a;
}

.marquee-leader-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.marquee-leader-card:hover .marquee-leader-photo {
  transform: scale(1.06);
}

.marquee-leader-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 21, 38, 0.95) 0%, rgba(13, 21, 38, 0.2) 40%, transparent 70%);
  pointer-events: none;
}

.marquee-leader-info {
  padding: 12px 14px 16px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  background: rgba(13, 21, 38, 0.85);
}

.marquee-leader-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.marquee-leader-sphere {
  font-size: 0.72rem;
  font-weight: 600;
  color: #00A6EB;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  line-height: 1.5;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

/* ===== COMPACT QUOTE POSTER CARDS (MARQUEE) ===== */
.quotes-marquee {
  --quote-poster-height: 370px;
}

.marquee-quote-card {
  width: max-content;
  height: var(--quote-poster-height);
  flex: 0 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #080d1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.35s ease;
}

.marquee-quote-card:hover {
  z-index: 2;
  transform: translateY(-9px) scale(1.025);
  border-color: rgba(67, 196, 255, 0.8);
  box-shadow: 0 20px 42px rgba(0, 166, 235, 0.32), 0 0 0 1px rgba(67, 196, 255, 0.22);
}

.marquee-quote-card.is-placeholder {
  height: min(var(--quote-poster-height), 210px);
}

.marquee-quote-card:focus-visible {
  z-index: 2;
  outline: 2px solid rgba(67, 196, 255, 0.9);
  outline-offset: 3px;
}

.marquee-quote-img {
  height: 100%;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-leader-card,
  .marquee-quote-card,
  .marquee-leader-photo,
  .marquee-quote-img,
  .marquee-leader-card::after,
  .marquee-quote-card::after {
    transition: none !important;
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .marquee-leader-card {
    width: 175px;
    flex: 0 0 175px;
    border-radius: 14px;
  }
  .marquee-leader-photo-wrap {
    height: 165px;
  }
  .marquee-leader-name {
    font-size: 0.88rem;
  }
  .marquee-leader-sphere {
    font-size: 0.68rem;
  }
  .marquee-quote-card {
    border-radius: 14px;
  }
  .quotes-marquee {
    --quote-poster-height: clamp(200px, 62vw, 260px);
  }
  .marquee-group {
    gap: 14px;
    padding-right: 14px;
  }
  .quotes-marquee .marquee-group {
    gap: 16px;
    padding-right: 16px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .marquee-wrapper {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    cursor: auto;
  }
  .marquee-leader-card, .marquee-quote-card {
    scroll-snap-align: start;
  }
  .marquee-group-clone {
    display: none !important;
  }
}

/* Form Styles */
.apply-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.form-group label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-subtle);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #00A6EB;
  background: rgba(0, 166, 235, 0.05);
  box-shadow: 0 0 15px rgba(0, 166, 235, 0.15);
}

/* ===== PROMO CODE COLLAPSIBLE ===== */
.promo-group {
  margin-top: 8px;
  margin-bottom: 22px;
}

.promo-toggle-btn {
  background: rgba(0, 166, 235, 0.05);
  border: 1px dashed rgba(0, 166, 235, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  color: #38bdf8;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  outline: none;
  transition: all 0.25s ease;
  user-select: none;
}

.promo-toggle-btn:hover {
  background: rgba(0, 166, 235, 0.12);
  border-color: #00A6EB;
  color: #ffffff;
}

.promo-toggle-btn.active {
  border-color: rgba(0, 166, 235, 0.7);
  background: rgba(0, 166, 235, 0.08);
}

.promo-toggle-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.promo-toggle-icon {
  transition: transform 0.25s ease;
  color: #00A6EB;
}

.promo-collapse-content {
  margin-top: 10px;
}

.promo-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.promo-input-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100% !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-sm) !important;
  padding: 14px 18px !important;
  color: var(--text-primary) !important;
  font-family: var(--font-main) !important;
  font-size: 0.95rem !important;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  outline: none !important;
  transition: all var(--transition) !important;
}

.promo-input-row input:focus {
  border-color: #00A6EB !important;
  background: rgba(0, 166, 235, 0.06) !important;
  box-shadow: 0 0 15px rgba(0, 166, 235, 0.2) !important;
}

.btn-apply-promo {
  background: rgba(0, 166, 235, 0.15) !important;
  border: 1.5px solid #00A6EB !important;
  color: #00A6EB !important;
  border-radius: var(--radius-sm) !important;
  padding: 0 22px !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-apply-promo:hover {
  background: #00A6EB !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(0, 166, 235, 0.35) !important;
}

.btn-apply-promo:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.promocode-feedback {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 4px 6px;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 80px;
  /* Reserve fixed controls inside the footer so its background reaches the edge. */
  padding-bottom: var(--site-bottom-clearance);
  background: #020203;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.footer-logo {
  width: auto;
  height: 64px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-link:hover {
  color: #fff;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-nav-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Two columns of four, filled top to bottom so reading order stays intact. */
.footer-nav-list {
  display: grid;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  column-gap: 24px;
}

.footer-nav-list a {
  color: var(--text-secondary);
  display: block;
  padding: 8px 0;
}

.footer-nav-list a:hover {
  color: #00A6EB;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

/* Press Start 2P, subset to MrAstronaut; SIL OFL license in static/fonts/. */
@font-face {
  font-family: 'MrAstronaut Pixel';
  src: url("fonts/mrastronaut-press-start-2p.8356c2f3f450.woff2") format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+41, U+4D, U+61, U+6E-6F, U+72-75;
}

.mrastronaut-signature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  margin-top: 16px;
  padding: 6px;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  vertical-align: middle;
  transition: none;
}

.mrastronaut-signature:visited,
.mrastronaut-signature:hover,
.mrastronaut-signature:focus-visible {
  color: inherit;
}

.mrastronaut-signature:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.mrastronaut-signature__logo {
  flex: none;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.mrastronaut-signature__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  white-space: nowrap;
}

.mrastronaut-signature__label {
  font-size: 0.625rem;
  line-height: 1.2;
}

.mrastronaut-signature__name {
  font-family: 'MrAstronaut Pixel', monospace;
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1.5;
}

.mrastronaut-signature__arrow {
  flex: none;
  font-size: 1rem;
  line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .mrastronaut-signature__arrow {
    transition: transform 160ms ease;
  }

  .mrastronaut-signature:hover .mrastronaut-signature__arrow,
  .mrastronaut-signature:focus-visible .mrastronaut-signature__arrow {
    transform: translate(2px, -2px);
  }
}

/* Reveal each card once; scrolling back must not reverse its animation. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal-pending.visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
}

/* ===== JOURNAL ISSUE CARDS ===== */
.journal-issue-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.journal-issue-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-6px);
  box-shadow: var(--glow-gold);
}

.journal-issue-cover {
  height: 340px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.journal-issue-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

.journal-issue-card:hover .journal-issue-cover img {
  transform: scale(1.05);
}

.journal-issue-body {
  padding: 24px;
}

.journal-issue-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.journal-issue-badge {
  background: var(--accent-gold);
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.journal-issue-badge.upcoming {
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
}

.journal-issue-date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.journal-issue-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.journal-issue-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ===== MOBILE MENU & BURGER ===== */
.burger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: 8px;
  transition: all var(--transition);
}

.burger-btn span:nth-child(1) { top: 12px; }
.burger-btn span:nth-child(2) { top: 19px; }
.burger-btn span:nth-child(3) { top: 26px; }

.burger-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 19px;
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 19px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 7, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 120px;
  padding-bottom: 40px;
  overflow-y: auto;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-nav-cta {
  display: inline-block;
  margin-top: 16px;
  background: var(--accent-gold);
  color: #000;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
}

/* Mobile Header & Responsive Breakpoints */
@media (max-width: 1200px) {
  .nav-list { display: none; }
  .burger-btn { display: block; }
  .header-inner {
    height: 60px;
    padding: 0 16px 0 22px;
    gap: 20px;
  }
  .logo-img {
    height: 42px;
  }
}

@media (min-width: 1201px) {
  .mobile-menu { display: none !important; }
}

/* Tablet & Half-Screen (Split-Window) — Always Center Hero */
@media (max-width: 1080px) {
  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 44px;
    width: 100%;
    max-width: 780px;
    margin-inline: auto;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-inline: auto;
  }

  .hero-badge {
    margin-inline: auto;
    text-align: center;
    margin-bottom: 20px;
  }

  .hero-title {
    text-align: center;
    margin-inline: auto;
    font-size: clamp(2.3rem, 5.5vw, 3.8rem);
    margin-bottom: 24px;
  }

  .hero-subtitle {
    text-align: center;
    margin-inline: auto;
    max-width: 600px;
    margin-bottom: 36px;
    font-size: 1.15rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-inline: auto;
    width: auto;
  }

  .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .main-hero-logo {
    display: block;
    margin-inline: auto;
    max-width: min(440px, 80vw);
    height: auto;
  }

  .about-grid, .journal-grid, .footer-inner {
    grid-template-columns: 1fr;
    gap: 64px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}


/* ===== MOBILE RESPONSIVE TWEAKS ===== */
@media (max-width: 768px) {
  .container {
    padding-inline: 16px;
  }
  
  /* Layout Gaps & Padding */
  .hero-main, .about-grid, .journal-grid, .footer-inner, .quotes-grid, .leaders-grid {
    gap: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .hero-section {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 48px;
  }
  
  .about-section, .journal-section, .quotes-section {
    padding: 80px 0;
  }
  
  .content-section {
    padding: 60px 0;
  }
  
  .site-footer {
    padding-top: 40px;
  }
  
  .footer-inner {
    margin-bottom: 40px;
  }

  /* Typography */
  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.6rem);
    margin-bottom: 18px;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 28px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  /* Buttons on mobile */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 12px;
    margin-inline: auto;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }

  .main-hero-logo {
    max-width: min(320px, 75vw);
  }
  
  /* Cards */
  .stat-card {
    padding: 24px 16px;
  }
  
  .quote-card {
    padding: 32px 24px;
  }
  
  .apply-form {
    padding: 32px 20px;
  }
  
  /* Header Inner on Tablet */
  .header-inner {
    padding: 0 20px;
    height: 56px;
  }
  
  .logo-img {
    height: 40px;
  }
}

/* ===== MOBILE APP BOTTOM NAVIGATION BAR ===== */
.mobile-app-nav {
  display: none;
}

@media (max-width: 768px) {
  /* Keep the bottom bar's clearance within the footer, including safe areas. */
  :root {
    --site-bottom-clearance: 96px;
  }

  .site-footer {
    padding-bottom: calc(48px + var(--site-bottom-clearance) + env(safe-area-inset-bottom, 0px));
  }

  /* Compact centered top brand capsule on mobile */
  .site-header {
    top: 14px !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    pointer-events: none !important;
  }

  .header-inner {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 52px !important;
    padding: 0 20px !important;
    margin: 0 auto !important;
    gap: 0 !important;
    border-radius: 100px !important;
    background: rgba(10, 14, 26, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid transparent !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 166, 235, 0.12) !important;
    pointer-events: auto !important;
  }

  .logo-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .logo-img {
    height: 38px !important;
    width: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Completely hide nav and burger from top header on mobile */
  .header-inner .main-nav,
  .main-nav {
    display: none !important;
  }

  .header-inner .burger-btn,
  .burger-btn {
    display: none !important;
  }

  /* Mobile App Bottom Bar (Tab Bar) */
  .mobile-app-nav {
    display: flex;
    position: fixed;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    max-width: 480px;
    margin: 0 auto;
    height: 76px;
    background: rgba(10, 16, 32, 0.78);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 40px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 166, 235, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    padding: 5px 6px;
    box-sizing: border-box;
    pointer-events: auto;
  }

  .mobile-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 10px 2px 6px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    background: none;
    border: 1px solid transparent;
    border-radius: 22px;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 150ms ease;
    box-sizing: border-box;
  }

  .mobile-tab-item:active {
    transform: scale(0.94);
  }

  /* Distribute width according to label length and active card size */
  #mobile-tab-home {
    flex: 1.25;
  }

  #mobile-tab-leaders {
    flex: 1.05;
  }

  #mobile-tab-opportunities {
    flex: 1.15;
  }

  #mobile-tab-journal {
    flex: 0.75;
  }

  #mobile-tab-apply {
    flex: 1.2;
  }

  #mobile-tab-menu {
    flex: 0.7;
  }

  .mobile-tab-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.88);
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease, filter 200ms ease;
  }

  .mobile-tab-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.85;
    fill: none;
    display: block;
  }

  .mobile-tab-label {
    display: block;
    font-family: var(--font-main, 'Outfit UZ', 'Outfit', sans-serif);
    font-size: clamp(8.5px, 2.2vw, 10px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.75);
    transition: color 200ms ease, font-weight 200ms ease;
  }

  /* Active Tab State */
  .mobile-tab-item.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .mobile-tab-item.active .mobile-tab-icon-wrap {
    color: #00b4ff;
    filter: drop-shadow(0 0 6px rgba(0, 180, 255, 0.9)) drop-shadow(0 0 14px rgba(0, 180, 255, 0.75));
    transform: none;
  }

  .mobile-tab-item.active .mobile-tab-icon {
    stroke: #00b4ff;
    stroke-width: 2;
  }

  .mobile-tab-item.active .mobile-tab-label {
    color: #ffffff;
    font-weight: 700;
  }

  .mobile-tab-item.active::after {
    content: '';
    display: block;
    width: 13px;
    height: 2.5px;
    border-radius: 99px;
    background: #00d2ff;
    box-shadow: 0 0 6px #00d2ff, 0 0 10px rgba(0, 210, 255, 0.85);
    margin-top: 5px;
  }

  /* Flush edge docking for first and last tab items (no gap with container edges) */
  .mobile-tab-item:first-child.active {
    margin-left: -6px;
    margin-top: -5px;
    margin-bottom: -5px;
    height: calc(100% + 10px);
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
    padding-left: 6px;
    padding-top: 10px;
  }

  .mobile-tab-item:last-child.active {
    margin-right: -6px;
    margin-top: -5px;
    margin-bottom: -5px;
    height: calc(100% + 10px);
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
    padding-right: 6px;
    padding-top: 10px;
  }

  /* Slide-up Bottom Sheet for Mobile Menu */
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
  }

  .mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-list {
    background: rgba(11, 16, 32, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px 28px 0 0;
    padding: 24px 20px calc(32px + env(safe-area-inset-bottom, 0px)) 20px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 166, 235, 0.15);
    transform: translateY(100%);
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
  }

  .mobile-menu.open .mobile-nav-list {
    transform: translateY(0);
  }

  .mobile-nav-link {
    font-family: var(--font-main, 'Outfit UZ', 'Outfit', sans-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: #D6DCEF;
    letter-spacing: 0;
    text-transform: none;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 180ms ease;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:active {
    background: rgba(0, 166, 235, 0.12);
    border-color: rgba(0, 166, 235, 0.35);
    color: #ffffff;
  }

  .mobile-nav-cta {
    margin-top: 8px;
    background: linear-gradient(135deg, #00A6EB 0%, #0066FF 100%) !important;
    border: 1px solid #38bdf8 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 16px !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px rgba(0, 166, 235, 0.4) !important;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .leaders-grid, .quotes-grid {
    grid-template-columns: 1fr;
  }
  
  .journal-feature {
    padding: 16px;
    gap: 12px;
  }
}
