/* MetinMac website (copy of NosTaleMac's). Flat slate surfaces, one accent (jade, from the dragon logo's crystal and the pagoda roofs, 01/12/2026), system type. */
:root {
  color-scheme: dark;
  --bg: #1a2025;
  --bg-deep: #12171b;
  --surface: #212930;
  --surface-2: #28323a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f3f4f6;
  --text-2: #c4c9d1;
  --text-3: #8b929c;
  --accent: #3fd6a6;
  --accent-strong: #17a47c;
  --accent-soft: rgba(63, 214, 166, 0.13);
  --accent-light: #b4f7df;
  --mint: #e8fbf5;
  --teal: #7fd9c8;
  --teal-glass: rgba(18, 58, 62, 0.45);
  --teal-edge: rgba(130, 230, 210, 0.32);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --container: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--text); text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(63, 214, 166, 0.3); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 25, 30, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo img { width: 30px; height: 30px; }
.logo span { font: 800 14px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.menu a { color: var(--text-2); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); }

.lang { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font: 600 12px/1 var(--font);
  letter-spacing: 0.04em;
  padding: 7px 10px;
  cursor: pointer;
}
.lang button + button { border-left: 1px solid var(--border-strong); }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font: 600 15px/1 var(--font);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary { background: linear-gradient(180deg, var(--accent-light), var(--accent) 55%, var(--accent-strong)); color: #03261c; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 26px -8px rgba(63, 214, 166, 0.65); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--teal-edge); background: var(--teal-glass); color: var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(30, 85, 88, 0.55); }
.btn-dark { background: #12151a; color: var(--text); min-width: 240px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-dark:hover { background: #0b0d10; }
.link-arrow { color: var(--text); font-weight: 600; font-size: 15px; }
.link-arrow:hover { color: var(--accent); }

/* ---------- Hero ---------- */
/* Warm NosTale glow behind the icon and from the bottom left, with a fine grain so the dark
   background does not read as a flat fill. */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 55% 75% at 78% 45%, rgba(245, 154, 27, 0.11), transparent 70%),
    radial-gradient(ellipse 70% 60% at 0% 115%, rgba(232, 121, 12, 0.07), transparent 70%),
    var(--bg-deep);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font: 800 clamp(38px, 5.6vw, 58px)/1.05 var(--display); letter-spacing: -0.025em; color: var(--text); margin: 0 0 18px; }
/* The brand name, larger: "NosTale" in the solid NosTale orange, "Mac" in white. */
.hero h1.brand-title { font-size: clamp(46px, 7vw, 76px); letter-spacing: -0.035em; }
.hero h1.brand-title span { color: var(--accent); }
.hero .tagline { font: 500 clamp(20px, 2.6vw, 26px)/1.35 var(--display); color: var(--text); margin: 0 0 10px; letter-spacing: -0.01em; }
.hero .sub { color: var(--text-3); margin: 0 0 20px; max-width: 470px; }
/* Selling points as a quiet line with orange check marks (no pills). */
.perks { list-style: none; display: flex; flex-wrap: nowrap; gap: 6px 22px; margin: 0 0 30px; padding: 0; }
.perks li { white-space: nowrap; }
.perks li { position: relative; padding-left: 20px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.perks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* Small line under "Download for Mac"; positioned so it does not widen the button row. */
.hero .actions { margin-bottom: 28px; }
.action-with-note { position: relative; display: inline-flex; }
.btn-note { position: absolute; top: 100%; left: 0; margin-top: 10px; white-space: nowrap; font-size: 13px; color: var(--text-3); }
.hero-art {
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 400px;
  aspect-ratio: 1;
}
/* Concentric rings and a warm glow behind the icon. */
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(245, 154, 27, 0.18) 0, transparent 46%),
    repeating-radial-gradient(circle, transparent 0 63px, rgba(255, 255, 255, 0.05) 63px 64px);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  mask-image: radial-gradient(circle, #000 35%, transparent 70%);
}
.hero-art img {
  position: relative;
  width: 230px;
  height: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Feature rows ---------- */
.feature { padding: 96px 0; }
.feature + .feature { padding-top: 32px; }
.feature .container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.feature.reverse .visual { order: 2; }
.feature h2 { font: 800 clamp(28px, 3.4vw, 36px)/1.15 var(--display); letter-spacing: -0.02em; color: var(--text); margin: 0 0 18px; }
.feature p { margin: 0 0 16px; }
.feature ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.feature li { position: relative; padding-left: 28px; margin: 10px 0; }
.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%233fd6a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Visual frame: dot grid on one corner, offset slab behind. */
.visual { position: relative; }
.visual::before {
  content: "";
  position: absolute;
  top: -36px;
  left: -36px;
  width: 180px;
  height: 180px;
  background-image: radial-gradient(rgba(127, 217, 200, 0.22) 1.4px, transparent 1.6px);
  background-size: 16px 16px;
  z-index: 0;
}
.visual::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 75%;
  height: 80%;
  border-radius: 24px;
  background: var(--surface);
  z-index: 0;
}
.feature.reverse .visual::before { left: auto; right: -36px; }
.feature.reverse .visual::after { right: auto; left: -40px; }
.visual > * { position: relative; z-index: 1; }

