/* ==================================================
   RAIZ — Mobile App UGC Creative Studio
   Design System & Stylesheet — IMMERSIVE UI THEME
   Deep Obsidian · Sci-Fi Telemetry · Luminous Cyan & Emerald Glow
   ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Immersive UI Palette — Deep Obsidian, Translucent Glass & Technical Luminescence */
  --raiz-bg: #020617;                   /* Deep Obsidian / Slate-950 Canvas */
  --raiz-surface: rgba(15, 23, 42, 0.65);    /* Slate-900 Glassmorphic Surface */
  --raiz-surface-light: rgba(30, 41, 59, 0.45);
  --raiz-surface-card: rgba(15, 23, 42, 0.75);
  --raiz-surface-card-hover: rgba(30, 41, 59, 0.85);
  
  --raiz-text: #F8FAFC;                 /* Slate-50 High-Contrast Crisp White */
  --raiz-text-secondary: #94A3B8;       /* Slate-400 */
  --raiz-muted: #64748B;                /* Slate-500 */
  --raiz-border: rgba(255, 255, 255, 0.08);
  --raiz-border-strong: rgba(255, 255, 255, 0.16);
  --raiz-border-glow: rgba(6, 182, 212, 0.4);

  /* Brand Accents — Immersive Neon & Telemetry Colors */
  --raiz-accent: #06B6D4;               /* Luminous Cyan */
  --raiz-accent-hover: #22D3EE;         /* Electric Cyan Glow */
  --raiz-accent-tint: rgba(6, 182, 212, 0.12);
  --raiz-accent-glow: 0 0 20px rgba(6, 182, 212, 0.45);

  --raiz-warm: #F59E0B;                 /* Luminous Amber */
  --raiz-warm-hover: #FBBF24;
  --raiz-warm-tint: rgba(245, 158, 11, 0.12);
  --raiz-warm-glow: 0 0 16px rgba(245, 158, 11, 0.4);

  --raiz-emerald: #10B981;              /* System Nominal Emerald */
  --raiz-emerald-tint: rgba(16, 185, 129, 0.12);
  --raiz-emerald-glow: 0 0 12px rgba(16, 185, 129, 0.45);

  --raiz-blue: #3B82F6;                 /* Ocean Research Blue */
  --raiz-blue-tint: rgba(59, 130, 246, 0.12);

  --raiz-white: #FFFFFF;
  --raiz-dark-surface: #020617;
  --raiz-dark-text: #F8FAFC;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6.5rem;
  
  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  /* Immersive Shadows & Optical Glows */
  --shadow-subtle: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(6, 182, 212, 0.22);
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(6, 182, 212, 0.18);
  --shadow-cyan-glow: 0 0 25px rgba(6, 182, 212, 0.35);

  /* Typography Fonts */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, Cambria, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Transition timings */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--raiz-bg);
  color: var(--raiz-text);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background-color: var(--raiz-bg);
  background-image: 
    radial-gradient(circle at 50% 0%, #0b1329 0%, #020617 75%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
}

/* Immersive Ambient Glow Orbs */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: -150px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  right: -100px;
  width: 850px;
  height: 850px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.11) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(160px);
  pointer-events: none;
  z-index: 0;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--raiz-text);
  letter-spacing: -0.015em;
}

.font-sans {
  font-family: var(--font-sans);
}

.font-mono {
  font-family: var(--font-mono);
}

