/* ═══════════════════════════════════════════════════════════════════════════
   PRISM LAYER - EXTREME ANIMATION STYLES
   Dual Theme System: Fresh (Default) & Minimal (Light)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   ROOT VARIABLES - FRESH THEME (Default)
   Colors extracted from prismlayerlogo2.png
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Primary Colors from Logo */
  --prism-cyan: #11AEF1;
  --prism-teal: #056278;
  --prism-green: #59E16B;
  --prism-lime: #B7EE48;
  --prism-yellow: #E6F34F;
  
  /* Accent Colors */
  --prism-blue: #0D8FCC;
  --prism-mint: #4CD97C;
  
  /* Background */
  --prism-dark: #0A1018;
  --prism-darker: #060A0F;
  
  /* Gradients */
  --prism-gradient: linear-gradient(135deg, var(--prism-cyan) 0%, var(--prism-green) 50%, var(--prism-lime) 100%);
  --prism-gradient-alt: linear-gradient(135deg, var(--prism-teal) 0%, var(--prism-cyan) 50%, var(--prism-green) 100%);
  
  /* Glows */
  --glow-cyan: 0 0 40px rgba(17, 174, 241, 0.4), 0 0 80px rgba(17, 174, 241, 0.2);
  --glow-green: 0 0 40px rgba(89, 225, 107, 0.4), 0 0 80px rgba(89, 225, 107, 0.2);
  --glow-multi: 0 0 30px rgba(17, 174, 241, 0.3), 0 0 60px rgba(89, 225, 107, 0.2), 0 0 90px rgba(183, 238, 72, 0.1);
  
  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(17, 174, 241, 0.15);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
}

/* ─────────────────────────────────────────────────────────────────────────────
   MINIMAL THEME (Light Mode)
   ───────────────────────────────────────────────────────────────────────────── */
