:root {
  /* Dark Mode - Deep Grey Palette */
  --bg-primary: #1a1a1a;           /* Main background */
  --bg-secondary: #212121;         /* Raised surfaces */
  --bg-tertiary: #2a2a2a;          /* Interactive elements */
  --bg-input: #1e1e1e;             /* Input fields */
  
  /* Text Colors - White to light grey gradients */
  --text-primary: #ffffff;         /* High contrast text */
  --text-secondary: #e5e5e5;       /* Secondary text */
  --text-tertiary: #b0b0b0;        /* Tertiary/muted text */
  --text-accent: #d4d4d4;          /* Accent text */
  
  /* Vibrant Accent Colors */
  --accent-green: #4ade80;         /* Success/positive */
  --accent-yellow: #fbbf24;        /* Warning/attention */
  --accent-red: #f87171;           /* Error/negative */
  --accent-blue: #60a5fa;          /* Info/links */
  --accent-purple: #a78bfa;        /* Special actions */
  
  /* Gradient Colors */
  --gradient-primary: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
  --gradient-secondary: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  --gradient-accent: linear-gradient(135deg, #4ade80 0%, #3b82f6 100%);
  --gradient-hover: linear-gradient(135deg, #3a3a3a 0%, #2e2e2e 100%);
  
  /* Typography Scale */
  --font-xs: 12px;
  --font-sm: 14px;
  --font-md: 16px;
  --font-lg: 18px;
  --font-xl: 20px;
  --font-2xl: 24px;
  --font-3xl: 32px;
  --font-4xl: 48px;
  --font-5xl: 64px;
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Line Heights */
  --line-tight: 1.25;
  --line-normal: 1.5;
  --line-relaxed: 1.75;
  
  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 48px;
  --space-5xl: 64px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 9999px;
  
  /* Neumorphic Shadow System */
  --shadow-light: rgba(255, 255, 255, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.7);
  --shadow-darker: rgba(0, 0, 0, 0.9);
  
  /* Outset Shadows (raised elements) */
  --shadow-sm-out: 
    4px 4px 8px var(--shadow-dark),
    -2px -2px 4px var(--shadow-light);
  
  --shadow-md-out: 
    8px 8px 16px var(--shadow-dark),
    -4px -4px 8px var(--shadow-light);
  
  --shadow-lg-out: 
    12px 12px 24px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
  
  --shadow-xl-out: 
    20px 20px 40px var(--shadow-darker),
    -10px -10px 20px var(--shadow-light);
  
  /* Inset Shadows (pressed/recessed elements) */
  --shadow-sm-in: 
    inset 4px 4px 8px var(--shadow-dark),
    inset -2px -2px 4px var(--shadow-light);
  
  --shadow-md-in: 
    inset 8px 8px 16px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
  
  --shadow-lg-in: 
    inset 12px 12px 24px var(--shadow-dark),
    inset -6px -6px 12px var(--shadow-light);
  
  /* Glow Effects */
  --glow-green: 0 0 20px rgba(74, 222, 128, 0.3);
  --glow-blue: 0 0 20px rgba(96, 165, 250, 0.3);
  --glow-yellow: 0 0 20px rgba(251, 191, 36, 0.3);
  --glow-purple: 0 0 20px rgba(167, 139, 250, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 250ms ease-out;
  --transition-slow: 350ms ease-out;
  
  /* Backdrop Blur */
  --blur-sm: blur(4px);
  --blur-md: blur(8px);
  --blur-lg: blur(12px);
  --blur-xl: blur(16px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: var(--font-md);
  line-height: var(--line-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, pre {
  font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  background: rgba(26, 26, 26, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md-out);
  transition: all var(--transition-normal);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.8;
  z-index: -1;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: var(--space-lg) var(--space-xl);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-primary);
  font-weight: var(--font-semibold);
  letter-spacing: 0.05em;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gradient-secondary);
  box-shadow: var(--shadow-md-out);
  display: grid;
  place-items: center;
  color: var(--text-primary);
  font-weight: var(--font-extrabold);
  font-size: var(--font-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.logo-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: var(--radius-full);
}

.logo-circle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg-out), var(--glow-blue);
}

.logo-circle:hover::before {
  opacity: 0.1;
}

.logo-letter {
  position: relative;
  z-index: 1;
}

.company-name {
  font-size: var(--font-lg);
  font-weight: var(--font-semibold);
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-sm);
  margin-right: var(--space-xl);
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-sm-out);
  transition: all var(--transition-normal);
  font-weight: var(--font-medium);
  font-size: var(--font-sm);
  letter-spacing: 0.02em;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hover);
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: var(--radius-xl);
}


.nav-link.active {
  color: var(--text-primary);
  background: var(--gradient-secondary);
  box-shadow: var(--shadow-sm-in);
  font-weight: var(--font-semibold);
}