.hero-headline {
  font-size: clamp(2.75rem, 6.5vw, 6.25rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-shadow: 0 0 40px rgba(6, 182, 212, 0.15);
}

.section-headline {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.subsection-headline {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.2;
  color: #FFFFFF;
}

.body-large {
  font-size: clamp(1.125rem, 1.4vw, 1.35rem);
  line-height: 1.6;
  color: var(--raiz-text-secondary);
}

.body-lead {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.55;
  color: var(--raiz-text);
}

.caption {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--raiz-accent);
  font-weight: 700;
  font-family: var(--font-mono);
}

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

p {
  color: var(--raiz-text-secondary);
  line-height: 1.65;
  max-width: 68ch;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

.container-narrow {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

.section-padding {
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
  position: relative;
}

.section-padding-top {
  padding-top: clamp(4rem, 8vw, 8rem);
}

.section-padding-bottom {
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-color var(--transition-normal), padding var(--transition-normal), box-shadow var(--transition-normal);
  padding: 1.25rem 0;
  background-color: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.scrolled {
  background-color: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.9rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.12);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 1.45rem;
  text-transform: uppercase;
  color: #FFFFFF;
}

.brand-logo .logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--raiz-accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #06b6d4, 0 0 4px #22d3ee;
}

.brand-subtext {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--raiz-accent);
  font-family: var(--font-mono);
  text-transform: uppercase;
  display: none;
  opacity: 0.9;
}

@media (min-width: 900px) {
  .brand-subtext {
    display: inline-block;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--raiz-text-secondary);
  position: relative;
  padding: 0.4rem 0;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--raiz-accent);
  border-radius: 2px;
  box-shadow: 0 0 8px #06b6d4;
}

.nav-cta {
  display: none;
}

@media (min-width: 600px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--raiz-border-strong);
  cursor: pointer;
  z-index: 110;
  padding: 10px;
  gap: 5px;
  backdrop-filter: blur(8px);
}

@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 105;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6rem 2rem 3rem 2rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.4s;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-link {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: #FFFFFF;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-link.active {
  color: var(--raiz-accent);
  font-style: italic;
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.mobile-drawer-footer {
  border-top: 1px solid var(--raiz-border);
  padding-top: 1.5rem;
}

/* Buttons and Links — Luminous & Glassmorphic */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  color: #020617;
  font-weight: 700;
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #22D3EE 0%, #0EA5E9 100%);
  border-color: #22D3EE;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.55), 0 8px 24px rgba(0, 0, 0, 0.4);
  color: #020617;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(6, 182, 212, 0.5);
  color: #22D3EE;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.2);
}

.btn-warm {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #020617;
  font-weight: 700;
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.btn-warm:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #B45309 100%);
  border-color: #FBBF24;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.55);
  color: #020617;
}

.btn-small {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn-large {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
}

/* Badges & Tags — Technical Telemetry HUD */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  white-space: nowrap;
  font-family: var(--font-mono);
}

.badge-accent {
  background-color: rgba(6, 182, 212, 0.12);
  color: #22D3EE;
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.badge-warm {
  background-color: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.badge-spec {
  background-color: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.badge-client {
  background-color: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* Hero Section */
.hero-section {
  padding-top: clamp(7.5rem, 14vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--raiz-accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.hero-tagline::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--raiz-accent);
  box-shadow: 0 0 8px #06b6d4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Hero 3-Video Living Canvas / Editorial Showcase */
.hero-visual-canvas {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.hero-creators-trio {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 580px;
  justify-content: center;
}

.hero-creator-card {
  flex: 1;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-creator-card:nth-child(2) {
  transform: translateY(-16px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.15);
}

.hero-creator-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-hover);
  border-color: var(--raiz-accent);
  z-index: 5;
}

.hero-creator-card:nth-child(2):hover {
  transform: translateY(-24px) scale(1.03);
  border-color: #22D3EE;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.35);
}

.hero-creator-card video, 
.hero-creator-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-creator-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 0.85rem 0.85rem 0.85rem;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.6) 60%, transparent 100%);
  color: var(--raiz-white);
  display: flex;
  flex-direction: column;
}

.hero-creator-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: #FFFFFF;
}

.hero-creator-location {
  font-size: 0.75rem;
  color: var(--raiz-text-secondary);
}

.hero-creator-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22D3EE;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
}

