@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --bg-primary: #050505;
  --bg-secondary: #0c0c0c;
  --bg-tertiary: #121212;
  --bg-card: rgba(16, 16, 16, 0.7);
  --bg-glass: rgba(10, 10, 10, 0.6);
  
  --blue-primary: #0066ff;
  --blue-light: #66b2ff;
  --blue-dark: #0040a0;
  --blue-gradient: linear-gradient(135deg, #66b2ff 0%, #0066ff 40%, #0040a0 100%);
  --blue-radial: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  
  --text-main: #ffffff;
  --text-muted: #d1d5db; /* 2x clearer contrast for dark mode */
  --text-dark: #555555;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-blue: rgba(0, 102, 255, 0.2);
  --border-blue-hover: rgba(0, 102, 255, 0.5);
  
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Outfit', 'Pretendard', sans-serif;
  --font-mono: 'Outfit', monospace;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASICS --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 102, 255, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue-primary);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
  font-weight: 400;
}

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

.text-blue {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-primary);
  display: inline-block;
  margin-bottom: 20px;
  border-left: 2px solid var(--blue-primary);
  padding-left: 10px;
}

.section-header {
  margin-bottom: 60px;
  max-width: 800px;
}

.section-title {
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: -0.01em;
  border-left: 2px solid var(--border-color);
  padding-left: 16px;
  margin-top: 12px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.card:hover {
  border-color: var(--border-blue-hover);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 102, 255, 0.05);
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--blue-gradient);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
  filter: brightness(1.05);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 35px;
  border-radius: 8px;
  border: 1px solid var(--border-blue);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(0, 102, 255, 0.05);
  border-color: var(--blue-primary);
  color: var(--blue-light);
}

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0; /* Reduced by 30% from 14px */
}

header .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px; /* Reduced by 30% from 80px */
  transition: var(--transition-smooth);
}

header.scrolled .nav-container {
  height: 42px; /* Reduced by 30% from 60px */
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-stone {
  width: 16px;
  height: 16px;
  background: var(--blue-gradient);
  clip-path: polygon(50% 0%, 100% 35%, 100% 70%, 50% 100%, 0% 70%, 0% 35%);
  display: inline-block;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-gradient);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-btn {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 6px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition-fast);
}

/* Mobile Side Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 999;
  transition: var(--transition-smooth);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav .nav-link {
  font-size: 18px;
}

/* --- SECTION 1: HERO BANNER --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 84vh; /* Reduced by 30% from 120vh */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 84px; /* Reduced by 30% from 120px */
  padding-bottom: 112px; /* Reduced by 30% from 160px */
  overflow: hidden;
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.68; /* Darkened by 20% to optimize hero text readability */
}


.hero-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: var(--blue-radial);
  z-index: 1;
  pointer-events: none;
  filter: blur(80px);
}

.hero .container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-meta-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 40px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #39a9e7;
  border-radius: 50%;
  box-shadow: 0 0 10px #39a9e7;
  animation: pulse 2s infinite;
}

