/* stylelint-disable no-descending-specificity */
/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary: #1db954;
  --primary-dark: #1aa34a;
  --secondary: #191414;
  --text: #fff;
  --text-muted: #b3b3b3;
  --background: #121212;
  --card-bg: #181818;
  --border: #282828;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography */
  --font-sans: -apple-system, blinkmacsystemfont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgb(0 0 0 / 20%);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 30%);
  --shadow-lg: 0 8px 24px rgb(0 0 0 / 40%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===========================
   Navigation
   =========================== */
.navbar {
  position: sticky;
  top: 0;
  background: rgb(18 18 18 / 95%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: var(--spacing-sm) 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ===========================
   Hero Section
   =========================== */
.hero {
  padding: var(--spacing-xl) 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(135deg, var(--primary) 0%, #1ed760 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.platform-notes {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.quick-stats {
  display: flex;
  gap: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 1.25rem;
  color: var(--primary);
}

.stat span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Browser Mockup */
.browser-mockup {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.browser-header {
  background: var(--secondary);
  padding: var(--spacing-xs) var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}

.browser-dots span:nth-child(1) {
  background: #f5f;
}

.browser-dots span:nth-child(2) {
  background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
  background: #28ca42;
}

.browser-title {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.browser-content {
  aspect-ratio: 16 / 10;
  background: var(--background);
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  border: 2px dashed var(--border);
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--secondary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-coffee {
  background: #fd0;
  color: #000;
}

.btn-coffee:hover {
  background: #ffd700;
}

/* ===========================
   Sections
   =========================== */
section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

/* ===========================
   Features Section
   =========================== */
.features {
  background: var(--card-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.feature-card {
  background: var(--background);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================
   How It Works / Demo Section
   =========================== */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.demo-item {
  text-align: center;
}

.demo-image {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
}

.demo-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 2px dashed var(--border);
}

.demo-item h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.demo-item p {
  color: var(--text-muted);
}

/* ===========================
   Installation Section
   =========================== */
.installation {
  background: var(--card-bg);
}

.installation-steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 800px;
  margin: 0 auto var(--spacing-md);
}

.step {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

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

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.step-content p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.installation-note {
  background: rgb(29 185 84 / 10%);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-md);
}

.manual-installation {
  max-width: 800px;
  margin: 0 auto;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
}

.manual-steps {
  padding-top: var(--spacing-sm);
  color: var(--text-muted);
}

.manual-steps code {
  background: var(--card-bg);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--primary);
}

.manual-steps ol {
  margin-left: var(--spacing-md);
}

.manual-steps li {
  margin-bottom: var(--spacing-xs);
}

/* ===========================
   FAQ Section
   =========================== */
.faq-grid {
  display: grid;
  gap: var(--spacing-sm);
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.125rem;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.manual-installation summary {
  cursor: pointer;
  font-weight: 600;
  user-select: none;
}

.manual-installation summary:hover {
  color: var(--primary);
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: var(--spacing-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item code {
  background: var(--background);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--primary);
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
  background: linear-gradient(
    135deg,
    rgb(29 185 84 / 10%) 0%,
    rgb(30 215 96 / 5%) 100%
  );
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.cta-section p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--secondary);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

.footer-section p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--spacing-xs);
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--text);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin-bottom: var(--spacing-xs);
}

/* ===========================
   Responsive Design
   =========================== */
@media (width <= 768px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .quick-stats {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .features-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .step {
    flex-direction: column;
  }
}

@media (width <= 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}
