/* ==========================================================================
   CSS-SKILL / LAYOUT.CSS
   Global structure, container, grids, and page flow
   ========================================================================== */

body {
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
}

/* Header & Navigation Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(var(--header-background-color-rgb), 0.9);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--box-border-color);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: 1rem;
}

.hero-subtitle {
  margin-bottom: 2.5rem;
}

/* Downloader Main Card Container */
.downloader-card {
  background-color: var(--box-background-color);
  border: 1px solid var(--box-border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--box-shadow);
  padding: 2.25rem;
  margin-bottom: 3rem;
  position: relative;
}

/* Platform Section */
.platforms-section {
  margin: 2.5rem 0 1.5rem;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

/* How It Works & FAQ Sections */
.features-section,
.faq-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--box-border-color);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Footer Layout */
.site-footer {
  flex-shrink: 0;
  background-color: var(--box-background-color);
  border-top: 1px solid var(--box-border-color);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--box-border-color);
  color: var(--text-muted);
}