/* Launcher mock-up, drawn in CSS */
.mac-window {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #b84a12, #d9712a 55%, #efa052);
}
.mac-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: rgba(0, 0, 0, 0.18); }
.mac-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mac-bar i:nth-child(2) { background: #febc2e; }
.mac-bar i:nth-child(3) { background: #28c840; }
.mac-body { padding: 28px 40px 34px; }
/* The app's own wordmark, rendered from Theme.swift by tools/render-wordmark.swift. */
.mock-title { display: flex; justify-content: center; margin: -14px 0 4px; }
.mock-title img { width: 250px; height: auto; }
.mock-card {
  border-radius: 12px;
  background: rgba(32, 21, 15, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  padding: 14px 18px 18px;
}
.mock-card h4 { margin: 0 0 12px; font: 600 13px/1 var(--font); color: #eef1f3; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mock-label { font: 600 9.5px/1 var(--font); color: #b4b8bd; margin: 10px 0 5px; }
.mock-field { height: 26px; border-radius: 6px; background: rgba(0, 0, 0, 0.26); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); display: flex; align-items: center; padding: 0 9px; font-size: 11px; color: #8b929c; gap: 7px; }
.mock-field.focus { box-shadow: inset 0 0 0 1px #5aa9f7, 0 0 0 3px rgba(58, 140, 242, 0.25); }
.mock-field svg { width: 11px; height: 11px; flex: none; }
.mock-btn { margin: 16px auto 0; width: 96px; height: 26px; border-radius: 7px; display: grid; place-items: center; font: 600 10.5px/1 var(--font); color: #fff; text-shadow: 0 0.5px 0 rgba(23, 62, 120, 0.5); background: linear-gradient(180deg, #5aa9f7, #2f7ae0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 3px 9px rgba(58, 140, 242, 0.4); }

/* Graphics test card */
.panel-card {
  border-radius: 14px;
  background: var(--bg-deep);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-strong);
  padding: 22px 24px 18px;
}
.panel-card .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.panel-card .head b { color: var(--text); font-size: 15px; }
.panel-card .head span { font-size: 12px; color: var(--text-3); }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.bar-row .name { color: var(--text-2); }
.bar-row .fps { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-row .track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: 3px; background: var(--text-3); }
.bar-row.best .track i { background: var(--accent); }
.bar-row.best .name::after { content: attr(data-badge); margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 99px; }
.panel-card .foot { font-size: 12px; color: var(--text-3); margin-top: 8px; }

/* Compatibility grid (like a logo wall) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-radius: 4px; overflow: hidden; gap: 1px; box-shadow: 0 0 0 1px var(--border); }
.tile { background: var(--bg); display: grid; place-items: center; height: 94px; }
.tile:nth-child(odd) { background: #21262d; }
.chip {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(145deg, #3a414c, #22272e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 14px rgba(0, 0, 0, 0.3);
  font: 700 15px/1 var(--display);
  color: var(--text);
  position: relative;
}
.chip::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; bottom: 7px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.08); }
.chip small { position: absolute; top: 10px; font: 600 7px/1 var(--font); color: var(--text-3); letter-spacing: 0.08em; }
.chip b { margin-top: 6px; }
.tile .pill { font: 600 14px/1 var(--font); color: var(--text-2); border: 1px solid var(--border-strong); border-radius: 99px; padding: 9px 16px; }

/* ---------- Two steps ---------- */
.steps { padding: 88px 0 24px; }
.section-title { font: 800 clamp(28px, 3.4vw, 36px)/1.15 var(--display); letter-spacing: -0.02em; color: var(--text); text-align: center; margin: 0 0 40px; }
.step-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 32px 28px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}
.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font: 800 18px/1 var(--display);
  color: #1a1205;
  background: var(--accent);
  margin-bottom: 20px;
}
.step h3 { font: 700 22px/1.25 var(--display); letter-spacing: -0.01em; color: var(--text); margin: 0 0 10px; }
.step p { margin: 0 0 24px; flex: 1; }
.step-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.step-note { font-size: 13.5px; color: var(--text-3); }

/* ---------- Call to action ---------- */
.cta { padding: 64px 0 104px; }
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10,22,26,.55), rgba(10,18,22,.82)), url("/metin2/assets/hero/fond-1600.jpg") center 30%/cover;
  box-shadow: 0 0 0 1px var(--teal-edge), 0 25px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
  padding: 64px 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}