.hero-headline {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-subhead {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--blue-light);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
  max-width: 750px;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-cta-area {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.cta-helper {
  font-size: 14px;
  color: var(--blue-primary);
  font-family: var(--font-mono);
  border-left: 1px solid var(--border-blue);
  padding-left: 16px;
  letter-spacing: -0.01em;
}

.hero-meta-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  margin-top: 20px;
}

/* Base style for core value glass cards */
.hero-meta-bottom span {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.6) 0%, rgba(5, 5, 5, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 28px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  
  /* Staggered continuous entrance and exit animation loop */
  animation: cardFadeInOut 4s ease-in-out infinite;
}

/* Stagger delay for responsive rotation */
.hero-meta-bottom span:nth-child(1) {
  animation-delay: 0s;
}

.hero-meta-bottom span:nth-child(2) {
  animation-delay: 0.3s;
}

.hero-meta-bottom span:nth-child(3) {
  animation-delay: 0.9s;
}

/* Pause the looping sequence on any card hover */
.hero-meta-bottom:hover span {
  animation-play-state: paused;
}

.hero-meta-bottom span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(0, 102, 255, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

/* High contrast interactive focus states */
.hero-meta-bottom span:hover {
  opacity: 1 !important;
  transform: translateY(-8px) scale(1.04) !important;
  border-color: var(--blue-primary) !important;
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2), 0 0 25px rgba(0, 102, 255, 0.12) !important;
}

.hero-meta-bottom span:hover::before {
  opacity: 1;
}

.hero-meta-bottom label {
  color: var(--blue-light);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-meta-bottom strong {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Staggered border glowing animation keyframes */
@keyframes cardFadeInOut {
  0%, 100% {
    border-color: var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  }
  15%, 45% {
    border-color: var(--blue-primary);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.25), 0 0 15px rgba(0, 102, 255, 0.12);
  }
  60% {
    border-color: var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  }
}

/* --- NEW CAROUSEL SLIDER (REFERENCES) --- */
.references {
  padding: 140px 0;
  background: linear-gradient(180deg, #f4f6fa 0%, #ffffff 40%, #f4f6fa 100%);
  color: #0b0f19;
  border-top: 1px solid rgba(0, 102, 255, 0.08);
  border-bottom: 1px solid rgba(0, 102, 255, 0.08);
  overflow: hidden;
}

.references .section-title {
  color: #0b0f19;
}

.references .section-subtitle {
  color: #3b4256;
  border-color: rgba(0, 102, 255, 0.2);
}

.references p {
  color: #1e293b; /* 2x richer and darker for maximum editorial readability */
}

.slider-container {
  position: relative;
  width: 100%;
  margin-top: 50px;
  margin-bottom: 50px;
}

.slider-viewport {
  width: 100%;
  overflow: visible;
}

.slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 96px; /* Reduced by 20% from 120px to 96px */
  width: 100%;
  position: relative;
}

/* Elegant ultra-thin vertical gray connecting line between brand cards */
.slider-wrapper::before {
  content: '';
  position: absolute;
  top: 80px;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px; /* 1px thin line */
  background: linear-gradient(to bottom, 
    rgba(11, 15, 25, 0) 0%, 
    rgba(11, 15, 25, 0.12) 15%, 
    rgba(11, 15, 25, 0.12) 85%, 
    rgba(11, 15, 25, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.slide-card {
  flex: none;
  width: 100%;
  min-height: 400px; /* Spacious but compact vertical flow height */
  padding: 40px 50px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  cursor: pointer;
  background-color: #0c0c0c;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 2; /* Sits above the connecting line */
}

.slide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.8) 45%, rgba(5, 5, 5, 0.1) 100%);
  z-index: 1;
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Premium Inset White Border Framing */
.slide-card::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22); /* Highly visible crispy thin white border */
  pointer-events: none;
  z-index: 3;
  transition: var(--transition-smooth);
}

.slide-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}

.slide-card:hover::before {
  background: linear-gradient(to right, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.85) 45%, rgba(5, 5, 5, 0.15) 100%);
}

.slide-card:hover::after {
  border-color: rgba(255, 255, 255, 0.55); /* Intensely brightens on hover */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05) inset; /* Soft premium interior glow */
}

.ref-slide-logo {
  max-width: 220px;
  max-height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
  transition: var(--transition-smooth);
  position: relative;
  z-index: 2;
}

.slide-card:hover .ref-slide-logo {
  transform: scale(1.06);
  filter: drop-shadow(0 0 18px rgba(0, 102, 255, 0.5));
}

.slide-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  z-index: 2;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.slide-num {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--blue-primary);
  font-weight: 600;
}

.slide-cat {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 12px;
  border-radius: 40px;
  border: 1px solid var(--border-color);
}

.slide-brand-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.slide-tagline {
  font-size: clamp(16px, 2vw, 19px);
  color: #4da3ff !important; /* Bright and vivid blue */
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.slide-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85) !important; /* Elegant white-ish */
  max-width: 580px;
  margin-bottom: 36px;
}

.slide-cta-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: var(--transition-fast);
}

.slide-cta-indicator span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.slide-card:hover .slide-cta-indicator {
  color: var(--blue-light);
}

.slide-card:hover .slide-cta-indicator span {
  transform: translateX(6px);
  background: #fff;
  color: #000;
}