.nav-link.active::before {
  background: var(--gradient-secondary);
  opacity: 0.3;
  border-radius: var(--radius-xl);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-xs);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-sm-out);
  transition: all var(--transition-normal);
}

.mobile-menu:hover {
  box-shadow: var(--shadow-md-out), var(--glow-purple);
  transform: translateY(-1px);
}

.mobile-menu span {
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.mobile-menu:hover span {
  background: var(--text-primary);
}

/* Main Content */
.main {
  padding-top: var(--space-5xl);
  min-height: 100vh;
  position: relative;
}

/* Hero Section */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--space-2xl);
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4xl);
  width: 100%;
  padding: var(--space-4xl) 0;
}

.hero-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-circle {
  width: 240px;
  height: 240px;
  margin: 0 auto var(--space-3xl);
  border-radius: var(--radius-full);
  background: var(--gradient-secondary);
  box-shadow: var(--shadow-xl-out);
  display: grid;
  place-items: center;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.hero-logo-circle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    var(--accent-green) 0deg,
    var(--accent-blue) 90deg,
    var(--accent-purple) 180deg,
    var(--accent-yellow) 270deg,
    var(--accent-green) 360deg
  );
  opacity: 0;
  animation: rotate 8s linear infinite;
  transition: opacity var(--transition-slow);
}

.hero-logo-circle::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: var(--gradient-secondary);
  border-radius: var(--radius-full);
  z-index: 1;
}

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

.hero-logo-circle:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-xl-out), var(--glow-green);
}

.hero-logo-circle:hover::before {
  opacity: 0.6;
}

.hero-logo-letter {
  position: relative;
  z-index: 2;
  font-weight: var(--font-extrabold);
  font-size: 100px;
  color: var(--text-primary);
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(74, 222, 128, 0.3);
  transition: all var(--transition-normal);
}

.hero-title {
  color: var(--text-primary);
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: 0.15em;
  font-weight: var(--font-extrabold);
  margin: 0;
  text-shadow: 
    2px 2px 8px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
}

/* Buttons */
.enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: var(--space-lg) var(--space-3xl);
  border-radius: var(--radius-xl);
  background: var(--gradient-accent);
  color: var(--text-primary);
  letter-spacing: 0.1em;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  font-size: var(--font-md);
  box-shadow: var(--shadow-lg-out);
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.enter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.enter-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl-out), var(--glow-green);
}

.enter-btn:hover::before {
  left: 100%;
}

.enter-btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: var(--shadow-md-in);
}

/* Actions Section */
.actions {
  margin-top: var(--space-5xl);
  display: flex;
  justify-content: center;
  padding: var(--space-5xl) 0;
}

.action-buttons {
  display: flex;
  gap: var(--space-3xl);
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn {
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-md-out);
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  font-size: var(--font-md);
  font-weight: var(--font-medium);
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.2) 0%, transparent 70%);
  transition: all var(--transition-normal);
  transform: translate(-50%, -50%);
  border-radius: var(--radius-full);
}

.action-btn:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg-out), var(--glow-blue);
}

.action-btn:hover::before {
  width: 200px;
  height: 200px;
}

.action-btn:active,
.action-btn.clicked {
  box-shadow: var(--shadow-md-in);
  transform: translateY(0);
}

/* Mobile Menu States */
.mobile-menu.active {
  box-shadow: var(--shadow-sm-in);
}

.mobile-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--accent-yellow);
}

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

.mobile-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--accent-yellow);
}

.nav-list.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + var(--space-sm));
  right: var(--space-xl);
  background: var(--gradient-primary);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg-out);
  gap: var(--space-2xl);
  min-width: 180px;
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
}

/* Focus Styles */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-blue), var(--shadow-md-out);
  border-radius: var(--radius-sm);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Selection Styling */