/* Surface Section / Cards */
.bg-surface {
  background-color: rgba(15, 23, 42, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.bg-white {
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bg-dark {
  background-color: rgba(2, 6, 23, 0.9);
  color: var(--raiz-dark-text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: #FFFFFF;
}

.bg-dark p {
  color: var(--raiz-text-secondary);
}

/* Editorial Split & Feature Blocks */
.editorial-lead {
  border-left: 2px solid var(--raiz-accent);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 1.5rem;
  box-shadow: -4px 0 15px rgba(6, 182, 212, 0.2);
}

/* Journey Flow (Discover -> Install) */
.journey-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 3rem;
  padding: 1.75rem;
  background-color: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-subtle);
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 110px;
  padding: 0.5rem;
}

.journey-step-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--raiz-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.journey-step-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.journey-arrow {
  color: var(--raiz-accent);
  font-size: 1.1rem;
  opacity: 0.6;
  text-shadow: 0 0 8px #06b6d4;
}

@media (max-width: 680px) {
  .journey-flow {
    flex-direction: column;
    align-items: stretch;
  }
  .journey-arrow {
    transform: rotate(90deg);
    margin: 0.25rem auto;
  }
}

/* One App. Three Perspectives Section */
.perspectives-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (min-width: 860px) {
  .perspectives-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.perspective-card {
  background-color: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
}

.perspective-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(6, 182, 212, 0.4);
}

.perspective-media {
  position: relative;
  aspect-ratio: 9 / 13;
  background-color: rgba(2, 6, 23, 0.8);
  overflow: hidden;
}

.perspective-media video,
.perspective-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.perspective-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.perspective-creator-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.perspective-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 1.25rem 0;
}

.trait-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: rgba(15, 23, 42, 0.6);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  transition: all var(--transition-fast);
}

.trait-pill:hover {
  border-color: rgba(6, 182, 212, 0.5);
  color: #22D3EE;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Services / What We Create Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background-color: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  backdrop-filter: blur(12px);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: var(--shadow-hover);
}

.service-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--raiz-accent);
  margin-bottom: 1rem;
  display: block;
  font-family: var(--font-mono);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.service-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.925rem;
  color: var(--raiz-text-secondary);
  line-height: 1.55;
}

/* Video Portfolio Architecture */
.portfolio-header-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .portfolio-header-area {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(15, 23, 42, 0.6);
  color: var(--raiz-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.filter-btn:hover {
  border-color: rgba(6, 182, 212, 0.5);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  color: #020617;
  font-weight: 700;
  border-color: #22D3EE;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.45);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 580px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.video-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 9 / 16;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(6, 182, 212, 0.5);
}

.video-card-media {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.video-card-media video,
.video-card-media img,
.video-card-media .card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0b1329 0%, #020617 100%);
  color: var(--raiz-text-secondary);
  padding: 1.5rem;
  text-align: center;
}

.video-card-top-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.video-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.45) 45%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: var(--raiz-white);
  transition: opacity var(--transition-fast);
  z-index: 2;
}

.video-card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.video-card-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  color: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
  opacity: 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast);
  z-index: 3;
}

.video-card:hover .video-card-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 768px) {
  .video-card-play-btn {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

/* Creative Testing Formula Block — Telemetry Analysis Engine */
.formula-box {
  background-color: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  margin-top: 3rem;
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(16px);
}

.formula-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  text-align: center;
}

.formula-factor {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1.75rem;
  background-color: rgba(2, 6, 23, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 130px;
}

.formula-num {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 600;
  color: #22D3EE;
  line-height: 1;
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.formula-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--raiz-muted);
  margin-top: 0.4rem;
  font-family: var(--font-mono);
}

.formula-op {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--raiz-accent);
  text-shadow: 0 0 8px #06b6d4;
}

.formula-result {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(2, 132, 199, 0.2) 100%);
  color: var(--raiz-white);
  border: 1px solid rgba(6, 182, 212, 0.5);
  padding: 1.25rem 2.25rem;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
}