.slide-visual-zone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.slide-visual-zone svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
  transition: var(--transition-smooth);
}

.slide-card:hover .slide-visual-zone svg {
  transform: scale(1.05) translateY(-5px);
}

/* Slider Dots (Hidden as references are now in static grid deck) */
.slider-dots {
  display: none !important;
}

.slider-dot {
  display: none !important;
}

/* Slide Nav buttons (Hidden as references are now in static grid deck) */
.slider-nav-btn {
  display: none !important;
}

.slider-nav-btn.prev {
  left: -25px;
}

.slider-nav-btn.next {
  right: -25px;
}

/* --- SECTION: PHILOSOPHY (PREMIUM LIGHT MODE) --- */
.philosophy {
  padding: 140px 0;
  background: linear-gradient(180deg, #f4f6fa 0%, #ffffff 40%, #f4f6fa 100%);
  color: #0b0f19;
}

.philosophy .section-title {
  color: #0b0f19;
}

.philosophy .section-subtitle {
  color: #3b4256;
  border-color: rgba(0, 102, 255, 0.2);
}

.philosophy p {
  color: #1e293b; /* 2x richer and darker for maximum editorial readability */
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 120px;
}

/* Subsection 2-1: The Team */
.team-container {
  margin-top: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.team-card {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
  background: #ffffff;
  border: 1px solid rgba(0, 102, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.02);
  transition: var(--transition-smooth);
}

.team-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--blue-primary);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.08);
}

.team-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--blue-primary);
  margin-bottom: 24px;
}

.team-icon-svg {
  width: 42px;
  height: 42px;
  stroke: var(--blue-primary);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.team-card:hover .team-icon-svg {
  transform: scale(1.1) rotate(5deg);
  stroke: var(--blue-light);
}

.team-role {
  font-size: 18px;
  font-weight: 700;
  color: #0b0f19;
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.team-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #1e293b; /* 2x richer and darker for maximum editorial readability */
}

/* Subsection 2-2: The Numbers (Sleek Tech Midnight Dark Focus) */
.numbers-container {
  padding: 120px 0;
  background: radial-gradient(circle at 50% 50%, #080d1a 0%, #030407 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.numbers-container .section-title {
  color: #ffffff;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.number-card {
  padding: 30px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.number-card:hover {
  border-color: var(--blue-primary);
  background: rgba(0, 102, 255, 0.04);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 102, 255, 0.08);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 800;
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.stat-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Subsection 2-3: The Partnership */
.partnership-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.partnership-text {
  max-width: 620px;
}

.partnership-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #1e293b; /* 2x richer and darker for maximum editorial readability */
  margin-bottom: 24px;
}

.partnership-desc strong {
  color: #0b0f19;
  font-weight: 700;
}

.partnership-callout {
  border-left: 3px solid var(--blue-primary);
  padding-left: 20px;
  margin-top: 36px;
}

.partnership-callout-quote {
  font-size: 19px;
  font-weight: 700;
  color: var(--blue-primary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.partnership-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.partnership-svg-wrap {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
}

.spinning-orb {
  animation: spin 30s linear infinite;
  transform-origin: center;
}

/* NDA secure block */
.ref-nda-container {
  margin: 0 auto;
  max-width: 900px;
  padding: 30px 40px;
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.ref-nda-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--blue-gradient);
}

.ref-nda-icon-svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  stroke: var(--blue-primary);
  stroke-width: 1.5;
  fill: none;
}

.ref-nda-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.ref-nda-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

/* --- SECTION 4: SERVICES --- */
.services {
  padding: 140px 0;
  background: var(--bg-primary);
}

.services-intro {
  margin-bottom: 80px;
}

.services-interactive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.services-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-nav-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 32px 36px;
  cursor: pointer;
  text-align: left;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.service-nav-btn:hover {
  border-color: rgba(0, 102, 255, 0.3);
  background: rgba(18, 18, 18, 0.6);
}

.service-nav-btn.active {
  border-color: var(--blue-primary);
  background: rgba(18, 18, 18, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 102, 255, 0.05);
}

.service-btn-num {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-muted);
  transition: var(--transition-fast);
  margin-top: 4px;
}

.service-nav-btn.active .service-btn-num {
  color: var(--blue-primary);
}

.service-btn-content {
  flex-grow: 1;
}

.service-btn-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.service-nav-btn.active .service-btn-title {
  color: var(--blue-light);
}

.service-btn-tag {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--blue-primary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  display: block;
}

.service-btn-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Display Pane */
.services-display {
  display: flex;
  justify-content: center;
  position: relative;
  min-height: 520px;
}

.services-diagram-wrap {
  width: 100%;
  max-width: 440px;
  position: relative;
}

.service-detail-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.98);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.service-detail-box {
  padding: 40px;
  border-radius: 12px;
}