::selection {
  background: rgba(74, 222, 128, 0.3);
  color: var(--text-primary);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .header .container {
    padding: var(--space-md);
  }

  .nav-list {
    display: none;
    margin-right: 0;
  }

  .mobile-menu {
    display: flex;
  }

  .company-name {
    font-size: var(--font-md);
    letter-spacing: 0.04em;
  }

  .hero {
    padding: var(--space-2xl) var(--space-md) var(--space-4xl);
    min-height: auto;
  }

  .hero-content {
    min-height: auto;
    padding: var(--space-2xl) 0 var(--space-3xl);
    gap: var(--space-3xl);
  }

  .hero-title {
    font-size: clamp(24px, 6vw, 36px);
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3xl);
  }

  .word-carousel {
    padding: 0;
    width: min(540px, 100%);
    min-height: unset;
    gap: var(--space-lg);
    justify-content: center;
  }

  .carousel-word-container {
    min-width: 0;
    width: 100%;
    height: clamp(68px, 18vw, 120px);
    flex: 1;
  }

  .carousel-word {
    font-size: clamp(22px, 6vw, 38px);
    letter-spacing: 0.045em;
    white-space: normal;
    word-break: break-word;
  }

  .carousel-arrow {
    font-size: clamp(28px, 12vw, 44px);
    width: clamp(40px, 12vw, 52px);
    height: clamp(40px, 12vw, 52px);
    border-radius: var(--radius-full);
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-sm-out);
    color: var(--text-primary);
    opacity: 0.9;
  }

  .nav-list.open {
    left: var(--space-md);
    right: var(--space-md);
    min-width: unset;
    width: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .header .container {
    padding: var(--space-sm) var(--space-md);
  }

  .hero {
    padding: var(--space-2xl) var(--space-sm) var(--space-3xl);
  }

  .hero-content {
    gap: var(--space-2xl);
  }

  .hero-title {
    font-size: clamp(16px, 4.2vw, 24px);
    letter-spacing: 0.035em;
    margin-bottom: var(--space-2xl);
  }

  .word-carousel {
    gap: var(--space-md);
    width: min(420px, 100%);
    min-height: unset;
    padding: 0;
    justify-content: center;
  }

  .carousel-word-container {
    min-width: 0;
    height: clamp(56px, 22vw, 95px);
    flex: 1;
  }

  .carousel-word {
    font-size: clamp(18px, 7.5vw, 28px);
    letter-spacing: 0.035em;
    white-space: normal;
    word-break: break-word;
  }

  .carousel-arrow {
    font-size: clamp(24px, 12vw, 32px);
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-sm-out);
    border-radius: var(--radius-full);
    opacity: 0.95;
  }

  .nav-list.open {
    left: var(--space-sm);
    right: var(--space-sm);
  }

  .logo-circle {
    width: 36px;
    height: 36px;
    font-size: var(--font-md);
  }

  .company-name {
    font-size: var(--font-sm);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
  }
}

/* Print styles */
@media print {
  .header,
  .mobile-menu,
  .enter-btn,
  .action-buttons {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* === Monochrome Dark Overrides === */

/* Remove colorful radial + hover glow from action buttons */
.action-btn::before {
  background: transparent !important;
  width: 0 !important;
  height: 0 !important;
}
.action-btn:hover {
  transform: none !important;
  box-shadow: var(--shadow-sm-out) !important;
}

/* Neutral focus ring (no blue) */
:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08), var(--shadow-md-out) !important;
  border-radius: var(--radius-sm);
}

/* Monochrome scrollbar + text selection */
::-webkit-scrollbar-thumb:hover { background: var(--bg-tertiary) !important; }
::selection { background: rgba(255,255,255,0.08) !important; color: var(--text-primary) !important; }

/* Mobile menu bars: no yellow accent */
.mobile-menu.active span:nth-child(1),
.mobile-menu.active span:nth-child(3) {
  background: var(--text-secondary) !important;
}

/* Optional: desaturate all accent variables in case anything else uses them */
:root {
  --accent-green: #8a8a8a;
  --accent-yellow: #8a8a8a;
  --accent-red: #8a8a8a;
  --accent-blue: #8a8a8a;
  --accent-purple: #8a8a8a;
}

/* Word Carousel Styles */
.word-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-2xl), 6vw, var(--space-5xl));
  margin: 0 auto;
  position: relative;
  width: min(900px, 92vw);
  min-height: clamp(220px, 40vh, 340px);
  padding: 0 var(--space-2xl);
}

.carousel-word-container {
  position: relative;
  flex: 1;
  min-width: 0;
  width: 100%;
  height: clamp(100px, 16vw, 170px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-word {
  position: absolute;
  font-size: clamp(32px, 5.4vw, 88px);
  font-weight: var(--font-bold);
  color: #f0f0f0;
  text-align: center;
  white-space: nowrap;
  word-break: normal;
  line-height: var(--line-tight);
  opacity: 0;
  transform: translateX(200px);
  transition: all 0.5s ease-out;
  text-shadow:
    3px 3px 6px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 255, 255, 0.1);
  letter-spacing: 0.05em;
  padding: 0 var(--space-sm);
  text-decoration: none;
  cursor: pointer;
}

.carousel-word:hover {
  color: var(--accent-blue);
  text-shadow:
    3px 3px 6px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(96, 165, 250, 0.3);
  transform: translateX(0) scale(1.05);
}

.carousel-word.active {
  opacity: 1;
  transform: translateX(0);
}

.carousel-word.slide-from-left {
  transform: translateX(-200px);
}

.carousel-word.slide-from-right {
  transform: translateX(200px);
}

.carousel-arrow {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: var(--font-normal);
  cursor: pointer;
  transition: color var(--transition-normal), opacity var(--transition-normal);
  padding: 0;
  opacity: 0.6;
  display: grid;
  place-items: center;
  width: clamp(48px, 9vw, 80px);
  height: clamp(48px, 9vw, 80px);
}

.carousel-arrow:hover {
  color: var(--text-primary);
  opacity: 1;
}

.carousel-arrow:active {
  opacity: 0.8;
}