.formula-result .formula-num {
  color: #FFFFFF;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.7);
}

.formula-result .formula-label {
  color: #22D3EE;
}

/* Process Steps */
.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px) {
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step-card {
  background-color: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
}

.process-step-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.15);
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  color: var(--raiz-accent);
  margin-bottom: 0.75rem;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.process-step-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

/* Creator Profile Cards (Meet the Creators & Team Page) */
.creators-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 900px) {
  .creators-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.creator-profile-card {
  background-color: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  backdrop-filter: blur(12px);
}

.creator-profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(6, 182, 212, 0.45);
}

.creator-profile-img {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: rgba(2, 6, 23, 0.8);
  overflow: hidden;
}

.creator-profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creator-profile-body {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.creator-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--raiz-accent);
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}

.creator-profile-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.creator-profile-geo {
  font-size: 0.875rem;
  color: var(--raiz-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
}

.creator-style-box {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Timeline / Story Architecture */
.story-timeline {
  position: relative;
  max-width: 800px;
  margin: 3.5rem auto 0 auto;
  padding-left: 2rem;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, #06B6D4, rgba(6, 182, 212, 0.2));
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--raiz-bg);
  border: 3px solid var(--raiz-accent);
  box-shadow: 0 0 12px #06b6d4;
}

.timeline-item:last-child .timeline-dot {
  background-color: var(--raiz-accent);
}

.timeline-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--raiz-accent);
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

/* Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.principle-card {
  background-color: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
}

.principle-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.15);
}

.principle-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--raiz-accent);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.principle-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

/* Contact Form Architecture */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr 1.35fr;
  }
}

.contact-form-card {
  background-color: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(16px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: var(--raiz-accent);
}

.form-control {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(2, 6, 23, 0.7);
  color: #F8FAFC;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: #22D3EE;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.35);
  background-color: rgba(15, 23, 42, 0.85);
}

.form-control option {
  background-color: #020617;
  color: #F8FAFC;
}

.form-control.error {
  border-color: #EF4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.form-error-msg {
  font-size: 0.8rem;
  color: #F87171;
  margin-top: 0.35rem;
  display: none;
  font-family: var(--font-mono);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.radio-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio-pill-label {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(2, 6, 23, 0.6);
  color: #CBD5E1;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.radio-pill-label:hover {
  border-color: rgba(6, 182, 212, 0.4);
  color: #FFFFFF;
}

.radio-pill-label input {
  display: none;
}

.radio-pill-label:has(input:checked) {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(2, 132, 199, 0.25));
  border-color: #22D3EE;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
  font-weight: 600;
}

.form-success-state {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}

.form-success-state.active {
  display: block;
}

/* Video Modal */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.video-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.video-modal-container {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 94vh;
  background-color: rgba(15, 23, 42, 0.95);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow-modal);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  backdrop-filter: blur(24px);
}

@media (min-width: 768px) {
  .video-modal-container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.video-modal-backdrop.open .video-modal-container {
  transform: scale(1);
}

.modal-video-pane {
  background-color: #020617;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 16;
  max-height: 80vh;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-video-pane video {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.modal-info-pane {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  background-color: rgba(15, 23, 42, 0.85);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background-color: rgba(6, 182, 212, 0.2);
  border-color: #22D3EE;
  color: #22D3EE;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.modal-nav-btns {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Footer Architecture */
.site-footer {
  background-color: rgba(2, 6, 23, 0.95);
  color: var(--raiz-dark-text);
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: 2.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .footer-top-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand-title {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--raiz-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--raiz-accent);
  margin-bottom: 1.25rem;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.35);
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-list a {
  color: var(--raiz-text-secondary);
  font-size: 0.925rem;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.footer-link-list a:hover {
  color: #22D3EE;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.825rem;
  color: var(--raiz-muted);
  font-family: var(--font-mono);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Editorial Dividers */
.divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: 3.5rem 0;
}