.cta-card::before, .cta-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.cta-card::before { background: radial-gradient(60% 80% at 50% 0%, rgba(63, 214, 166, 0.18), transparent 70%); }
.cta-card::after { display: none; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font: 800 clamp(28px, 3.6vw, 38px)/1.15 var(--display); letter-spacing: -0.02em; color: #fff; margin: 0 0 14px; }
.cta-card p { color: rgba(255, 255, 255, 0.92); margin: 0 auto 10px; max-width: 560px; }
.cta-card .fine { font-size: 13.5px; color: rgba(255, 255, 255, 0.65); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 44px 0 40px; text-align: center; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 28px; }
.site-footer nav a { color: var(--text-3); font-size: 14.5px; }
.site-footer nav a:hover { color: var(--text); }
.site-footer p { margin: 4px 0; font-size: 13.5px; color: var(--text-3); }

/* ---------- Legal pages ---------- */
.legal { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; padding-top: 64px; padding-bottom: 96px; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc-title { font: 600 12px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 8px 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: 5px 0; color: var(--text-3); font-size: 13.5px; line-height: 1.4; }
.toc li a:hover { color: var(--text); }
.toc li a.active { color: var(--accent); }
.doc { max-width: 720px; }
.kicker { font: 600 13px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.doc h1 { font: 800 clamp(32px, 4.6vw, 44px)/1.1 var(--display); letter-spacing: -0.025em; color: var(--text); margin: 12px 0 10px; }
.meta { color: var(--text-3); font-size: 14px; margin: 0 0 40px; }
.doc h2 { display: flex; gap: 12px; align-items: baseline; font: 700 20px/1.3 var(--display); letter-spacing: -0.01em; color: var(--text); margin: 48px 0 12px; }
.doc h2 .n { font: 600 14px/1 var(--mono); color: var(--accent); }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc strong { color: var(--text); font-weight: 600; }
.doc em { color: var(--text-3); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent); }
.doc a:hover { text-decoration: underline; }
.box { margin: 20px 0; padding: 16px 20px; border-radius: 8px; background: var(--surface); border-left: 3px solid var(--accent); }
.box.warn { border-left-color: #ef6a3a; }
.box p, p.box { margin: 20px 0; }
.todo { color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 1px 6px; font-size: 0.92em; white-space: nowrap; }
body[data-lang="en"] [data-lang-section="fr"],
body[data-lang="fr"] [data-lang-section="en"] { display: none; }
.doc section + section { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--border); }
body[data-lang] .doc section + section { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Download page ---------- */
.dl-hero { padding: 72px 0 40px; text-align: center; }
.dl-hero img { width: 96px; height: 96px; margin: 0 auto 20px; }
.dl-hero h1 { font: 800 clamp(34px, 5vw, 48px)/1.1 var(--display); letter-spacing: -0.025em; color: var(--text); margin: 0 0 32px; }
.dl-hero p { margin: 0 auto 28px; max-width: 520px; }
.dl-hero .meta { margin: 14px 0 0; font-size: 13.5px; color: var(--text-3); }
.dl-video { margin: 0 0 20px; }
.dl-video video { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1040; border-radius: 14px;
  background: #000; box-shadow: 0 0 0 1px var(--border), 0 18px 50px rgba(0, 0, 0, 0.45); }
.dl-hero .dl-req { margin: 14px auto 0; font-size: 13.5px; color: var(--text-3); }
.btn.btn-primary[aria-disabled="true"] { background: var(--surface-2); color: var(--text-3); pointer-events: none; }
.guide { max-width: 720px; margin: 0 auto; padding: 24px 0 96px; }
.guide h2 { font: 800 26px/1.2 var(--display); letter-spacing: -0.02em; color: var(--text); margin: 0 0 24px; }
.guide ol { list-style: none; padding: 0; margin: 0; counter-reset: g; }
.guide li { counter-increment: g; position: relative; padding: 22px 24px 22px 76px; margin-bottom: 12px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.guide li::before { content: counter(g); position: absolute; left: 24px; top: 22px; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font: 800 15px/1 var(--display); color: var(--accent); background: var(--accent-soft); }
.guide li h3 { margin: 0 0 4px; font: 700 17px/1.4 var(--display); color: var(--text); }
.guide li p { margin: 0; }
.guide li p + p { margin-top: 8px; }
.guide .path { color: var(--text); font-weight: 600; }
.guide .help { margin-top: 28px; text-align: center; color: var(--text-3); }
.guide .help a { color: var(--accent); }

/* ---------- Single-card pages (payment, download) ---------- */
.single { padding: 96px 24px 120px; }
.card {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border), 0 25px 50px rgba(0, 0, 0, 0.25);
}
.card h1 { font: 800 32px/1.15 var(--display); letter-spacing: -0.02em; color: var(--text); margin: 12px 0 12px; }
.card p { margin: 0 0 14px; }
.card .muted { color: var(--text-3); font-size: 14.5px; }
.card ol { list-style: none; padding: 0; margin: 28px 0; counter-reset: step; }
.card ol li { counter-increment: step; position: relative; padding: 2px 0 14px 40px; }
.card ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--font); color: var(--accent); background: var(--accent-soft); }
.card .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.key {
  margin: 16px 0 10px;
  padding: 16px;
  border-radius: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  text-align: center;
  font: 600 clamp(15px, 3.4vw, 20px)/1.3 var(--mono);
  letter-spacing: 0.05em;
  color: var(--text);
  user-select: all;
  overflow-wrap: anywhere;
}
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* ---------- FAQ ---------- */
.faq { padding: 72px 0 8px; }
.faq-page { padding-top: 0; }
.faq-page .faq-group:first-of-type { margin-top: 8px; }
.faq-help { text-align: center; color: var(--text-3); margin: 40px auto 96px; }
.faq-help a { color: var(--accent); }
.faq .container { max-width: 820px; }
.faq-group { font: 700 13px/1.4 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 36px 0 12px; }
.faq-list { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq-list details + details { border-top: 1px solid var(--border); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; position: relative; font-weight: 600; color: var(--text); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--text-3); transition: transform 0.2s ease; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--accent); }
.faq-list summary:hover { background: var(--surface-2); }
.faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-list details p { margin: 0; padding: 0 22px 20px; color: var(--text-2); line-height: 1.6; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container, .feature .container { grid-template-columns: 1fr; gap: 56px; }
  .hero .container { padding-top: 56px; padding-bottom: 64px; }
  .hero-art { width: 260px; order: -1; justify-self: start; margin: -40px 0 -40px -40px; }
  .hero-art img { width: 140px; }
  .feature { padding: 64px 0; }
  .step-grid { grid-template-columns: 1fr; }
  .steps { padding-top: 64px; }
  .feature.reverse .visual { order: 0; }
  .visual::before, .visual::after { display: none; }
  .legal { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  /* Side gutters only: the shorthand also zeroed the top padding of .legal and .dl-hero.container. */
  .container { padding-left: 16px; padding-right: 16px; }
  .menu { gap: 16px; }
  .menu .hide-sm { display: none; }
  .logo span { display: none; }
  .mac-body { padding: 22px 18px 26px; }
  .cta-card { padding: 44px 20px; }
  .card { padding: 28px 20px; }
  .guide li { padding: 18px 16px 18px 60px; }
  .guide li::before { left: 16px; top: 18px; width: 28px; height: 28px; }
  .step { padding: 26px 22px 22px; }
  .single { padding: 48px 16px 80px; }
  .todo { white-space: normal; }
  /* The buttons stack here: the trial line sits under its button in the flow. */
  .hero .actions { margin-bottom: 0; }
  .perks { flex-wrap: wrap; }
  .action-with-note { flex-direction: column; align-items: flex-start; }
  .btn-note { position: static; margin-top: 10px; white-space: normal; }
}

/* ---------- Refonte « forêt » (maquette) ---------- */
.hero.hero-scene { background: var(--bg); border-bottom: 0; min-height: min(90vh, 860px); display: flex; align-items: flex-start; margin-top: -65px; padding-top: 65px; isolation: isolate; }
.hero.hero-scene::after { opacity: 0.035; z-index: 1; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 48% at 50% 34%, rgba(8, 14, 20, 0.6), rgba(8, 14, 20, 0) 72%),
    linear-gradient(180deg, rgba(8, 14, 22, 0.55) 0%, rgba(8, 14, 22, 0) 26%, rgba(8, 14, 22, 0) 60%, rgba(26, 32, 37, 0.88) 90%, var(--bg) 100%),
    image-set(url("/metin2/assets/hero/fond-2880.jpg") 2x, url("/metin2/assets/hero/fond-1600.jpg") 1x) center 55% / cover no-repeat;
  animation: heroZoom 26s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.05); } }