body.theme-minimal {
  --prism-cyan: #1a1a1a;
  --prism-teal: #333333;
  --prism-green: #2d2d2d;
  --prism-lime: #404040;
  --prism-yellow: #555555;
  --prism-blue: #222222;
  --prism-mint: #3d3d3d;
  
  --prism-dark: #ffffff;
  --prism-darker: #f5f5f5;
  
  --prism-gradient: linear-gradient(135deg, #1a1a1a 0%, #333333 50%, #4d4d4d 100%);
  --prism-gradient-alt: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #404040 100%);
  
  --glow-cyan: 0 4px 20px rgba(0, 0, 0, 0.1);
  --glow-green: 0 4px 20px rgba(0, 0, 0, 0.08);
  --glow-multi: 0 8px 32px rgba(0, 0, 0, 0.12);
  
  --glass-bg: rgba(0, 0, 0, 0.02);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-glow: rgba(0, 0, 0, 0.05);
  
  --text-primary: #1a1a1a;
  --text-secondary: rgba(0, 0, 0, 0.7);
  --text-muted: rgba(0, 0, 0, 0.5);
}

body.theme-minimal .animated-bg {
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
    #ffffff;
  animation: none;
}

body.theme-minimal .grid-overlay {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

body.theme-minimal .floating-orb {
  opacity: 0.15;
  filter: blur(80px) grayscale(1);
}

body.theme-minimal .particle {
  filter: grayscale(1) !important;
  opacity: 0.3 !important;
}

body.theme-minimal .prism-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.theme-minimal .logo-title {
  background: linear-gradient(90deg, #1a1a1a, #333333);
  -webkit-background-clip: text;
  background-clip: text;
}

body.theme-minimal .nav-link {
  color: rgba(0, 0, 0, 0.6);
}

body.theme-minimal .nav-link:hover,
body.theme-minimal .nav-link.active {
  color: #1a1a1a;
}

body.theme-minimal .nav-link::before {
  background: linear-gradient(90deg, #1a1a1a, #333333);
}

body.theme-minimal .cta-button {
  background: linear-gradient(135deg, #1a1a1a, #333333);
  color: #ffffff;
}

body.theme-minimal .btn-primary {
  background: linear-gradient(135deg, #1a1a1a, #333333);
  color: #ffffff;
}

body.theme-minimal .btn-secondary {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

body.theme-minimal .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
}

body.theme-minimal .text-gradient {
  background: linear-gradient(135deg, #1a1a1a, #333333);
  -webkit-background-clip: text;
  background-clip: text;
}

body.theme-minimal .title-highlight {
  background: linear-gradient(135deg, #1a1a1a, #333333);
  -webkit-background-clip: text;
  background-clip: text;
}

body.theme-minimal .scroll-progress {
  background: linear-gradient(90deg, #1a1a1a, #333333, #4d4d4d);
}

body.theme-minimal .prism-footer {
  background: rgba(0, 0, 0, 0.02);
  border-top-color: rgba(0, 0, 0, 0.08);
}

body.theme-minimal .footer-text {
  color: rgba(0, 0, 0, 0.5);
}

body.theme-minimal ::-webkit-scrollbar-track {
  background: #f0f0f0;
}

body.theme-minimal ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #333333, #1a1a1a);
}

body.theme-minimal .loading-screen {
  background: #ffffff;
}

body.theme-minimal .loading-spinner {
  border-color: rgba(0,0,0,0.1);
  border-top-color: #333333;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BASE STYLES & RESETS
   ───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--prism-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Ensure animated elements stay visible */
.animated-in {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--prism-darker);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--prism-cyan), var(--prism-green));
  border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ANIMATED BACKGROUND
   ───────────────────────────────────────────────────────────────────────────── */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  contain: strict;
}

.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(17, 174, 241, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(89, 225, 107, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(183, 238, 72, 0.05) 0%, transparent 60%),
    var(--prism-dark);
  /* Removed infinite bgShift animation — static gradients are GPU-friendly */
  contain: strict;
}

@keyframes bgShift {
  0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%; }
  25% { background-position: 50% 0%, 50% 100%, 25% 75%; }
  50% { background-position: 100% 50%, 0% 50%, 75% 25%; }
  75% { background-position: 50% 100%, 50% 0%, 25% 75%; }
}

/* Animated Grid */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 174, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 174, 241, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  /* Removed infinite gridMove animation — static grid saves constant compositing */
  contain: strict;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   FLOATING ORB EFFECTS
   ───────────────────────────────────────────────────────────────────────────── */
.floating-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  pointer-events: none;
  animation: orbFloat 15s ease-in-out infinite;
  z-index: -1;
  will-change: transform;
  contain: layout style;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--prism-cyan) 0%, transparent 70%);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--prism-green) 0%, transparent 70%);
  top: 60%;
  right: -5%;
  animation-delay: -5s;
  animation-duration: 18s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--prism-lime) 0%, transparent 70%);
  bottom: 10%;
  left: 20%;
  animation-delay: -10s;
  animation-duration: 20s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -30px) scale(1.1); }
  50% { transform: translate(-30px, 50px) scale(0.95); }
  75% { transform: translate(30px, 30px) scale(1.05); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   HEADER & NAVIGATION
   ───────────────────────────────────────────────────────────────────────────── */
.prism-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: calc(1rem + env(safe-area-inset-top)) 2rem 1rem;
  background: rgba(10, 16, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: transform 0.4s ease, background 0.3s ease;
  will-change: transform;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--glow-cyan);
}

.logo-wrapper:hover .logo-img {
  transform: rotate(360deg) scale(1.1);
  box-shadow: var(--glow-multi);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fff 0%, var(--prism-cyan) 50%, var(--prism-green) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--prism-cyan), var(--prism-green));
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active {
  color: var(--prism-cyan);
}

.nav-link.active::before {
  width: 100%;
}

