/* ============ CL Launcher — brand system ============ */
:root {
  --base: #0b0c0e;
  --panel: #101116;
  --card: #16181d;
  --card-hover: #1e2128;
  --active: #262a31;
  --line: #23262d;
  --line-2: #2c3038;

  --text: #f4f5f7;
  --muted: #9aa0aa;
  --muted-2: #6e747e;

  --accent: #42d67c;
  --accent-grad: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  --accent-soft: rgba(66, 214, 124, 0.12);
  --accent-line: rgba(66, 214, 124, 0.32);
  --glow: 0 12px 40px -8px rgba(34, 197, 94, 0.45);

  --shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 4px 16px -6px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 11px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font: 16px/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #06210f; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-thumb { background: #2a2e36; border: 3px solid var(--base); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #3a3f49; }

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 800px; }

/* background bloom */
.bloom {
  position: fixed;
  top: -240px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.22s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), filter 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #052012;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 18px 52px -10px rgba(34, 197, 94, 0.6); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--card-hover); border-color: #3a3f49; transform: translateY(-2px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--base), 0 0 0 5px var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 24px; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; box-shadow: none; }

.btn-stack { display: grid; text-align: left; line-height: 1.25; }
.btn-stack small { font-size: 11.5px; font-weight: 600; opacity: 0.85; }
.btn-stack strong { font-size: 15px; }

.btn-os-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--win-mask) center / contain no-repeat;
  mask: var(--win-mask) center / contain no-repeat;
}
.btn-os-icon.win-sm { width: 20px; height: 20px; }
:root { --win-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5.1 10.3 4v7.3H3V5.1zM3 12.7h7.3V20L3 18.9v-6.2zM11.2 3.9 21 2.5v8.8h-9.8V3.9zM11.2 12.7H21V21.5l-9.8-1.4v-7.4z'/%3E%3C/svg%3E"); }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 14, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.logo {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-grad);
  color: #052012;
  font-weight: 850;
  font-size: 14px;
  letter-spacing: 0.03em;
  box-shadow: var(--glow);
}
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-size: 15px; letter-spacing: -0.01em; }
.brand-text span { font-size: 11.5px; color: var(--muted); }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 550; transition: color 0.18s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-download { margin-left: 4px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; margin: 4px 0; transition: 0.25s var(--ease); }

/* ============ Hero ============ */
.hero { position: relative; z-index: 1; padding: 72px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #bff3d2;
  margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px rgba(66, 214, 124, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(66,214,124,0.18); } 50% { box-shadow: 0 0 0 7px rgba(66,214,124,0.05); } }

