:root {
  /* Colors - 2026 Grade School Palette */
  --bg-color: #0c0a09; /* Warm off-black */
  --surface-color: rgba(255, 255, 255, 0.02);
  --surface-hover: rgba(255, 255, 255, 0.04);
  --border-color: rgba(255, 255, 255, 0.08); /* Barely there borders */
  --text-primary: #f5f5f4; /* Off-white for less strain */
  --text-secondary: #a8a29e;
  
  /* Accent Colors */
  --x-accent: #ea580c; /* Trendy warm orange */
  --x-glow: rgba(234, 88, 12, 0.15);
  --accent-color: #ea580c;
  --accent-glow: rgba(234, 88, 12, 0.1);

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace; /* For Spaceship manual */

  /* Spacing & Sizes */
  --section-padding: 140px 0; /* More air / breathing room */
  --border-radius-sm: 4px;
  --border-radius-md: 8px; /* Tighter border radii for modern look */
  --border-radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-normal: 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother */
}

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

html {
  scroll-behavior: smooth;
}

/* SVG Noise Filter */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

ul {
  list-style: none;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding);
  position: relative;
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 64px auto;
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--border-radius-sm); /* Sharper edges */
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  outline: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--x-accent);
  color: var(--bg-color);
  font-weight: 600;
  box-shadow: 0 4px 15px var(--x-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #f97316; /* Lighter tint */
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.25);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Glass Card -> Barely There UI */
.glass-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--surface-hover), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  /* Removed heavy shadow & lift for minimal feel */
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 100;
  transition: var(--transition-normal);
  backdrop-filter: blur(0px);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 16px 0;
  backdrop-filter: blur(20px);
  background: rgba(5, 5, 5, 0.8);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem; /* Smaller, cleaner */
  font-weight: 500;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.logo span {
  color: var(--x-accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.03), transparent 25%);
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Animations (Intersection Observer targets) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Mobile menu needed for production */
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

/* Services Section */
.services {
  position: relative;
  z-index: 2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.service-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px var(--x-glow);
  transform: scale(1.05);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.service-card h3 {
  font-size: 1.5rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Stats / Results Section */
.results {
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.02), transparent);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 40px 24px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-symbol {
  font-size: 2rem;
  color: var(--text-secondary);
  margin-left: 4px;
}

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

/* CTA Footer Section */
.cta-section {
  text-align: center;
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* =========================================================================
   PHASE 9: LANDONORRIS.COM-INSPIRED PREMIUM EFFECTS
   ========================================================================= */

/* --- Custom Cursor (Desktop Only) --- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--x-accent);
  border-radius: 50%;
  z-index: 99999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: difference;
}

.cursor-outline {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(234, 88, 12, 0.5);
  border-radius: 50%;
  z-index: 99998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), height 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
}

.cursor-dot.hovering {
  width: 40px; height: 40px;
  background: rgba(234, 88, 12, 0.15);
}

.cursor-outline.hovering {
  width: 60px; height: 60px;
  border-color: rgba(234, 88, 12, 0.8);
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-outline { display: none !important; }
}

/* --- Infinite Marquee Ticker --- */
.marquee-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.01);
  position: relative;
  z-index: 10;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 48px;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.marquee-item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--x-accent);
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Morphing Blob (Hero Upgrade) --- */
@keyframes morphBlob {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

@keyframes rotateHue {
  0% { filter: blur(60px) hue-rotate(0deg); }
  100% { filter: blur(60px) hue-rotate(30deg); }
}

/* --- Split-Text Letter Animation --- */
.split-text .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(40deg);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-text.active .letter {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.split-text .letter-space {
  display: inline-block;
  width: 0.3em;
}

/* --- Simple Page Load Reveal --- */
body {
  animation: pageReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageReveal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* --- Magnetic Button --- */
.btn-magnetic {
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--x-accent);
  z-index: 10001;
  transition: width 0.1s linear;
}

/* =========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS (PHASE 5 OPTIMIZATION)
   ========================================================================= */

@media (max-width: 1024px) {
  .section-title { font-size: 3rem; }
  .hero h1 { font-size: 4rem; }
  /* Process Section connecting line adjustment */
  #process .container > div:nth-child(2) > div:first-child { left: 16px !important; }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 0 24px;}
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 20px; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }
  
  .navbar { padding: 16px 0; background: rgba(12, 10, 9, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); }
  .nav-links { display: none; /* Can add hamburger menu later if requested */ }
  
  .hero { padding-top: 120px; min-height: auto; }
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.1rem; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
  .hero-cta .btn { width: 100%; text-align: center; }
  
  /* Shrink hero orb to not break page width */
  #smart-hero-orb { width: 300px !important; height: 300px !important; filter: blur(40px) !important;}

  /* Profile Analyzer */
  #analyzer-input { padding: 16px !important; text-align: center; padding-left: 16px !important; margin-bottom: 12px;}
  #analyzer-input + button { width: 100%; }
  .analyzer .glass-card > div:nth-child(2) { flex-direction: column; }
  .analyzer .glass-card > div:nth-child(2) > div { display: none; /* hide the @ symbol on stacked input */ }
  
  /* Process Section spacing */
  #process > .container > div:not(:first-child) > div { padding: 24px 0 !important; gap: 16px !important; flex-direction: column; }
  #process > .container > div:not(:first-child) > div > div:first-child { width: auto !important; justify-content: flex-start !important; margin-left: -5px; } /* Target the node circles */
  #process .container > div > div:first-child[style*="position: absolute"] { display: none !important; } /* Hide vertical line on mobile to save space */
  
  .glass-card { padding: 24px; }
  
  footer .container > div:first-child h2 { font-size: 2rem !important; }
  footer .container > div:last-child { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  
  .section-title { font-size: 2.5rem; }
  .section-subtitle { font-size: 1rem; }
  
  .btn { padding: 14px 24px; font-size: 0.95rem; }
  
  /* Cookie banner */
  #cookie-banner { bottom: 0 !important; left: 0 !important; width: 100% !important; border-radius: 12px 12px 0 0 !important; flex-direction: column !important; text-align: center !important; }
  #cookie-banner p { max-width: 100% !important; }
  #cookie-banner button { width: 100%; }
}
