/* Import JetBrains Mono font for that terminal aesthetic */
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap");

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

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --border: #30363d;
  --accent: #58a6ff;
  --accent-dim: #1f6feb;
  --success: #3fb950;
  --warning: #d29922;
  --danger: #f85149;
  --shadow: rgba(0, 0, 0, 0.4);
  /* Adjusted blue glow to match screenshot */
  --blue-glow: rgba(88, 166, 255, 0.3);
  --blue-border: rgba(88, 166, 255, 0.4);
}

body {
  font-family: "JetBrains Mono", "Menlo", "Monaco", "Consolas",
    "Liberation Mono", "Courier New", monospace;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
}

html {
  scroll-behavior: smooth;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background: rgba(22, 27, 34, 0.7);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

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

/* Hero Section */
.hero {
  padding: 5rem 0;
  text-align: center;
  background: radial-gradient(
      circle at 50% 0%,
      rgba(88, 166, 255, 0.1),
      transparent 40%
    ),
    var(--bg-primary);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.css-typing {
  display: inline-block;
  margin-bottom: 2rem;
}

.css-typing p {
  border-right: 0.15em solid var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  margin: 0 auto;
  color: var(--text-secondary);
}
.css-typing p:nth-child(1) {
  width: 12ch;
  animation: type 1.5s steps(12, end);
  animation-fill-mode: forwards;
}

.css-typing p:nth-child(2) {
  width: 24ch;
  opacity: 0;
  animation: type2 2s steps(22, end);
  animation-delay: 1.5s;
  animation-fill-mode: forwards;
}

@keyframes type {
  0% {
    width: 0;
  }
  99.9% {
    border-right: 0.15em solid var(--accent);
  }
  100% {
    border: none;
  }
}

@keyframes type2 {
  0% {
    width: 0;
  }
  1% {
    opacity: 1;
  }
  99.9% {
    border-right: 0.15em solid var(--accent);
  }
  100% {
    opacity: 1;
    border: none;
  }
}

.badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.badge {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid var(--accent-dim);
  box-shadow: 0 4px 15px rgba(88, 166, 255, 0.2);
}

.download-btn:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 166, 255, 0.3);
}

/* Demo Section */
.demo {
  padding: 5rem 0;
}

.demo h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 600;
}

.demo-terminal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
}

.terminal-header {
  background: var(--bg-tertiary);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red {
  background: #ff5f56;
}
.terminal-dot.yellow {
  background: #ffbd2e;
}
.terminal-dot.green {
  background: #27c93f;
}

.terminal-title {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-left: auto;
}

.terminal-body {
  padding: 1.5rem 2rem 2rem;
  font-size: 0.9rem;
}

.command-line {
  margin-bottom: 1rem;
}

.prompt {
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: 600;
}

.output {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.demo-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* --- START: Updated styles for the live preview --- */
.floating-window {
  width: 100%;
  max-width: 600px; /* Increased max-width for larger thumbnails */
  background-color: rgba(10, 15, 25, 0.7);
  border: 1px solid var(--blue-border); /* Changed to blue border */
  border-radius: 1rem;
  /* Updated box-shadow to better match the screenshot's glow */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--blue-glow);
  padding: 1.25rem; /* Increased padding */
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem; /* Increased gap */
  margin-bottom: 1rem;
  padding: 0.5rem;
}

.wallpaper-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 8px; /* Made corners more rounded */
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.wallpaper-thumb.active {
  border-color: var(--accent);
  transform: scale(1.05); /* Slightly reduced scale for a subtler effect */
  box-shadow: 0 0 15px var(--accent); /* Changed glow to accent blue */
}

.demo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-top: 1px solid var(--blue-border); /* Changed to blue border */
  margin-top: 1rem; /* Added margin-top */
}

.demo-version {
  color: rgba(255, 255, 255, 0.5); /* Slightly adjusted opacity */
  font-size: 0.875rem; /* Increased font size */
}

.demo-icons {
  display: flex;
  gap: 1rem; /* Increased gap */
}

.demo-icon {
  color: rgba(255, 255, 255, 0.7); /* Made icons slightly brighter */
  transition: color 0.2s ease;
}
.demo-icon:hover {
  color: #fff;
}
/* --- END: Updated styles for the live preview --- */

/* Features Section */
.features {
  padding: 5rem 0;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 600;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
}

/* Installation Section */
.installation {
  background: var(--bg-primary);
  padding: 5rem 0;
}

.installation-windows {
  background: var(--bg-secondary);
  padding: 5rem 0;
}

.installation h2,
.installation-windows h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 600;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.install-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  background: var(--accent);
  color: var(--bg-primary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.step-content p {
  color: var(--text-secondary);
}

.step-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.step-content a:hover {
  text-decoration: underline;
}

.step-content code {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  text-align: center;
  color: var(--text-secondary);
}

.header-copy-btn {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.header-copy-btn:hover {
  opacity: 1;
  background: var(--accent);
  color: var(--bg-primary);
}

.header-copy-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 13px;
  }
  .container {
    padding: 0 1.5rem;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .css-typing p {
    font-size: 1.2rem;
  }
}

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