/* ===================================
   VantaClient - Design System
   =================================== */

/* CSS Variables - Design Tokens */
:root {
  /* Colors */
  --accent: #00A4FF;
  /* Primary surfaces for light theme */
  --bg-main: #FFFFFF;
  --bg-soft: #F6F7F9;
  --text-primary-color: #0B0D10;
  --text-secondary-color: #5F6773;
  --border-soft: #E6E9EE;
  /* Legacy dark variables remain for dark theme */
  --bg-dark: #0B0D10;
  --white: #FFFFFF;
  --off-white: #F6F7F9;
  --text-light: #EDEFF2;
  --text-muted: #9AA3AD;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.08);
  
  /* Typography */
  /* Use Inter for headings and Rubik for body to provide a modern, clean appearance */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Rubik', sans-serif;
  
  /* Spacing */
  --space-section: 120px;
  --space-section-mobile: 72px;
  --space-container: 24px;
  
  /* Layout */
  --max-width: 1280px;
  --radius: 12px;
  --radius-large: 16px;
  
  /* Transitions */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration: 0.3s;
}

/* Theme Variables */
[data-theme="dark"] {
  --bg-primary: var(--bg-dark);
  --bg-secondary: #13151A;
  --bg-tertiary: #1A1D24;
  --text-primary: var(--text-light);
  --text-secondary: var(--text-muted);
  --border: var(--border-dark);
  --shadow: rgba(0, 0, 0, 0.5);
  --glow: rgba(0, 164, 255, 0.15);
}

[data-theme="light"] {
  /* Light theme colors drawn from design tokens */
  --bg-primary: var(--bg-main);
  --bg-secondary: var(--bg-soft);
  --bg-tertiary: #EFF2F6;
  --text-primary: var(--text-primary-color);
  --text-secondary: var(--text-secondary-color);
  --border: var(--border-soft);
  --shadow: rgba(0, 0, 0, 0.06);
  --glow: rgba(0, 164, 255, 0.1);
}

/* ===================================
   Reset & Base Styles
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 164, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 164, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  /* Reduce opacity of the grid overlay for a cleaner look */
  opacity: 0.25;
}

body > * {
  position: relative;
  z-index: 1;
}

/* ===================================
   Typography
   =================================== */

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

h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 700; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; }
h3 { font-size: clamp(20px, 3vw, 32px); font-weight: 600; }

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ===================================
   Layout Components
   =================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-container);
}

.section {
  padding: var(--space-section) 0;
  animation: fadeIn 0.6s var(--ease) backwards;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-section-mobile) 0;
  }
}

.section-title {
  margin-bottom: 16px;
  animation: slideUp 0.6s var(--ease) backwards;
  animation-delay: 0.1s;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  animation: slideUp 0.6s var(--ease) backwards;
  animation-delay: 0.2s;
}

/* ===================================
   Navigation
   =================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--duration) var(--ease);
  animation: slideDown 0.6s var(--ease) backwards;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--space-container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.logo-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 164, 255, 0.3));
  transition: all var(--duration) var(--ease);
}

.nav-logo svg {
  color: var(--accent);
  transition: transform var(--duration) var(--ease);
}

.nav-logo:hover .logo-image {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 12px rgba(0, 164, 255, 0.5));
}

.nav-logo:hover svg {
  transform: rotate(5deg) scale(1.05);
}

.nav-wordmark {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--duration) var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--duration) var(--ease);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
}

.theme-icon {
  position: absolute;
  transition: all var(--duration) var(--ease);
}

[data-theme="dark"] .theme-icon-dark {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="dark"] .theme-icon-light {
  opacity: 0;
  transform: rotate(180deg);
}

[data-theme="light"] .theme-icon-dark {
  opacity: 0;
  transform: rotate(-180deg);
}

[data-theme="light"] .theme-icon-light {
  opacity: 1;
  transform: rotate(0deg);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-actions .button-secondary {
    display: none;
  }
}

/* ===================================
   Buttons
   =================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  position: relative;
}

.button-primary {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 164, 255, 0.4);
}

.button-primary:hover {
  background: #0091e6;
  border-color: #0091e6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 164, 255, 0.4),
              0 0 0 4px rgba(0, 164, 255, 0.1);
}

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

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 164, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 164, 255, 0.15);
}

.button-large {
  padding: 16px 32px;
  font-size: 16px;
}

.button:active {
  transform: translateY(0);
}

/* ===================================
   Hero Section
   =================================== */

/* -----------------------------------
   Custom hero layout and animations
   ----------------------------------- */
.hero-lines {
  margin-bottom: 24px;
  overflow: hidden;
}

.hero-line {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.1;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  animation: heroLineUp 0.8s var(--ease) forwards;
}

.hero-line:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-line:nth-child(2) {
  animation-delay: 0.25s;
}

.hero-line:nth-child(3) {
  animation-delay: 0.4s;
}

.hero-line .line-text {
  position: relative;
  display: inline-block;
}