/* CTA Button */
.cta-button {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--prism-dark);
  background: linear-gradient(135deg, #fff 0%, var(--prism-cyan) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  text-decoration: none;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.cta-button:hover::before {
  left: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

@media (max-width: 968px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}

/* Hamburger to X animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(120px + env(safe-area-inset-top)) 2rem 4rem;
  position: relative;
  overflow: visible;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.3s;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--prism-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.5s;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-word {
  display: inline-block;
}

.title-highlight {
  background: linear-gradient(135deg, var(--prism-cyan) 0%, var(--prism-green) 50%, var(--prism-lime) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.7s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.9s;
}

.btn-primary {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--prism-dark);
  background: linear-gradient(135deg, #fff 0%, var(--prism-cyan) 100%);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--glow-cyan);
}

.btn-secondary {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.btn-secondary:hover {
  transform: translateY(-4px);
  background: rgba(17, 174, 241, 0.1);
  border-color: var(--prism-cyan);
  box-shadow: var(--glow-cyan);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 1.1s;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(17, 174, 241, 0.05);
  box-shadow: var(--glow-multi);
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ANIMATED PRISM VISUAL
   ───────────────────────────────────────────────────────────────────────────── */
.prism-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
  opacity: 0.3;
  z-index: 1;
}

.prism-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 200px;
  height: 200px;
  border-color: var(--prism-cyan);
  animation: ringPulse 4s ease-in-out infinite, ringSpin 20s linear infinite;
}

.ring-2 {
  width: 350px;
  height: 350px;
  border-color: var(--prism-green);
  animation: ringPulse 4s ease-in-out infinite 1s, ringSpin 25s linear infinite reverse;
}

.ring-3 {
  width: 500px;
  height: 500px;
  border-color: var(--prism-lime);
  animation: ringPulse 4s ease-in-out infinite 2s, ringSpin 30s linear infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes ringSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION STYLES
   ───────────────────────────────────────────────────────────────────────────── */
.section {
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FEATURE CARDS - IMPROVED ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, background 0.5s ease;
  contain: layout style;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--prism-cyan) 50%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-card:hover::before {
  opacity: 1;
  animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}

.feature-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: rgba(17, 174, 241, 0.03);
  box-shadow: var(--glow-multi);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(17, 174, 241, 0.2), rgba(89, 225, 107, 0.2));
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--glow-cyan);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   GLASS PANELS
   ───────────────────────────────────────────────────────────────────────────── */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 3rem;
  position: relative;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.5s ease, box-shadow 0.5s ease;
  contain: layout style;
}

.glass-panel:hover {
  background: rgba(17, 174, 241, 0.02);
  box-shadow: var(--glow-multi);
}

/* ─────────────────────────────────────────────────────────────────────────────
   LAYERS VISUALIZATION
   ───────────────────────────────────────────────────────────────────────────── */
.layers-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  perspective: 1000px;
  align-items: stretch;
}

.layer-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.layer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--glow-cyan);
}

