/* ==========================================================================
   BRICKSPERU FLAGSHIP — DESIGN SYSTEM & HIGH-PERFORMANCE STYLESHEET
   Platform: Cloudflare Edge Ultra-Fast / Vanilla CSS
   Aesthetic: Tech-Luxury Obsidian & Champagne Amber / Teal Cybernetics
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --color-obsidian: #090D12;
  --color-surface-dark: #0F141C;
  --color-surface-card: #151B24;
  --color-surface-elevated: #1C2430;

  --color-brand-amber: #F5A623;
  --color-brand-amber-light: #FFBA42;
  --color-brand-teal: #50C1B7;
  --color-brand-teal-light: #67D9CF;
  --color-brand-yellow: #F8E71C;
  
  --color-text-primary: #F8FAFC;
  --color-text-secondary: #CBD5E1;
  --color-text-muted: #94A3B8;

  --font-headline: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 68px;
}

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

html {
  font-size: 16px;
  background-color: var(--color-obsidian);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--color-obsidian);
  overflow-x: hidden;
  line-height: 1.55;
}

/* Anchor Scroll Offsets (Prevents sticky header overlap) */
#hero, #interactive-lab, #founder {
  scroll-margin-top: 85px;
}

/* --- Typography Helpers --- */
.font-outfit { font-family: var(--font-headline); }
.font-sans { font-family: var(--font-body); }
.font-mono { font-family: var(--font-mono); }

/* --- Colors --- */
.text-brand-amber { color: var(--color-brand-amber); }
.text-brand-teal { color: var(--color-brand-teal); }
.text-brand-yellow { color: var(--color-brand-yellow); }
.bg-obsidian { background-color: var(--color-obsidian); }
.bg-brand-amber { background-color: var(--color-brand-amber); }
.bg-brand-teal { background-color: var(--color-brand-teal); }

/* --- HEADER & LOGO ISOTYPE SYSTEM (STRICT PROPORTIONS) --- */
.site-header {
  height: var(--header-height);
  position: relative; /* Static document flow: prevents overlaying on page content during scrolling */
  z-index: 40;
  background: rgba(9, 13, 18, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-isotype {
  height: 32px;
  width: auto;
  max-height: 34px;
  max-width: 44px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(245, 166, 35, 0.2));
  transition: transform 0.25s ease;
}

.site-brand-link:hover .site-isotype {
  transform: scale(1.05);
}

.footer-isotype {
  height: 28px;
  width: auto;
  max-height: 28px;
  max-width: 38px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* VIP WhatsApp Button in Header */
.btn-vip-header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #F5A623 0%, #FFBA42 100%);
  color: #090D12 !important;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.05rem;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-vip-header:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
  background: linear-gradient(135deg, #FFBA42 0%, #F8E71C 100%);
  color: #000000 !important;
}

/* --- Glassmorphism Components --- */
.glass-card {
  background: rgba(21, 27, 36, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(245, 166, 35, 0.25);
  transform: translateY(-2px);
}

.glass-card-premium {
  background: linear-gradient(135deg, rgba(28, 36, 48, 0.7) 0%, rgba(15, 20, 28, 0.8) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px -10px rgba(0, 0, 0, 0.6);
  transition: all 0.35s var(--transition-smooth);
}

.glass-card-premium:hover {
  border-color: rgba(80, 193, 183, 0.35);
  box-shadow: 0 24px 48px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(80, 193, 183, 0.1);
}

/* --- Buttons & Action Glows --- */
.btn-primary-glow,
.btn-amber-gold {
  background: linear-gradient(135deg, #F5A623 0%, #FFBA42 100%);
  color: #090D12 !important;
  font-family: var(--font-headline);
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(245, 166, 35, 0.35);
  transition: all 0.3s var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary-glow:hover,
.btn-amber-gold:hover {
  background: linear-gradient(135deg, #FFBA42 0%, #F8E71C 100%);
  color: #000000 !important;
  box-shadow: 0 6px 25px rgba(245, 166, 35, 0.55);
  transform: translateY(-1px);
}

.glass-btn {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s ease;
}

/* --- Pulse Dot Indicators --- */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.6;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* --- Language Switcher --- */
.lang-btn {
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--color-brand-teal);
  color: #090D12;
}

/* --- Tab Navigation Buttons --- */
.tab-pill {
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.tab-pill.active {
  background: rgba(245, 166, 35, 0.15);
  color: #FFFFFF;
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.15);
}

.nav-tab-btn {
  color: var(--color-text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

/* --- Tab Panel Visibility & Animation --- */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabFadeIn 0.35s var(--transition-smooth);
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- FOUNDER SECTION BESPOKE LUXURY ARCHITECTURE --- */
.founder-section {
  padding: 3.5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 50% 0%, rgba(245, 166, 35, 0.04) 0%, transparent 70%);
  position: relative;
}

.founder-container {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.founder-section-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
}

.founder-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(80, 193, 183, 0.1);
  border: 1px solid rgba(80, 193, 183, 0.25);
  margin-bottom: 0.75rem;
}

.founder-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-teal);
  box-shadow: 0 0 8px var(--color-brand-teal);
}

.founder-pill-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-teal);
  font-weight: 700;
}

.founder-section-title {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .founder-section-title {
    font-size: 2.25rem;
  }
}

.founder-section-sub {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
}

.founder-card {
  background: linear-gradient(145deg, rgba(22, 29, 39, 0.92) 0%, rgba(13, 18, 25, 0.98) 100%);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 2rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 166, 35, 0.08);
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .founder-card {
    padding: 2.25rem;
  }
}

@media (min-width: 768px) {
  .founder-card {
    padding: 3.5rem;
  }
}

.founder-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .founder-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 3.5rem;
  }
}

