:root {
  --bg-dark: #050508;
  --bg-darker: #020203;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-blue: #3b82f6;
  --accent-blue-light: #60a5fa;
  --accent-purple: #8b5cf6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --glass-bg: rgba(17, 25, 40, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "Outfit", sans-serif;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    var(--accent-gold-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient.alt {
  background: linear-gradient(
    135deg,
    var(--accent-blue-light) 0%,
    var(--accent-purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

/* Background Animation */
.mesh-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(
      circle at 15% 50%,
      rgba(245, 158, 11, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(139, 92, 246, 0.05) 0%,
      transparent 50%
    );
  filter: blur(60px);
  animation: bg-pulse 20s infinite alternate linear;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/lexpand_hero_bg.png");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -2;
}

@keyframes bg-pulse {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.1) translate(2%, 2%);
  }
  100% {
    transform: scale(1) translate(-2%, -2%);
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  border-radius: 100px;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 24px;
}

.logo-image {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.logo-image-sm {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s var(--easing);
  border: none;
  cursor: pointer;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.glow-on-hover:hover {
  box-shadow:
    0 0 20px rgba(245, 158, 11, 0.4),
    0 0 40px rgba(245, 158, 11, 0.2);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent-gold-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 500px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Demo Window Carousel */
.demo-carousel {
  position: relative;
  width: 100%;
  height: 320px;
  perspective: 1000px;
}

/* Demo Window */
.demo-window {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(5deg);
  box-shadow:
    20px 20px 60px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(245, 158, 11, 0.1);
  transition: transform 0.3s var(--easing), opacity 0.5s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.demo-window.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.demo-window:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.window-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.mac-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--easing);
  font-size: 16px;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.4);
}

.carousel-dots {
  display: flex;
  gap: 12px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s var(--easing);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
  background: var(--accent-gold);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Windows Style Controls */
.win-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--text-muted);
}

.demo-window.win-style .window-header {
  flex-direction: row-reverse;
}

.win-btn {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0.7;
}

.win-min::after { content: ""; display: block; width: 10px; height: 1px; background: currentColor; margin-top: 5px; }
.win-max::after { content: ""; display: block; width: 8px; height: 8px; border: 1px solid currentColor; }
.win-close::before, .win-close::after { content: ""; position: absolute; width: 12px; height: 1px; background: currentColor; }
.win-close::before { transform: rotate(45deg); }
.win-close::after { transform: rotate(-45deg); }

.window-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.window-body {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  min-height: 250px;
}

.editor-area {
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.8;
}

.editor-area p {
  margin-bottom: 12px;
}

.cursor {
  display: inline-block;
  color: var(--text-primary);
  margin-left: 2px;
}

.cursor.blinking {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.expansion-highlight {
  background: rgba(245, 158, 11, 0.3);
  border-radius: 4px;
  padding: 2px 4px;
  transition: background 1.5s ease;
  display: inline-block;
}

.expansion-highlight.fade-highlight {
  background: transparent;
}

/* Sections Common */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 48px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 40px 32px;
  height: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-icon {
  font-size: 28px;
  color: var(--accent-gold);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 20px;
  left: 24px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-step {
  position: relative;
  padding-left: 70px;
  margin-bottom: 40px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--accent-gold);
  z-index: 2;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.step-content {
  padding: 32px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.step-content h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.step-content p {
  color: var(--text-secondary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  background: rgba(0, 0, 0, 0.2);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--text-primary);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s var(--easing),
    transform 0.8s var(--easing);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .navbar {
    width: 95%;
    padding: 12px 16px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-cta {
    justify-content: center;
  }

  .demo-window {
    margin-top: 20px;
    transform: perspective(1000px) rotateY(0) rotateX(0);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .section-title,
  .hero-title {
    font-size: 36px;
  }

  .timeline::before {
    left: 20px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .timeline-step {
    padding-left: 60px;
  }

  .footer-container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}