.hero-line .line-text::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

/* Only draw underline on second and third lines */
.hero-line:nth-child(2) .line-text::after,
.hero-line:nth-child(3) .line-text::after {
  animation: drawUnderline 0.6s var(--ease) forwards;
  animation-delay: 0.7s;
}

@keyframes heroLineUp {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes drawUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-subtext {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.65;
  animation: slideUp 1s var(--ease) forwards;
  animation-delay: 0.5s;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  animation: slideUp 1s var(--ease) forwards;
  animation-delay: 0.6s;
}

.hero-media {
  animation: fadeInUp 1s var(--ease) forwards;
  animation-delay: 0.5s;
}

.video-card {
  position: relative;
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
  transform-origin: center;
  transition: transform 0.5s var(--ease);
}

.video-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  transform: scale(1);
  transition: transform 0.6s var(--ease);
}

.video-card:hover img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

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

.play-icon {
  color: var(--accent);
}

.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(0, 164, 255, 0.15) 0%,
    transparent 50%
  );
  pointer-events: none;
  animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(5%, 5%) scale(1.1);
    opacity: 0.3;
  }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 0.8s var(--ease) backwards;
}

.hero-title {
  margin-bottom: 24px;
  animation: slideUp 0.8s var(--ease) backwards;
  animation-delay: 0.1s;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
  animation: slideUp 0.8s var(--ease) backwards;
  animation-delay: 0.2s;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  animation: slideUp 0.8s var(--ease) backwards;
  animation-delay: 0.3s;
}

.trust-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: slideUp 0.8s var(--ease) backwards;
  animation-delay: 0.4s;
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--duration) var(--ease);
}

.chip:hover {
  background: rgba(0, 164, 255, 0.1);
  border-color: rgba(0, 164, 255, 0.3);
  transform: translateY(-2px);
}

.chip svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hero-visual {
  animation: fadeIn 0.8s var(--ease) backwards;
  animation-delay: 0.5s;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow),
              0 0 0 1px rgba(0, 164, 255, 0.1);
  transition: all var(--duration) var(--ease);
}

.video-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 72px var(--shadow),
              0 0 0 1px rgba(0, 164, 255, 0.3);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 4px;
}

.caption-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.95);
  }
}

/* Remove old mockup styles */
.hero-frame,
.hero-frame-content,
.minecraft-ui-mockup,
.mockup-header,
.mockup-tabs,
.tab,
.mockup-content,
.stat-row,
.stat-label,
.stat-value,
.performance-graph {
  display: none;
}

@media (max-width: 968px) {
  .hero {
    padding-top: 100px;
    min-height: auto;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ===================================
   Features Section
   =================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-secondary);
  /* subtle grid pattern background */
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.02) 0px, rgba(0, 0, 0, 0.02) 1px, transparent 1px, transparent 8px),
                    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.02) 0px, rgba(0, 0, 0, 0.02) 1px, transparent 1px, transparent 8px);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-large);
  transition: all var(--duration) var(--ease);
  animation: fadeInUp 0.6s var(--ease) backwards;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 164, 255, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

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

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }
.feature-card:nth-child(7) { animation-delay: 0.35s; }
.feature-card:nth-child(8) { animation-delay: 0.4s; }
.feature-card:nth-child(9) { animation-delay: 0.45s; }

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 164, 255, 0.4);
  box-shadow: 0 12px 32px var(--shadow),
              0 0 0 1px rgba(0, 164, 255, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 164, 255, 0.08);
  border-radius: var(--radius-large);
  color: var(--accent);
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.performance-stats {
  padding: 56px 48px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  text-align: center;
  animation: fadeInUp 0.6s var(--ease) backwards;
  animation-delay: 0.5s;
  position: relative;
  overflow: hidden;
}

.performance-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}

.stats-title {
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 56px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--accent);
  opacity: 0.3;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 56px;
  color: var(--accent);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .performance-stats {
    padding: 32px 24px;
  }
  
  .stats-grid {
    gap: 32px;
  }
}

/* ===================================
   Showcase Section
   =================================== */

/* Tabs for switching between different UI categories */
.showcase-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.showcase-tab {
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color var(--duration) var(--ease);
}

.showcase-tab:hover {
  color: var(--text-primary);
}

.showcase-tab.active {
  color: var(--text-primary);
}

.showcase-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.showcase-tab.active::after {
  transform: scaleX(1);
}