.service-detail-icon {
  margin-bottom: 24px;
}

.service-detail-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--blue-primary);
  fill: none;
  stroke-width: 1.5;
}

.service-detail-title {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.service-detail-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.deliverables-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deliverables-list li {
  font-size: 13px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
}

.deliverables-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue-gradient);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Services Footer */
.services-footer {
  margin-top: 100px;
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.services-footer-head {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.services-footer-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* --- SECTION 5: PROCESS (PREMIUM LIGHT MODE) --- */
.process {
  padding: 140px 0;
  background: linear-gradient(180deg, #f4f6fa 0%, #ffffff 40%, #f4f6fa 100%);
  color: #0b0f19;
}

.process .section-title {
  color: #0b0f19;
}

.process .section-subtitle {
  color: #3b4256;
  border-color: rgba(0, 102, 255, 0.2);
}

.process-steps {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

/* Connection Line */
.process-line-back {
  position: absolute;
  top: 50px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: rgba(0, 102, 255, 0.08);
  z-index: 1;
}

.process-line-fill {
  position: absolute;
  top: 50px;
  left: 12.5%;
  width: 0;
  height: 2px;
  background: var(--blue-gradient);
  z-index: 2;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.4);
}

.step-card {
  padding: 40px 24px;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(0, 102, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.02);
  transition: var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-primary);
  box-shadow: 0 15px 35px rgba(0, 102, 255, 0.08);
}

.step-node {
  width: 24px;
  height: 24px;
  background: #ffffff;
  border: 2px solid rgba(0, 102, 255, 0.2);
  border-radius: 50%;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 4;
}

.step-card.active .step-node {
  border-color: var(--blue-primary);
  background: var(--blue-primary);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.6);
}

.step-inner-node {
  width: 8px;
  height: 8px;
  background: transparent;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.step-card.active .step-inner-node {
  background: #ffffff;
}

.step-stage {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-primary);
  margin-bottom: 8px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: #0b0f19;
  margin-bottom: 12px;
}

.step-duration {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(0, 102, 255, 0.04);
  border: 1px solid rgba(0, 102, 255, 0.15);
  color: var(--blue-primary);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 16px;
  display: inline-block;
}

.step-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #1e293b; /* 2x richer and darker for maximum editorial readability */
  margin-bottom: 20px;
}

.step-outputs {
  border-top: 1px solid rgba(0, 102, 255, 0.1);
  padding-top: 16px;
  text-align: left;
  width: 100%;
}

.step-outputs-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #4a5568;
  margin-bottom: 8px;
  display: block;
}

.step-outputs-list {
  font-size: 12px;
  color: #0b0f19;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-outputs-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.step-outputs-list li::before {
  content: '·';
  font-weight: bold;
  color: var(--blue-primary);
}