.founder-portrait-col {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.founder-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}

.founder-avatar-ring {
  width: 180px;
  height: 180px;
  border-radius: 1.75rem;
  border: 2px solid rgba(245, 166, 35, 0.45);
  background: radial-gradient(circle at 50% 35%, rgba(245, 166, 35, 0.22) 0%, rgba(15, 20, 28, 0.95) 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(245, 166, 35, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.6);
  position: relative;
  margin-bottom: 1rem;
}

.founder-monogram {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.founder-monogram-initials {
  font-family: var(--font-headline);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-brand-amber);
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 0 25px rgba(245, 166, 35, 0.5);
}

.founder-monogram-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brand-teal);
  font-weight: 700;
  margin-top: 0.35rem;
}

.founder-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-secondary);
}

.founder-status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.founder-meta-chips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.founder-meta-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.founder-content-col {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.founder-header-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.founder-name {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .founder-name {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .founder-name {
    font-size: 2.75rem;
  }
}

.founder-role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-brand-amber);
  font-weight: 600;
  margin-top: 0.35rem;
}

.founder-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-brand-amber);
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.founder-quote-box {
  position: relative;
  padding: 1.5rem 1.75rem 1.5rem 2.25rem;
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid var(--color-brand-amber);
  border-radius: 0.5rem 1.25rem 1.25rem 0.5rem;
  margin-bottom: 1.75rem;
}

.founder-quote-mark {
  position: absolute;
  top: -0.25rem;
  left: 0.75rem;
  font-family: serif;
  font-size: 2.75rem;
  color: rgba(245, 166, 35, 0.3);
  line-height: 1;
}

.founder-quote-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #E2E8F0;
  font-weight: 300;
  font-style: italic;
}

.founder-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.founder-metric-item {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.founder-metric-val {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-brand-amber);
  line-height: 1.1;
}

.founder-metric-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 0.25rem;
}

.founder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-founder-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: #0A66C2;
  color: #FFFFFF !important;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(10, 102, 194, 0.35);
  transition: all 0.25s ease;
}

.btn-founder-linkedin:hover {
  background: #004182;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.5);
}

.btn-founder-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-founder-whatsapp:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34D399;
  transform: translateY(-2px);
}

/* --- Custom Range Slider --- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-brand-amber);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.8);
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-obsidian);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 166, 35, 0.4);
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --- Grid & Spacing Utilities --- */
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.relative { position: relative; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.absolute { position: absolute; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

.top-0 { top: 0; }
.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.p-0\.5 { padding: 0.125rem; }
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.pt-10 { padding-top: 2.5rem; }
.pt-12 { padding-top: 3rem; }
.pt-14 { padding-top: 3.5rem; }
.pt-16 { padding-top: 4rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-14 { padding-bottom: 3.5rem; }
.pb-16 { padding-bottom: 4rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l { border-left-width: 1px; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.625rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tight { letter-spacing: -0.025em; }

.text-white { color: #FFFFFF; }
.text-black { color: #000000; }
.text-slate-200 { color: #E2E8F0; }
.text-slate-300 { color: #CBD5E1; }
.text-slate-400 { color: #94A3B8; }
.text-emerald-400 { color: #34D399; }
.text-sky-300 { color: #7DD3FC; }
.text-sky-400 { color: #38BDF8; }
.text-red-400 { color: #F87171; }
.text-amber-300 { color: #FCD34D; }
.text-rose-200 { color: #FECDD3; }

.bg-rose-950\/80 { background-color: rgba(76, 5, 25, 0.85); }
.border-rose-500\/60 { border-color: rgba(244, 63, 94, 0.6); }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 2.75rem; }
  .sm\:text-6xl { font-size: 3.5rem; }
  .sm\:flex { display: flex; }
  .sm\:inline { display: inline; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:inline { display: inline; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:pt-14 { padding-top: 3.5rem; }
  .md\:pb-16 { padding-bottom: 4rem; }
  .md\:text-right { text-align: right; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-4 { grid-column: span 4 / span 12; }
  .lg\:col-span-5 { grid-column: span 5 / span 12; }
  .lg\:col-span-7 { grid-column: span 7 / span 12; }
  .lg\:col-span-8 { grid-column: span 8 / span 12; }
  .lg\:text-7xl { font-size: 4.25rem; line-height: 1; }
  .lg\:items-end { align-items: flex-end; }
  .lg\:items-center { align-items: center; }
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   MODERN WEB GUIDANCE & STITCH 2.0 UX ENHANCEMENTS
   ========================================================================== */

/* 1. Native View Transitions API */
@supports (view-transition-name: tab-viewport) {
  .tab-viewport {
    view-transition-name: tab-viewport;
  }
}

::view-transition-old(tab-viewport),
::view-transition-new(tab-viewport) {
  animation-duration: 0.28s;
  animation-timing-function: var(--transition-smooth);
}

/* 2. Responsive Mobile Tab Navigation Mask */
.tab-scroll-wrapper {
  position: relative;
  width: 100%;
}

@media (max-width: 768px) {
  .tab-scroll-mask {
    -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 24px), transparent);
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .tab-scroll-mask .tab-pill {
    scroll-snap-align: center;
  }
}

/* 3. HTML5 Cinema Modal (<dialog>) */
.cinema-dialog {
  background: rgba(9, 13, 18, 0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.75rem;
  max-width: 50rem;
  width: 94vw;
  padding: 0;
  color: #F8FAFC;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 166, 35, 0.15);
  margin: auto;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinema-dialog::backdrop {
  background: rgba(4, 7, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 4. Touch Targets & Safe Area */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .safe-bottom {
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
}

