/* ==========================================================================
   PixelSupport — design tokens
   ========================================================================== */

:root {
  /* Color */
  --bg: #0a0d14;
  --surface: #10141f;
  --surface-2: #171c2b;
  --border: #232a3d;
  --text: #e7ecf6;
  --text-muted: #8891a6;
  --blue: #4fa8ff;
  --blue-dim: #2c6fc4;
  --amber: #ffc24d;
  --green: #45d483;
  --red: #ff5c72;

  /* Type */
  --font-display: "Silkscreen", monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --page-max: 1120px;
  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--amber);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 194, 77, 0.15);
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-login:hover { color: var(--text); }
.nav-login.active { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: #04101f !important;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 168, 255, 0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.32;
  margin: 18px 0 20px;
  letter-spacing: 0.01em;
}

.hero-copy h1 .accent { color: var(--blue); }

.hero-copy p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 46ch;
  margin: 0 0 30px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(69, 212, 131, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(69, 212, 131, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(69, 212, 131, 0); }
  100% { box-shadow: 0 0 0 0 rgba(69, 212, 131, 0); }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #04101f;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 168, 255, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Terminal — signature element */

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4257;
}
.terminal-bar .t-label {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
}

.terminal-body {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.9;
  padding: 20px;
  min-height: 220px;
}

.terminal-body .line { white-space: pre-wrap; word-break: break-word; }
.terminal-body .prompt { color: var(--amber); }
.terminal-body .cmd { color: var(--text); }
.terminal-body .ok { color: var(--green); }
.terminal-body .muted { color: var(--text-muted); }
.terminal-body .cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--blue);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   Sections generic
   ========================================================================== */

section { padding: 84px 0; }

.section-head {
  max-width: 60ch;
  margin-bottom: 46px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 14px 0 12px;
  line-height: 1.35;
}

.section-head p {
  color: var(--text-muted);
  font-size: 15.5px;
  margin: 0;
}

/* Features */

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  border-color: var(--blue-dim);
  transform: translateY(-2px);
}

.feature-icon {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 16px;
}

.feature-icon span { background: var(--surface-2); }
.feature-icon.c1 span:nth-child(1),
.feature-icon.c1 span:nth-child(5),
.feature-icon.c1 span:nth-child(9),
.feature-icon.c1 span:nth-child(3),
.feature-icon.c1 span:nth-child(7) { background: var(--blue); }

.feature-icon.c2 span:nth-child(2),
.feature-icon.c2 span:nth-child(4),
.feature-icon.c2 span:nth-child(5),
.feature-icon.c2 span:nth-child(6),
.feature-icon.c2 span:nth-child(8) { background: var(--amber); }

.feature-icon.c3 span:nth-child(1),
.feature-icon.c3 span:nth-child(2),
.feature-icon.c3 span:nth-child(3),
.feature-icon.c3 span:nth-child(5),
.feature-icon.c3 span:nth-child(9) { background: var(--green); }

.feature-icon.c4 span:nth-child(4),
.feature-icon.c4 span:nth-child(5),
.feature-icon.c4 span:nth-child(6),
.feature-icon.c4 span:nth-child(2),
.feature-icon.c4 span:nth-child(8) { background: var(--red); }

.feature-icon.c5 span:nth-child(1),
.feature-icon.c5 span:nth-child(2),
.feature-icon.c5 span:nth-child(4),
.feature-icon.c5 span:nth-child(5),
.feature-icon.c5 span:nth-child(6) { background: var(--blue); }

.feature-icon.c6 span:nth-child(2),
.feature-icon.c6 span:nth-child(5),
.feature-icon.c6 span:nth-child(8),
.feature-icon.c6 span:nth-child(4),
.feature-icon.c6 span:nth-child(6) { background: var(--amber); }

.feature-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* Commands */

.commands {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cmd-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cmd-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--border);
}
.cmd-row:last-child { border-bottom: none; }

.cmd-row .cmd-name {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--amber);
  padding: 16px 20px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
}

.cmd-row .cmd-desc {
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 20px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-q .plus {
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 18px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-q .plus { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-a p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 4px 20px;
  max-width: 68ch;
}

/* CTA band */

.cta-band {
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 14px;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto 30px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
}
.footer-links a:hover { color: var(--text); }

.footer-brand {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Page intro (inner pages: Fonctionnalités / Commandes / FAQ / Contact)
   ========================================================================== */

.page-intro {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  margin: 16px 0 12px;
  line-height: 1.3;
}

.page-intro p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 56ch;
  margin: 0;
}

/* Link cards (home page → section pages) */

.link-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.link-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.link-card:hover {
  border-color: var(--blue-dim);
  transform: translateY(-2px);
}

.link-card .link-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}

.link-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.link-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0;
}

.link-card .link-arrow {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card h3 {
  font-size: 17px;
  margin: 0 0 10px;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 18px;
}

.contact-card .btn { width: 100%; justify-content: center; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.contact-detail:first-of-type { border-top: none; }

.contact-detail .label {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  width: 90px;
  flex-shrink: 0;
}

/* ==========================================================================
   Masthead banner (real brand artwork)
   ========================================================================== */

.masthead {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.masthead img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 320px;
  object-fit: cover;
}

/* ==========================================================================
   Login page
   ========================================================================== */

.login-shell {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}

.login-card img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 20px;
}

.login-card h1 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 10px;
}

.login-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 28px;
}

.btn-discord {
  width: 100%;
  justify-content: center;
  background: #5865f2;
  color: #fff;
}
.btn-discord:hover {
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
}

.login-note {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.login-back {
  display: inline-block;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
}
.login-back:hover { color: var(--text); }

/* ==========================================================================
   Partner page
   ========================================================================== */

.perk-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 8px;
}

.criteria-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.criteria-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.criteria-row:last-child { border-bottom: none; }

.criteria-row .num {
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 13px;
  flex-shrink: 0;
  padding-top: 2px;
}

.criteria-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}
.criteria-row strong { color: var(--text); }

/* ==========================================================================
   Legal pages (CGU / Confidentialité)
   ========================================================================== */

.legal-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 16px 0 10px;
}

.legal-hero .updated {
  color: var(--text-muted);
  font-size: 13.5px;
  font-family: var(--font-mono);
}

.legal-body {
  padding: 56px 0 96px;
  max-width: 760px;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 44px 0 16px;
  color: var(--blue);
}
.legal-body h2:first-child { margin-top: 0; }

.legal-body p, .legal-body li {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }

.legal-body strong { color: var(--text); }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 24px 0;
}
.callout p { margin: 0; font-size: 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cmd-row { grid-template-columns: 1fr; }
  .cmd-row .cmd-name { border-right: none; border-bottom: 1px solid var(--border); }
  .link-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .perk-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-login { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .link-cards { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