.process-footer {
  margin-top: 80px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.process-footer-title {
  font-size: 22px;
  font-weight: 700;
  color: #0b0f19;
  margin-bottom: 16px;
}

.process-footer-desc {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.7;
}

/* --- SECTION 6: CLOSING / CTA & FOOTER --- */
.closing {
  padding: 140px 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.closing-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 700px;
  height: 400px;
  background: var(--blue-radial);
  pointer-events: none;
  filter: blur(80px);
}

.closing .card {
  padding: 80px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  border-color: var(--border-blue);
  position: relative;
}

.closing-title {
  font-size: clamp(30px, 4.5vw, 44px);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.closing-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 48px auto;
  line-height: 1.8;
}

.closing-cta-sub {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  background: var(--bg-secondary);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  width: 100%;
  max-width: 100%;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.8;
  max-width: 1100px; /* Stretch the text widely as requested */
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-list a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-col-list a:hover {
  color: var(--blue-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dark);
}

/* --- CONTACT MODAL (DIALOG) --- */
.contact-dialog {
  border: none;
  border-radius: 16px;
  background: #0d0d0d;
  color: #fff;
  max-width: 580px;
  width: 90%;
  margin: auto;
  padding: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 102, 255, 0.15);
  border: 1px solid var(--border-blue);
}

.contact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.dialog-header {
  padding: 30px 40px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-title {
  font-size: 20px;
  font-weight: 700;
}

.dialog-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dialog-close:hover {
  color: #fff;
}

.contact-form {
  padding: 30px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: -0.01em;
}

.form-control {
  background: #141414;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.1);
  background: #181818;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-alert {
  font-size: 12px;
  color: var(--blue-primary);
  border: 1px solid var(--border-blue);
  background: rgba(0, 102, 255, 0.05);
  padding: 12px;
  border-radius: 6px;
  text-align: center;
}

.form-submit-btn {
  margin-top: 10px;
  justify-content: center;
  font-size: 15px;
}

/* --- REFERENCES DETAILS POPUP SPECIFIC STYLING --- */
.ref-detail-dialog {
  border: none;
  border-radius: 16px;
  background: #0a0a0a;
  color: #fff;
  max-width: 680px;
  width: 90%;
  margin: auto;
  padding: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 102, 255, 0.2);
  border: 1px solid var(--border-blue);
}

.ref-detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ref-detail-hero {
  padding: 40px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, transparent 80%);
  position: relative;
}

.ref-detail-brand-name {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.ref-detail-brand-sub {
  font-size: 14px;
  color: var(--blue-light);
  font-weight: 500;
  margin-bottom: 20px;
}

.ref-detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.ref-detail-info-item label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 4px;
}

.ref-detail-info-item span {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

.ref-detail-body {
  padding: 40px;
}

.ref-detail-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 2px solid var(--blue-primary);
  padding-left: 10px;
}

.ref-detail-concept {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.ref-detail-tasks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ref-detail-tasks li {
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.ref-detail-tasks li::before {
  content: '✓';
  color: var(--blue-primary);
  font-weight: bold;
  flex-shrink: 0;
}

.ref-detail-footer {
  padding: 24px 40px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.01);
}

/* --- ANIMATIONS --- */
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Entrance scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
  .slide-card {
    grid-template-columns: 1fr;
    padding: 40px;
    min-height: auto;
    gap: 30px;
  }
  .slide-visual-zone {
    order: -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Premium divider line under logo */
    padding-bottom: 24px;
    margin-bottom: 10px;
    width: 100%;
  }
  .slide-visual-zone svg {
    max-width: 240px;
  }
  .partnership-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .partnership-visual {
    order: -1;
  }
  .services-interactive {
    grid-template-columns: 1fr;
    gap: 40px;
    display: flex;
    flex-direction: column;
  }
  .services-display {
    min-height: auto;
    order: -1; /* Pushes the detail display window to the top on mobile */
  }
  .service-detail-card {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .service-detail-card.active {
    display: block;
  }
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .process-line-back, .process-line-fill {
    display: none;
  }
  .step-node {
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  header .nav-container {
    height: 49px; /* Reduced by 30% from 70px */
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero-headline {
    font-size: 42px;
  }
  .hero-cta-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cta-helper {
    border-left: none;
    padding-left: 0;
    margin-top: 8px;
  }
  .hero-meta-bottom {
    flex-direction: column;
    gap: 16px;
  }
  .slider-nav-btn {
    display: none; /* Hide buttons on mobile in favor of dots & swipe */
  }
  .ref-nda-container {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .ref-nda-container::before {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
  }
  .services-footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .closing .card {
    padding: 40px 20px;
  }
  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Media query for mobile viewports (500px or less) */
@media (max-width: 500px) {
  .hero-meta-bottom {
    display: none !important;
  }
  .hero {
    min-height: auto !important;
    padding-bottom: 42px !important; /* Reduced by 30% from 60px */
  }
}