.layer-number {
  font-size: 0.75rem;
  color: var(--prism-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.layer-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--text-primary), var(--prism-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.layer-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.layer-items {
  list-style: none;
}

.layer-items li {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.layer-items li:last-child {
  border-bottom: none;
}

.layer-items li:hover {
  color: var(--prism-cyan);
  padding-left: 10px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   STATS & METRICS
   ───────────────────────────────────────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metric-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--prism-cyan), var(--prism-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.metric-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--prism-cyan), var(--prism-green));
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.metric-card:hover::before {
  transform: scaleX(1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   COMPLIANCE BADGES
   ───────────────────────────────────────────────────────────────────────────── */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.compliance-badge {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.compliance-badge:hover {
  transform: translateY(-8px) scale(1.05);
  background: rgba(17, 174, 241, 0.05);
  border-color: var(--prism-cyan);
  box-shadow: var(--glow-cyan);
}

.badge-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.badge-type {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   TEAM CARDS
   ───────────────────────────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow-multi);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--glass-border);
  transition: all 0.5s ease;
}

.team-card:hover .team-avatar {
  border-color: var(--prism-cyan);
  box-shadow: var(--glow-cyan);
}

.team-info { flex: 1; }

.team-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.team-role {
  font-size: 0.9rem;
  color: var(--prism-cyan);
  margin-bottom: 0.75rem;
}

.team-experience {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CONTACT FORM
   ───────────────────────────────────────────────────────────────────────────── */
.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(10, 16, 24, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--prism-cyan);
  box-shadow: 0 0 0 3px rgba(17, 174, 241, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--prism-dark);
  background: linear-gradient(135deg, #fff 0%, var(--prism-cyan) 100%);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────────────── */
.prism-footer {
  padding: 3rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SCROLL PROGRESS
   ───────────────────────────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--prism-cyan), var(--prism-green), var(--prism-lime));
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CURSOR EFFECTS
   ───────────────────────────────────────────────────────────────────────────── */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--prism-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  mix-blend-mode: difference;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--prism-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LOADING SCREEN
   ───────────────────────────────────────────────────────────────────────────── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--prism-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--prism-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE STYLES
   ───────────────────────────────────────────────────────────────────────────── */

/* --- Tablet: 1200px and below --- */
@media (max-width: 1200px) {
  .layers-container,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Tablet / Small Laptop: 968px and below --- */
@media (max-width: 968px) {
  /* Nav: hide desktop links, show hamburger */
  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  /* Prevent fixed header from overlapping main content on sub-pages */
  main[style*="padding-top"] {
    padding-top: calc(110px + env(safe-area-inset-top)) !important;
  }

  /* Hide the desktop CTA button in nav on mobile */
  .cta-button {
    display: none;
  }

  /* Mobile Menu Styles */
  #mobileMenu {
    background: rgba(10, 16, 24, 0.98);
    border-top: 1px solid var(--glass-border);
  }
  #mobileMenu:not(.hidden) {
    display: flex !important;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem !important;
  }
  #mobileMenu .nav-link {
    font-size: 1.05rem;
    padding: 0.85rem 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  #mobileMenu .btn-primary {
    text-align: center;
    margin-top: 1rem;
    padding: 0.9rem 1.5rem;
  }

  /* Global mobile vertical breathing room */
  body {
    line-height: 1.7;
  }
  p, li, .feature-description, .stat-label, .metric-label {
    line-height: 1.75;
  }

  /* Override inline 2-col and 3-col grids inside sections */
  .section-container > div[style*="grid-template-columns: 1fr 1fr"],
  .section-container > div[style*="grid-template-columns: repeat(2"],
  .section-container > div[style*="grid-template-columns: repeat(3"],
  .section-container div[style*="grid-template-columns: 1fr 1fr"],
  .section-container div[style*="grid-template-columns: repeat(2"],
  .section-container div[style*="grid-template-columns: repeat(3"],
  .glass-panel > div[style*="grid-template-columns: 1fr 1fr"],
  .glass-panel > div[style*="grid-template-columns: repeat(2"],
  .glass-panel > div[style*="grid-template-columns: repeat(3"],
  .section-container > .glass-panel > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Hero buttons — remove min-width on mobile */
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    min-width: unset !important;
    width: 100%;
    max-width: 300px;
  }

  /* Workflow flex cards — stack vertically */
  .section-container > div[style*="flex-wrap: wrap"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .section-container > div[style*="flex-wrap: wrap"] > .feature-card {
    max-width: none !important;
    min-width: 0 !important;
  }

  /* Tables — allow horizontal scroll gracefully */
  table[style*="min-width"] {
    min-width: 0 !important;
    font-size: 0.85rem;
  }
  table[style*="min-width"] th,
  table[style*="min-width"] td {
    padding: 0.75rem 0.5rem !important;
  }

  /* Investor logos — stack on mobile */
  div[style*="gap: 3rem"][style*="justify-content: center"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }

  /* Increase padding on inline-styled feature cards that use tight padding */
  .feature-card[style*="padding: 1.25rem"] {
    padding: 1.5rem !important;
    gap: 1.25rem !important;
  }

  /* Increase padding on comparison/before-after items */
  div[style*="padding: 1rem"][style*="border-left: 3px"] {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem !important;
  }

  /* Flex column containers with tight gaps — add more vertical room */
  .section-container div[style*="flex-direction: column"][style*="gap: 1rem"],
  .glass-panel div[style*="flex-direction: column"][style*="gap: 1rem"] {
    gap: 1.25rem !important;
  }
  .section-container div[style*="flex-direction: column"][style*="gap: 1.25rem"] {
    gap: 1.5rem !important;
  }

  /* Override inline metrics grids  */
  .metrics-grid[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Inline repeat(3) metrics fix */
  .metrics-grid[style*="repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Hero section adjustments */
  .hero-section {
    padding: calc(100px + env(safe-area-inset-top)) 1.5rem 3rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  /* Feature & layer grids */
  .features-grid,
  .layers-container,
  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Glass panels */
  .glass-panel {
    padding: 2rem;
    border-radius: 20px;
  }
  .glass-panel[style*="padding: 4rem"] {
    padding: 2.5rem 1.75rem !important;
  }
  .glass-panel[style*="padding: 3rem"] {
    padding: 2rem 1.5rem !important;
  }

  /* Sections — generous vertical spacing */
  .section {
    padding: 4rem 1.5rem;
  }
  .section[style*="padding: 4rem 2rem"] {
    padding: 3rem 1.5rem !important;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .contact-info {
    position: static !important;
  }
  .contact-form {
    padding: 2rem;
  }
  /* Contact form first/last name grid */
  .contact-form div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  /* Workflow arrows — hide on mobile */
  .section-container > div[style*="flex-wrap: wrap"] > div[style*="align-items: center"][style*="padding: 0 0.5rem"] {
    display: none;
  }

  /* Workflow cards — full width when arrows hidden */
  .section-container > div[style*="flex-wrap: wrap"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .section-container > div[style*="flex-wrap: wrap"] > .feature-card {
    max-width: none !important;
    min-width: 0 !important;
  }

  /* Table scroll */
  .glass-panel[style*="overflow-x"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Founder cards min-width override */
  .section-container div[style*="minmax(350px"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Founder quote left-padding override */
  p[style*="padding-left: 2rem"] {
    padding-left: 1rem !important;
  }

  /* Auto-fit grids with large minimums — force single column on narrow screens */
  .section-container div[style*="minmax(280px"],
  .section-container div[style*="minmax(300px"] {
    grid-template-columns: 1fr !important;
  }

  /* Team cards */
  .team-card {
    flex-direction: column;
    text-align: center;
  }

  /* Hide custom cursor on touch devices */
  .custom-cursor,
  .cursor-dot {
    display: none !important;
  }
}

/* --- Mobile: 768px and below --- */
@media (max-width: 768px) {
  main[style*="padding-top"] {
    padding-top: calc(100px + env(safe-area-inset-top)) !important;
  }

  .hero-section {
    padding: calc(90px + env(safe-area-inset-top)) 1.25rem 2.5rem;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
  }

  /* Section typography */
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
  .section-description {
    font-size: 1rem;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .section[style*="padding: 4rem 2rem"] {
    padding: 2.5rem 1.25rem !important;
  }

  .section-container {
    max-width: 100%;
  }

  .features-grid,
  .layers-container,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .metrics-grid,
  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .metrics-grid[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .glass-panel {
    padding: 1.75rem;
    border-radius: 16px;
  }
  .glass-panel[style*="padding: 4rem"] {
    padding: 2rem 1.5rem !important;
  }
  .glass-panel[style*="padding: 3rem"] {
    padding: 1.75rem 1.25rem !important;
  }

  /* Stat & feature cards — more vertical room */
  .stat-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .feature-card {
    padding: 1.75rem;
    border-radius: 18px;
  }
  .feature-card[style*="padding: 1.25rem"] {
    padding: 1.5rem !important;
    gap: 1.25rem !important;
  }
  .feature-card[style*="display: flex"][style*="gap: 1.5rem"] {
    gap: 1.25rem !important;
    padding: 1.75rem !important;
  }

  .feature-title {
    margin-bottom: 0.4rem;
  }
  .feature-description {
    line-height: 1.7;
  }

  .metric-card {
    padding: 1.75rem;
  }

  .metric-value {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .metric-label {
    line-height: 1.6;
  }

  .layer-card {
    padding: 1.75rem;
    border-radius: 18px;
  }
  .layer-card h3, .layer-card .layer-title {
    margin-bottom: 0.75rem;
  }
  .layer-card p {
    line-height: 1.7;
  }

  /* Logo adjustments */
  .logo-subtitle {
    display: none;
  }

  /* Buttons */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  /* Prism visual rings */
  .prism-visual {
    width: 300px;
    height: 300px;
  }
  .ring-1 { width: 100px; height: 100px; }
  .ring-2 { width: 175px; height: 175px; }
  .ring-3 { width: 250px; height: 250px; }

  /* Floating orbs - reduce size on mobile */
  .orb-1 { width: 200px; height: 200px; }
  .orb-2 { width: 150px; height: 150px; }
  .orb-3 { width: 120px; height: 120px; }

  /* Architecture visual in how.html */
  .architecture-visual {
    height: auto !important;
  }

  /* Contact form */
  .contact-form {
    padding: 1.5rem;
    border-radius: 18px;
  }
  .form-input, .form-textarea, .form-select {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  /* Founder card mobile */
  .founder-card {
    padding: 2rem;
  }
  .founder-image {
    width: 140px;
    height: 140px;
  }
  .founder-name {
    font-size: 1.5rem;
  }

  /* Comparison / Before-After panels — more internal breathing room */
  .section-container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  div[style*="padding: 1rem"][style*="border-left: 3px"] {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem !important;
    margin-bottom: 0.25rem;
  }
  div[style*="flex-direction: column"][style*="gap: 1rem"] {
    gap: 1.25rem !important;
  }

  /* Inline stat values that are too large */
  .stat-value[style*="font-size: 1rem"] {
    font-size: 1rem !important;
    margin-bottom: 0.25rem;
  }

  /* Section header spacing */
  .section-header {
    margin-bottom: 2.5rem;
  }
  .section-header h2 {
    margin-bottom: 1rem;
  }
  .section-description {
    line-height: 1.7;
  }

  /* Icon boxes — slightly smaller on mobile */
  div[style*="width: 60px"][style*="height: 60px"][style*="border-radius: 16px"] {
    width: 50px !important;
    height: 50px !important;
  }
}

/* --- Small Mobile: 480px and below --- */
@media (max-width: 480px) {
  .metrics-grid,
  .compliance-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Tables — force scrollable on small mobile */
  .glass-panel[style*="overflow-x"] {
    -webkit-overflow-scrolling: touch;
  }
  table[style*="min-width"] {
    min-width: 500px !important;
    font-size: 0.8rem;
  }

  /* Investor logos — smaller padding on small screens */
  div[style*="padding: 2.5rem 3.5rem"] {
    padding: 1.5rem 2rem !important;
  }
  div[style*="padding: 2.5rem 3.5rem"] img {
    max-height: 60px !important;
  }

  .prism-header {
    padding: calc(0.75rem + env(safe-area-inset-top)) 1rem 0.75rem;
  }

  main[style*="padding-top"] {
    padding-top: calc(80px + env(safe-area-inset-top)) !important;
  }

  .hero-section {
    padding: calc(85px + env(safe-area-inset-top)) 1rem 2rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .section {
    padding: 3rem 1rem;
  }
  .section[style*="padding: 4rem 2rem"] {
    padding: 2.5rem 1rem !important;
  }

  .section-title {
    font-size: clamp(1.25rem, 5vw, 2rem);
  }

  .glass-panel {
    padding: 1.5rem;
    border-radius: 14px;
  }
  .glass-panel[style*="padding: 4rem"] {
    padding: 1.75rem 1.25rem !important;
  }
  .glass-panel[style*="padding: 3rem"] {
    padding: 1.5rem 1rem !important;
  }

  .feature-card {
    padding: 1.5rem;
    border-radius: 14px;
  }
  .feature-card[style*="padding: 1.25rem"] {
    padding: 1.35rem !important;
    gap: 1rem !important;
  }
  .feature-card[style*="display: flex"][style*="gap: 1.5rem"] {
    gap: 1rem !important;
    padding: 1.5rem !important;
  }

  .btn-primary, .btn-secondary {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  /* Footer */
  .prism-footer {
    padding: 2rem 1rem;
  }
  .footer-text {
    font-size: 0.8rem;
  }

  /* Logo */
  .logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .logo-title {
    font-size: 0.95rem;
  }

  /* Market cards */
  .market-card {
    padding: 1.75rem;
  }
  .market-value {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
  }

  /* Contact form */
  .contact-form {
    padding: 1.25rem;
  }
  .submit-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  /* Compliance stat cards */
  .compliance-stat {
    padding: 1.5rem;
  }

  /* Metric cards at small mobile */
  .metric-card {
    padding: 1.5rem;
  }
  .metric-value {
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
  }

  /* Layer cards at small mobile */
  .layer-card {
    padding: 1.5rem;
  }

  /* Stat cards */
  .stat-card {
    padding: 1.25rem;
  }

  /* Before/after items */
  div[style*="padding: 1rem"][style*="border-left: 3px"] {
    padding: 1rem 1rem 1rem 1.25rem !important;
  }

  /* Founder quote indent */
  p[style*="padding-left: 2rem"] {
    padding-left: 0.75rem !important;
  }

  /* Section header spacing */
  .section-header {
    margin-bottom: 2rem;
  }
  .section-description {
    line-height: 1.7;
  }

  /* Founder card large emoji */
  div[style*="font-size: 4rem"] {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
  }

  /* Inline badge/pill elements */
  div[style*="display: inline-flex"][style*="border-radius: 50px"] {
    display: block !important;
    text-align: center;
    font-size: 0.8rem !important;
    padding: 0.6rem 1rem !important;
  }

  /* Step circles in how.html workflow */
  div[style*="width: 80px"][style*="height: 80px"][style*="border-radius: 50%"] {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
  }

  /* Connector lines between steps - hide on mobile */
  div[style*="position: absolute"][style*="width: 2rem"][style*="height: 2px"] {
    display: none !important;
  }
}

/* --- Touch device optimizations --- */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover-only transforms on touch devices to prevent sticky states */
  .feature-card:hover,
  .layer-card:hover,
  .stat-card:hover,
  .metric-card:hover,
  .market-card:hover,
  .audit-feature:hover,
  .segment-card:hover,
  .opportunity-item:hover,
  .founder-card:hover,
  .compliance-badge:hover,
  .team-card:hover {
    transform: none;
  }

  /* Ensure minimum tap target size */
  .nav-link, .btn-primary, .btn-secondary, .cta-button,
  .menu-toggle, a, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Remove magnetic button effect on touch */
  .btn-primary, .btn-secondary, .cta-button {
    transform: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--prism-cyan), var(--prism-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-text {
  text-shadow: 0 0 20px var(--prism-cyan), 0 0 40px var(--prism-green);
}

.hidden {
  display: none !important;
}

.opacity-0 {
  opacity: 0;
}

.pointer-events-none {
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   GLOW PULSE ANIMATION
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(17, 174, 241, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(17, 174, 241, 0.4), 0 0 60px rgba(89, 225, 107, 0.2);
  }
}

.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RIPPLE EFFECT ON CLICK
   ───────────────────────────────────────────────────────────────────────────── */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--prism-cyan) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.ripple-effect:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}