.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 820;
  margin-bottom: 20px;
}
.lead { color: var(--muted); font-size: 17.5px; max-width: 50ch; margin-bottom: 30px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.cta-meta { color: var(--muted-2); font-size: 13.5px; margin-bottom: 30px; }

.trust-row { display: flex; gap: 30px; list-style: none; padding: 0; margin: 0; }
.trust-row li { display: grid; }
.trust-row strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.trust-row span { font-size: 12.5px; color: var(--muted); }

/* hero window mockup */
.hero-art { position: relative; }
.window {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #131419, #0e0f13);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
}
.hero-art:hover .window { transform: perspective(1600px) rotateY(-4deg) rotateX(1deg); }
.titlebar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.tb-dots { display: inline-flex; gap: 6px; }
.tb-dots i { width: 11px; height: 11px; border-radius: 999px; display: block; }
.tb-dots .r { background: #ff5f57; } .tb-dots .y { background: #febc2e; } .tb-dots .g { background: #28c840; }
.tb-title { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.win-body { display: grid; grid-template-columns: 64px 1fr; height: 360px; }
.win-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; border-right: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.win-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-grad); color: #052012; font-weight: 850; font-size: 12px; }
.win-nav { width: 30px; height: 30px; border-radius: 9px; background: #1b1e24; }
.win-nav.active { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.win-nav.foot { margin-top: auto; }

.win-main { padding: 16px; overflow: hidden; }
.win-hero-card {
  height: 150px; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(120deg, #1d2230, #14161c), radial-gradient(circle at 80% 20%, rgba(66,214,124,0.25), transparent 50%);
  border: 1px solid var(--line-2);
  display: flex; align-items: flex-end; padding: 16px;
  background-blend-mode: screen;
}
.win-hero-text { display: grid; gap: 9px; width: 100%; }
.win-line { height: 10px; border-radius: 6px; background: #2a2f38; }
.win-line.w60 { width: 60%; } .win-line.w40 { width: 38%; }
.win-play { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 4px; padding: 8px 16px; border-radius: 9px; background: var(--accent-grad); color: #052012; font-size: 13px; font-weight: 750; width: fit-content; }
.win-play-dot { width: 0; height: 0; border-left: 8px solid #052012; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.win-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.win-tile { aspect-ratio: 1 / 0.82; border-radius: 11px; background: #1a1d23; border: 1px solid var(--line); background-size: cover; background-position: center; }

/* ============ Sections ============ */
.section { position: relative; z-index: 1; padding: 76px 0; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015), transparent); }
.head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.eyebrow { color: var(--accent); font-size: 12.5px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
.head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.025em; font-weight: 800; }
.sub { color: var(--muted); font-size: 16.5px; margin-top: 12px; }

.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }

/* feature card */
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--card-hover); }
.feature-ic {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  margin-bottom: 18px;
}
.feature-ic svg { width: 23px; height: 23px; stroke: var(--accent); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ============ Modpacks ============ */
.modpacks { grid-template-columns: repeat(4, 1fr); }
.mp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
  display: flex; flex-direction: column;
  min-height: 240px;
}
.mp-card:not(.skeleton):hover { transform: translateY(-4px); border-color: var(--accent-line); }
.mp-banner { aspect-ratio: 16 / 9; background: #1a1d23 center / cover no-repeat; position: relative; }
.mp-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,12,14,0.55)); }
.mp-body { padding: 14px 16px 18px; display: grid; gap: 8px; }
.mp-top { display: flex; align-items: center; gap: 11px; margin-top: -34px; position: relative; z-index: 1; }
.mp-icon { width: 46px; height: 46px; border-radius: 11px; border: 2px solid var(--card); background: #20242b center / cover no-repeat; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.mp-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: #1d2129; color: var(--muted); border: 1px solid var(--line); }
.badge.accent { background: var(--accent-soft); color: #bff3d2; border-color: var(--accent-line); }
.mp-desc { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.skeleton { position: relative; overflow: hidden; background: var(--card); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.04) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.mp-note { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 20px; }

/* ============ Steps ============ */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-grad); color: #052012; font-weight: 850; margin-bottom: 16px; }
.step h3 { font-size: 16px; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: 14px; }

/* ============ Requirements ============ */
.reqs { grid-template-columns: repeat(3, 1fr); }
.req { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; display: grid; gap: 5px; }
.req-k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; }
.req-v { font-size: 14.5px; color: var(--text); }

/* ============ Download ============ */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.dl-card.primary { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(66,214,124,0.06), var(--card)); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.dl-card.soon { opacity: 0.82; }
.dl-card h3 { font-size: 18px; letter-spacing: -0.01em; }
.dl-os { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); font-weight: 600; }
.dl-os-icon { width: 18px; height: 18px; background: var(--muted); -webkit-mask: var(--win-mask) center / contain no-repeat; mask: var(--win-mask) center / contain no-repeat; }
.dl-os-icon.other { border-radius: 5px; background: var(--muted); -webkit-mask: none; mask: none; }
.dl-desc { color: var(--muted); font-size: 14px; flex: 1; }
.dl-meta { color: var(--muted-2); font-size: 12.5px; }
.dl-card .btn { margin-top: 6px; justify-content: center; }
.dl-hash { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: var(--muted-2); word-break: break-all; }
.dl-foot { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 26px; }
.dl-foot a { color: var(--accent); }

/* ============ FAQ ============ */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; color: var(--text); font: inherit; font-weight: 650; font-size: 15.5px; text-align: left; padding: 18px 20px; cursor: pointer; }
.faq-q:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent) inset; }
.faq-ic { flex-shrink: 0; width: 20px; height: 20px; position: relative; transition: transform 0.3s var(--ease); }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq-ic::before { top: 9px; left: 2px; right: 2px; height: 2px; }
.faq-ic::after { left: 9px; top: 2px; bottom: 2px; width: 2px; transition: transform 0.3s var(--ease); }
.faq-item.open .faq-ic::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.34s var(--ease); }
.faq-a p { color: var(--muted); font-size: 14.5px; padding: 0 20px 18px; }
.faq-a a { color: var(--accent); }

/* ============ CTA band ============ */
.cta-band { position: relative; z-index: 1; padding: 20px 0 80px; }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, #14241b, #101116 70%), radial-gradient(circle at 90% 20%, rgba(66,214,124,0.22), transparent 55%);
  background-blend-mode: screen;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: 38px 40px;
}
.cta-band-inner h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; }
.cta-band-inner p { color: var(--muted); margin-top: 6px; }

/* ============ Footer ============ */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; font-size: 14px; }
.footer-brand span { font-size: 12.5px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; color: var(--muted-2); font-size: 12.5px; line-height: 1.7; border-top: 1px solid var(--line); padding-top: 20px; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; max-width: 480px; }
  .window { transform: none; }
  .hero-art:hover .window { transform: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .modpacks { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reqs { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open .nav-links { display: flex; }
  .nav.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; margin-left: auto; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-download { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 24px; }
  .features, .modpacks, .steps, .reqs { grid-template-columns: 1fr; }
  .trust-row { gap: 22px; }
  .cta-row .btn { flex: 1; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
