/* Altar Launcher — thème sombre, accents type “bloc” */
:root {
  --bg-deep: #0c0f0d;
  --bg-panel: #121816;
  --bg-elevated: #1a211c;
  --border: #2a3530;
  --text: #e8f0eb;
  --text-muted: #8fa396;
  --accent: #5ecf7a;
  --accent-dim: #3d9a55;
  --accent-glow: rgba(94, 207, 122, 0.35);
  --danger: #e07a6a;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-deep);
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg-deep) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--accent) 100%);
  box-shadow: 0 0 0 2px var(--border), 0 8px 24px var(--accent-glow);
  position: relative;
}

.logo__icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--bg-deep) 0,
    var(--bg-deep) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.35;
  border-radius: 2px;
}

.nav {
  display: none;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #061208;
  border-color: color-mix(in srgb, var(--accent) 60%, black);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
}

.btn--block {
  width: 100%;
}

.header__cta {
  flex-shrink: 0;
}

.hero {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
  overflow: hidden;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero__accent {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__stats strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.hero__panel {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mock-window {
  width: min(100%, 380px);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
}

.mock-window__bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.mock-window__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mock-window__bar span:first-child {
  background: #c45c4a;
}

.mock-window__bar span:nth-child(2) {
  background: #c9a227;
}

.mock-window__bar span:nth-child(3) {
  background: var(--accent-dim);
}

.mock-window__body {
  padding: 1.75rem;
}

.mock-line {
  height: 10px;
  border-radius: 4px;
  background: var(--bg-elevated);
  margin-bottom: 12px;
}

.mock-line--title {
  width: 55%;
  height: 14px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  opacity: 0.5;
}

.mock-line--short {
  width: 40%;
}

.mock-btn {
  margin-top: 1.5rem;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  opacity: 0.85;
}

.section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section__subtitle {
  margin: 0 0 2.5rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.section--features {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-panel) 50%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.65rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  position: relative;
}

.card__icon--versions::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  border-radius: 3px;
  box-shadow: 0 0 12px var(--accent-glow);
}

.card__icon--profiles::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 12px;
  bottom: 12px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  opacity: 0.85;
}

.card__icon--server::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 6px 6px 0 var(--accent-dim);
}

.card__icon--update::after {
  content: "↻";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
}

.section--download {
  background: var(--bg-panel);
}

.download {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .download {
    grid-template-columns: 1fr 320px;
    align-items: center;
  }
}

.download__list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.download__box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.download__version {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.download__version span {
  color: var(--text-muted);
  font-weight: 400;
}

.download__hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.download__hint code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-panel);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.section--faq .faq {
  max-width: 720px;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq__item summary {
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  background: var(--bg-deep);
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__brand {
  margin: 0;
  font-weight: 700;
}

.site-footer__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1 1 100%;
}

@media (min-width: 640px) {
  .site-footer__note {
    flex: 1 1 auto;
    order: 3;
    width: 100%;
  }
}

.site-footer__links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .site-footer__links {
    justify-content: flex-end;
  }
}

.site-footer__links a {
  font-weight: 500;
  font-size: 0.9rem;
}