.hero.hero-scene .container { display: block; text-align: center; padding-top: 11vh; padding-bottom: 120px; max-width: 820px; animation: heroIn 0.9s ease-out both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } }
.hero.hero-scene h1.brand-title { font-size: clamp(52px, 7.6vw, 100px); line-height: 0.95; color: var(--mint); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55); margin-bottom: 16px; }
.hero.hero-scene h1.brand-title span { color: var(--accent); text-shadow: 0 0 34px rgba(70, 225, 175, 0.55), 0 4px 22px rgba(0, 0, 0, 0.55); }
.hero.hero-scene .tagline { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7); }
.hero.hero-scene .sub { color: #dde6e6; margin: 0 auto 20px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85); }
.hero.hero-scene .perks { justify-content: center; }
.hero.hero-scene .perks li { color: #eef3f2; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85); }
.hero.hero-scene .actions { justify-content: center; margin-bottom: 0; }
.hero.hero-scene .btn { height: 48px; padding: 0 24px; border-radius: 10px; }
.hero.hero-scene .btn-note { position: static; margin: 14px 0 0; color: rgba(255, 255, 255, 0.72); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); white-space: normal; }
.site-header { background: rgba(14, 20, 24, 0.55); }
/* Lucioles dorées qui montent doucement */
.fireflies { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* MetinMac : pétales de cerisier qui tombent en tournoyant (à la place des lucioles de NosTaleMac, Claire 01/12/2026) */
.fireflies i { position: absolute; top: -24px; width: 11px; height: 14px; border-radius: 80% 0 80% 0; background: linear-gradient(160deg, #ffe3ec 10%, #f9a8c2 70%, #ef8fb0); box-shadow: 0 0 6px rgba(255, 190, 215, 0.45); opacity: 0; animation: petal linear infinite; }
.fireflies i:nth-child(1) { left: 6%; animation-duration: 13s; }
.fireflies i:nth-child(2) { left: 15%; animation-duration: 17s; animation-delay: -6s; transform: scale(0.8); }
.fireflies i:nth-child(3) { left: 26%; animation-duration: 14s; animation-delay: -11s; }
.fireflies i:nth-child(4) { left: 37%; animation-duration: 19s; animation-delay: -3s; width: 9px; height: 12px; }
.fireflies i:nth-child(5) { left: 49%; animation-duration: 15s; animation-delay: -9s; }
.fireflies i:nth-child(6) { left: 60%; animation-duration: 18s; animation-delay: -14s; width: 9px; height: 12px; }
.fireflies i:nth-child(7) { left: 70%; animation-duration: 12s; animation-delay: -5s; }
.fireflies i:nth-child(8) { left: 79%; animation-duration: 16s; animation-delay: -8s; width: 13px; height: 16px; }
.fireflies i:nth-child(9) { left: 88%; animation-duration: 14s; animation-delay: -12s; }
.fireflies i:nth-child(10) { left: 95%; animation-duration: 20s; animation-delay: -2s; width: 9px; height: 12px; }
@keyframes petal {
  0% { transform: translate(0, 0) rotate(0deg) rotateY(0deg); opacity: 0; }
  8% { opacity: 0.95; }
  25% { transform: translate(28px, 26vh) rotate(110deg) rotateY(160deg); }
  50% { transform: translate(-10px, 52vh) rotate(220deg) rotateY(320deg); }
  75% { transform: translate(34px, 78vh) rotate(330deg) rotateY(480deg); }
  90% { opacity: 0.85; }
  100% { transform: translate(60px, 104vh) rotate(430deg) rotateY(640deg); opacity: 0; }
}
/* Sections : léger halo turquoise pour prolonger l'ambiance de la forêt */
.steps { background: radial-gradient(60% 50% at 50% 0%, rgba(127, 217, 200, 0.06), transparent 70%); }
.step { box-shadow: 0 0 0 1px var(--border), 0 20px 40px -20px rgba(0, 0, 0, 0.5); }
.step-n { background: linear-gradient(180deg, var(--accent-light), var(--accent)); color: #03261c; }
.feature.reverse { background: radial-gradient(50% 60% at 85% 50%, rgba(127, 217, 200, 0.05), transparent 70%); }
.cta-card h2 { color: var(--mint); }
.cta-card h2::first-letter { color: inherit; }
@media (max-width: 640px) {
  .hero.hero-scene .container { padding-top: 7vh; }
  .hero-bg { background-position: center, center, 24% 60%; }
  .hero.hero-scene .actions { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
}

/* ---------- Transition douce : la forêt continue sous toute la page ---------- */
html { background: var(--bg-deep); }
body { background: transparent; }
/* Copie floue et sombre de la forêt, fixe derrière toute la page */
body::before { content: ""; position: fixed; inset: -80px; z-index: -3;
  background: url("/metin2/assets/hero/fond-900.jpg") center 40% / cover no-repeat;
  filter: blur(46px) saturate(1.25) brightness(0.55); opacity: 0.5; }
/* Voile : plus sombre au centre de lecture, la couleur reste visible sur les bords */
body::after { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 50%, rgba(14, 19, 23, 0.72), rgba(14, 19, 23, 0.38) 100%); }
/* L'image du haut se dissout progressivement au lieu de s'arrêter sur une ligne */
.hero-bg { background:
    radial-gradient(58% 48% at 50% 34%, rgba(8, 14, 20, 0.6), rgba(8, 14, 20, 0) 72%),
    linear-gradient(180deg, rgba(8, 14, 22, 0.55) 0%, rgba(8, 14, 22, 0) 26%),
    image-set(url("/metin2/assets/hero/fond-2880.jpg") 2x, url("/metin2/assets/hero/fond-1600.jpg") 1x) center 55% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0,0,0,.55) 75%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0,0,0,.55) 75%, transparent 100%); }
.hero.hero-scene { background: transparent; }
.hero.hero-scene::after { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
/* Brume qui déborde du haut de page sur la section suivante */
.steps { position: relative; background: none; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: -140px; height: 280px; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 50% at 30% 50%, rgba(127, 217, 200, 0.10), transparent 70%), radial-gradient(45% 50% at 72% 55%, rgba(63, 214, 166, 0.07), transparent 70%); filter: blur(10px); }
/* Cartes en verre teinté pour laisser passer l'ambiance */
.step, .faq-list, .guide li, .card { background: rgba(30, 38, 45, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.panel-card { background: rgba(16, 21, 25, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.visual::after { background: rgba(33, 41, 48, 0.55); }
.tile { background: rgba(26, 32, 37, 0.8); } .tile:nth-child(odd) { background: rgba(33, 39, 45, 0.8); }
.feature.reverse { background: none; }
.site-footer { background: rgba(10, 14, 17, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
/* Quelques lucioles discrètes sur toute la page */
.fireflies.page { position: fixed; z-index: -1; opacity: 0.8; }

/* ---------- Image fixe en fond (façon NosBreak) : seul le contenu défile ---------- */
body::before { inset: 0; filter: saturate(1.3) contrast(1.05); opacity: 1;
  background: image-set(url("/metin2/assets/hero/fond-2880.jpg") 2x, url("/metin2/assets/hero/fond-1600.jpg") 1x) center 55% / cover no-repeat; }
/* Voile qui s'assombrit en défilant (réglé par site.js via --veil) */
body::after { background:
  linear-gradient(180deg, rgba(8, 14, 22, 0.5) 0%, rgba(8, 14, 22, 0) 26%),
  linear-gradient(rgba(10, 14, 20, 0.1), rgba(10, 14, 20, 0.1)),
  rgba(12, 17, 21, var(--veil, 0)); transition: background-color 0.1s linear; }
/* MetinMac : fond aux pagodes plus clair que la forêt de NosTaleMac, léger voile en plus derrière le titre */
.hero-bg { background: radial-gradient(54% 44% at 50% 36%, rgba(8, 14, 20, 0.58), rgba(8, 14, 20, 0) 74%); -webkit-mask-image: none; mask-image: none; animation: none; }
.steps::before { display: none; }
@media (max-width: 640px) { body::before { background-position: 24% 60%; } }
/* Bandeau final sans cadre : le texte repose directement sur la forêt */
.cta-card { background: none; box-shadow: none; border-radius: 0; padding: 40px 0 24px; overflow: visible; }
.cta-card::before { inset: -40px -20%; background: radial-gradient(50% 60% at 50% 50%, rgba(63, 214, 166, 0.10), transparent 70%); }
.cta-card h2 { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.cta-card p { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }
/* Cartes en verre givré clair plutôt qu'en aplats sombres */
.step, .faq-list, .guide li, .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 40px -24px rgba(0, 0, 0, 0.6); }
.step p, .step-note { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.panel-card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.visual::after { display: none; }
.tiles { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.tile, .tile:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.tile:nth-child(odd) { background: rgba(255, 255, 255, 0.045); }

/* ---------- Autres pages sur la forêt ---------- */
.dl-hero h1, .doc h1, .card h1 { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55); }
.dl-hero p, .dl-hero .dl-req, .faq-help, .guide .help, .meta { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.dl-hero img { filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(63, 214, 166, 0.25)); }
.dl-video video { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.55); }
.guide li::before, .card ol li::before { background: linear-gradient(180deg, var(--accent-light), var(--accent)); color: #03261c; }
.box, .key { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.faq-list summary:hover { background: rgba(255, 255, 255, 0.05); }
.faq-list details + details { border-top-color: rgba(255, 255, 255, 0.08); }
.toc { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.btn.btn-primary[aria-disabled="true"] { background: rgba(255, 255, 255, 0.08); filter: none; box-shadow: none; }
/* ---------- Lisibilité FAQ / Téléchargement ---------- */
/* Verre plus sombre pour les listes de texte long */
.faq-list, .guide li { background: linear-gradient(180deg, rgba(14, 20, 25, 0.72), rgba(14, 20, 25, 0.62)); }
.faq-list details p, .guide li p { color: #e3e8ec; }
.faq-list summary, .guide li h3 { color: #fff; }
.guide .path { color: #fff; }
/* Titres de groupes de la FAQ : plus clairs et plus marqués */
.faq-group { color: var(--accent-light); font-size: 14px; letter-spacing: 0.1em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 16px rgba(0, 0, 0, 0.8); margin-top: 44px; }
/* Petits textes posés directement sur la forêt */
.faq-help, .guide .help, .dl-hero .dl-req, .dl-hero .meta, .btn-note, .step-note {
  color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 18px rgba(0, 0, 0, 0.85); }
.faq-help a, .guide .help a { color: var(--accent-light); font-weight: 600; }
.dl-hero p, .dl-hero .sub { color: #eef2f4; }
/* Numéros du guide : sans fond, chiffre jade dans un fin cercle */
.guide li::before { background: rgba(63, 214, 166, 0.08); color: var(--accent-light); border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(120, 235, 195, 0.6); font-weight: 700; }
/* Voile par défaut (sans attendre le script) et sans transition au chargement */
:root { --veil: 0.36; }
:root:has(.hero-scene) { --veil: 0.04; }
:root:has(.legal) { --veil: 0.64; }
body::after { transition: none; }
/* Textes des sections de l'accueil sur un panneau de verre sombre, comme la FAQ */
.feature .container > div:not(.visual) {
  padding: 32px 34px 18px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 20, 25, 0.72), rgba(14, 20, 25, 0.62));
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 40px -24px rgba(0, 0, 0, 0.6); }
.feature p, .feature li { color: #e3e8ec; }
.feature h2 { color: #fff; }
/* Carte du test graphique : même verre sombre, lisible quel que soit le fond */
.panel-card { background: linear-gradient(180deg, rgba(14, 20, 25, 0.8), rgba(14, 20, 25, 0.72)); }
.bar-row .name { color: #e3e8ec; }
.bar-row .track { background: rgba(255, 255, 255, 0.12); }
.bar-row .track i { background: #aab3bd; }
.bar-row.best .track i { background: var(--accent); }
.panel-card .foot { color: #b9c1c9; }
@media (max-width: 640px) { .feature .container > div:not(.visual) { padding: 24px 20px 10px; } }
/* Verre sombre adouci : gris-bleu teinté plutôt que presque noir */
.feature .container > div:not(.visual), .faq-list, .guide li {
  background: linear-gradient(180deg, rgba(36, 48, 56, 0.66), rgba(30, 41, 48, 0.58)); }
.panel-card { background: linear-gradient(180deg, rgba(36, 48, 56, 0.72), rgba(30, 41, 48, 0.64)); }
/* Logo « lanterne » détourée : en-tête et page Téléchargement */
.logo img { width: auto; height: 36px; filter: drop-shadow(0 0 8px rgba(63, 214, 166, 0.35)); }
.dl-hero img.dl-lantern { width: auto; height: 170px; margin: 0 auto 18px; filter: drop-shadow(0 0 34px rgba(63, 214, 166, 0.4)) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5)); animation: float 6s ease-in-out infinite; }
@media (max-width: 640px) { .dl-hero img.dl-lantern { height: 130px; } }
/* Capture du vrai launcher (1.0) à la place de l'ancienne maquette dessinée en CSS */
.launcher-shot { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px rgba(0, 0, 0, 0.55); background: #0d1417; }
.launcher-shot img { display: block; width: 100%; height: auto; }
/* macOS traffic lights at their real place and size (12 pt, 8 pt apart, from x 20 in a 1200 × 750 window) */
.launcher-shot .lights { position: absolute; left: 1.67%; top: 2.67%; display: flex; gap: 2.22%; width: 30%; z-index: 1; }
.launcher-shot .lights i { width: 3.33%; aspect-ratio: 1; border-radius: 50%; background: #ff5f57; flex: none; }
.launcher-shot .lights i:nth-child(2) { background: #febc2e; }
.launcher-shot .lights i:nth-child(3) { background: #28c840; }
body:not([data-lang]) .launcher-shot img[data-lang-section="fr"] { display: none; }
/* MetinMac (fond clair et vif) : petits textes du haut ombrés, cartes un peu plus sombres pour rester lisibles */
.hero.hero-scene .sub, .hero.hero-scene .perks li, .hero.hero-scene .btn-note { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.65); }
.step, .faq-list, .guide li, .card { background: rgba(20, 26, 32, 0.84); }
.faq-group, .dl-hero p, .faq-page + .faq-help { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.6); }
