/* LegoClicker docs redesign - sunset vibrant theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #120816;
  --bg2: #1a0d24;
  --bg3: #241132;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --accent: #fb7185;
  --accent-strong: #db2777;
  --accent-soft: #f9a8d4;
  --text: #fde7f3;
  --muted: #e8a7c3;
  --border: rgba(251, 113, 133, 0.25);
  --border-strong: rgba(251, 113, 133, 0.45);
  --shadow: 0 16px 34px rgba(10, 4, 20, 0.45);
  --glow: 0 0 26px rgba(251, 113, 133, 0.25);
  --font-ui: 'Inter', sans-serif;
  --font-display: 'Sora', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(950px 420px at 78% -12%, rgba(251, 113, 133, 0.18), transparent 65%),
    radial-gradient(760px 380px at 8% 14%, rgba(190, 24, 93, 0.2), transparent 60%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg2) 55%, var(--bg3) 100%);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(20, 8, 29, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.accent { color: var(--accent); }

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

nav ul a:hover { color: #fff; }

.nav-dl {
  color: #fff !important;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 14px;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.28), rgba(219, 39, 119, 0.32));
  box-shadow: var(--glow);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 116px 2rem 72px;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 2.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(251, 113, 133, 0.1);
  color: var(--accent-soft);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.95;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.tagline {
  color: var(--muted);
  font-size: 1.03rem;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
  color: #fff;
  border: 1px solid rgba(251, 113, 133, 0.55);
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(251, 113, 133, 0.34);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(249, 168, 212, 0.34);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
}

.stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.hero-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-shell {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  padding: 10px;
  box-shadow: var(--shadow), var(--glow);
}

.preview-shell img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(251, 113, 133, 0.25);
}

.preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.preview-chips span {
  font-size: 0.72rem;
  color: var(--accent-soft);
  border: 1px solid rgba(249, 168, 212, 0.35);
  border-radius: 999px;
  background: rgba(251, 113, 133, 0.1);
  padding: 6px 10px;
}

.section {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 2rem;
}

.alt-section {
  max-width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(25, 10, 34, 0.92), rgba(18, 8, 24, 0.92));
}

.alt-section > * { max-width: 1120px; margin: 0 auto; }
.alt-section { padding-left: 0; padding-right: 0; }
.alt-section .section-header,
.alt-section .status-grid,
.alt-section .setup-cols,
.alt-section .status-note {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.6rem;
}

.section-tag {
  display: inline-block;
  color: var(--accent-soft);
  background: rgba(249, 168, 212, 0.1);
  border: 1px solid rgba(249, 168, 212, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--muted);
  font-size: 0.9rem;
}

.categories {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.category { display: flex; flex-wrap: wrap; gap: 1rem; }

.cat-title {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-soft);
  margin-bottom: 0.3rem;
}

.cat-title::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--border);
  margin-left: 0.55rem;
}

.feature-card,
.shot-card,
.status-card,
.arch-step,
.setup-block,
.dl-box {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.feature-card {
  flex: 1;
  min-width: 260px;
  padding: 1.35rem 1.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.shot-card:hover,
.status-card:hover,
.arch-step:hover,
.setup-block:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), var(--glow);
}

.feat-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.feat-bind {
  font-size: 0.66rem;
  color: var(--accent-soft);
  border: 1px solid rgba(249, 168, 212, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(249, 168, 212, 0.12);
}

.feat-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.95rem;
}

.feat-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.feat-tags span {
  color: var(--accent-soft);
  border: 1px solid rgba(249, 168, 212, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.66rem;
  padding: 2px 8px;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.shot-card { overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }

.shot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot-card figcaption {
  padding: 0.7rem 0.95rem;
  color: var(--muted);
  font-size: 0.77rem;
}

.status-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.status-card {
  min-width: 185px;
  text-align: center;
  padding: 1.2rem 1.4rem;
}

.status-name {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 auto 0.45rem;
}

.dot-green { background: #34d399; box-shadow: 0 0 12px rgba(52, 211, 153, 0.65); }
.dot-yellow { background: #fbbf24; box-shadow: 0 0 12px rgba(251, 191, 36, 0.65); }

.status-label {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.status-note {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 72px;
}

.arch-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
}

.arch-step {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  padding: 1.5rem;
}

.arch-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: rgba(249, 168, 212, 0.35);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.arch-title {
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: 0.5rem;
}

.arch-desc {
  color: var(--muted);
  font-size: 0.88rem;
}

.arch-arrow {
  align-self: center;
  color: var(--accent-soft);
  opacity: 0.6;
  font-size: 1.6rem;
}

.setup-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 72px;
}

.setup-block {
  flex: 1;
  min-width: 240px;
  padding: 1.4rem;
}

.setup-block h3 {
  font-family: var(--font-display);
  color: var(--accent-soft);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.setup-block p,
.req-list,
.steps-list {
  color: var(--muted);
  font-size: 0.9rem;
}

.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.steps-list {
  list-style: decimal;
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.steps-list li { color: var(--text); }

.dot-green-sm { color: #34d399; font-size: 0.6rem; margin-right: 0.25rem; }
.dot-yellow-sm { color: #fbbf24; font-size: 0.6rem; margin-right: 0.25rem; }

.code-block {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(249, 168, 212, 0.28);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  color: var(--accent-soft);
  font-size: 0.78rem;
  word-break: break-all;
}

code {
  color: var(--accent-soft);
  background: rgba(249, 168, 212, 0.1);
  border-radius: 6px;
  padding: 1px 5px;
  font-size: 0.82rem;
}

.download-section { text-align: center; }

.dl-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 2rem 2.2rem;
  min-width: 320px;
}

.dl-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dl-row {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.46rem;
}

.dl-val {
  color: var(--text);
  font-size: 0.82rem;
}

.btn-lg {
  padding: 13px 30px;
  font-size: 0.8rem;
}

.dl-note {
  color: var(--muted);
  font-size: 0.75rem;
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.4rem 2rem;
  text-align: center;
  background: rgba(18, 8, 24, 0.85);
}

.footer-inner { max-width: 680px; margin: 0 auto; }

footer .logo {
  display: block;
  margin-bottom: 0.7rem;
}

footer p {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.footer-small {
  font-size: 0.7rem !important;
  opacity: 0.8;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    min-height: auto;
    padding-top: 102px;
  }

  .hero-preview { order: -1; }

  nav ul { gap: 0.85rem; }
}

@media (max-width: 700px) {
  .nav-inner,
  .section,
  .alt-section .section-header,
  .alt-section .status-grid,
  .alt-section .setup-cols,
  .alt-section .status-note {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-stats {
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-sep { display: none; }
  .arch-arrow { display: none; }
}