.showcase-display {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-large);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.showcase-image {
  display: none;
  width: 100%;
  height: auto;
  border-radius: var(--radius-large);
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

.showcase-image.active {
  display: block;
  animation: fadeIn 0.6s var(--ease) forwards;
}

.showcase-image:hover {
  transform: scale(1.04);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.showcase-item {
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  animation: fadeInUp 0.6s var(--ease) backwards;
  position: relative;
}

.showcase-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 164, 255, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.showcase-item:hover::before {
  opacity: 1;
}

.showcase-item:nth-child(1) { animation-delay: 0.1s; }
.showcase-item:nth-child(2) { animation-delay: 0.15s; }
.showcase-item:nth-child(3) { animation-delay: 0.2s; }
.showcase-item:nth-child(4) { animation-delay: 0.25s; }
.showcase-item:nth-child(5) { animation-delay: 0.3s; }
.showcase-item:nth-child(6) { animation-delay: 0.35s; }

.showcase-item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 164, 255, 0.5);
  box-shadow: 0 16px 48px var(--shadow),
              0 0 0 1px rgba(0, 164, 255, 0.3);
}

.showcase-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-secondary);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  position: relative;
  z-index: 1;
}

.ui-philosophy {
  padding: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  animation: fadeInUp 0.6s var(--ease) backwards;
  animation-delay: 0.4s;
}

.ui-philosophy h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.ui-philosophy p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  max-width: 800px;
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .ui-philosophy {
    padding: 32px 24px;
  }
}

/* ===================================
   Download Section
   =================================== */

.download-section {
  background: var(--bg-secondary);
}

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

.download-box {
  padding: 48px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s var(--ease) backwards;
  animation-delay: 0.2s;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.download-button {
  width: 100%;
  max-width: 400px;
}

.download-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: underline;
  transition: color var(--duration) var(--ease);
}

.download-link:hover {
  color: var(--accent);
}

.download-requirements {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.requirement {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.requirement-label {
  color: var(--text-secondary);
}

.requirement-value {
  font-weight: 600;
  color: var(--text-primary);
}

.install-steps {
  animation: fadeInUp 0.6s var(--ease) backwards;
  animation-delay: 0.3s;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.accordion-trigger:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
}

.accordion-icon {
  transition: transform var(--duration) var(--ease);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration) var(--ease);
}

.accordion-trigger[aria-expanded="true"] + .accordion-content {
  max-height: 500px;
}

.install-list {
  padding: 24px;
  padding-left: 48px;
  text-align: left;
  list-style-position: outside;
}

.install-list li {
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .download-box {
    padding: 32px 24px;
  }
  
  .requirement {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ===================================
   Community Section
   =================================== */

.social-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  transition: all var(--duration) var(--ease);
  animation: fadeInUp 0.6s var(--ease) backwards;
}

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.15s; }
.social-link:nth-child(3) { animation-delay: 0.2s; }
.social-link:nth-child(4) { animation-delay: 0.25s; }
.social-link:nth-child(5) { animation-delay: 0.3s; }

.social-link:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  background: rgba(0, 164, 255, 0.05);
}

.social-link:hover .social-icon svg {
  transform: rotate(5deg) scale(1.1);
}

.social-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 164, 255, 0.1);
  border-radius: var(--radius);
  color: var(--accent);
  flex-shrink: 0;
}

.social-icon svg {
  transition: transform var(--duration) var(--ease);
}

.social-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.social-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

.social-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .social-links {
    gap: 12px;
  }
  
  .social-link {
    padding: 20px;
  }
}

/* ===================================
   FAQ Section
   =================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  animation: fadeInUp 0.6s var(--ease) backwards;
}

.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-item:nth-child(4) { animation-delay: 0.2s; }
.faq-item:nth-child(5) { animation-delay: 0.25s; }
.faq-item:nth-child(6) { animation-delay: 0.3s; }
.faq-item:nth-child(7) { animation-delay: 0.35s; }
.faq-item:nth-child(8) { animation-delay: 0.4s; }
.faq-item:nth-child(9) { animation-delay: 0.45s; }
.faq-item:nth-child(10) { animation-delay: 0.5s; }

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.faq-trigger:hover {
  border-color: rgba(0, 164, 255, 0.3);
  background: var(--bg-tertiary);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
}

.faq-trigger[aria-expanded="true"] {
  border-color: var(--accent);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
  opacity: 0;
}

.faq-trigger[aria-expanded="true"] + .faq-content {
  max-height: 300px;
  opacity: 1;
}

.faq-content p {
  padding: 20px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================
   Footer
   =================================== */

.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.footer-column a {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* ===================================
   Lightbox Modal
   =================================== */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  z-index: 2;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-placeholder {
  width: 800px;
  height: 500px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   Accessibility
   =================================== */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .showcase-item,
  .social-link,
  .faq-item {
    animation: none !important;
  }
}

/* ===================================
   Showcase preview styling
   -----------------------------------
   The preview section displays an image of the client.
   It uses a centered wrapper with rounded corners and
   subtle elevation to stand out from the background. */

.showcase {
  background: var(--bg-secondary);
  text-align: center;
}

.preview-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.preview-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.12);
}

.preview-image {
  width: 100%;
  height: auto;
  display: block;
}
/* ===================================
   Cache Status Fallback (CSS Layer)
=================================== */

.cache-banner::after {
  content: "";
  display: block;
  opacity: 0.85;
}
