/* Ivoirelabs — main stylesheet */

:root {
  --bg: #0c0f14;
  --bg-raised: #12161e;
  --bg-card: #161b25;
  --line: #242b38;
  --text: #e8ebf0;
  --text-dim: #9aa3b2;
  --text-faint: #6b7483;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --accent-2: #22d3ee;
  --ok: #34d399;
  --err: #f87171;
  --radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

::selection { background: var(--accent); color: #0c0f14; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 15, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.nav-cta {
  color: #0c0f14;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.site-nav a.nav-cta:hover { background: #fbbf24; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 80% 0%, rgba(245, 158, 11, 0.09), transparent 70%),
    radial-gradient(520px 300px at 10% 100%, rgba(34, 211, 238, 0.06), transparent 70%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 17ch;
}

.hero p.lede {
  margin: 0 0 32px;
  font-size: 18.5px;
  color: var(--text-dim);
  max-width: 54ch;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #0c0f14; }
.btn-primary:hover { background: #fbbf24; }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text-faint); }

/* ---------- Sections ---------- */

section { padding: 72px 0; }
section.alt { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 40px; max-width: 60ch; }
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 750;
  letter-spacing: -0.01em;
}
.section-head p { margin: 0; color: var(--text-dim); font-size: 16.5px; }

/* ---------- Game showcase ---------- */

.game-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 48px;
}

.game-copy .game-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.game-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 750;
}

.game-copy p { color: var(--text-dim); margin: 0 0 20px; }

.feature-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.feature-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--text-dim);
  font-size: 15px;
}
.feature-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  transform: translateY(-1px) rotate(45deg);
  background: var(--accent);
  border-radius: 2px;
}

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 18px;
  min-width: 150px;
  color: var(--text);
  background: var(--bg-raised);
}
.store-badge:hover { text-decoration: none; border-color: var(--text-faint); }
.store-badge .small { font-size: 11px; color: var(--text-faint); letter-spacing: 0.04em; }
.store-badge .big { font-size: 15.5px; font-weight: 650; }

.game-art {
  display: flex;
  justify-content: center;
}
.game-art svg { max-width: 100%; height: auto; }

/* ---------- Pillars ---------- */

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

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.pillar .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  margin-bottom: 16px;
}
.pillar h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 650; }
.pillar p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ---------- Contact strip ---------- */

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 40px 48px;
}
.contact-strip h2 { margin: 0 0 6px; font-size: 24px; }
.contact-strip p { margin: 0; color: var(--text-dim); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 36px;
  background: var(--bg-raised);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { margin: 0; color: var(--text-faint); font-size: 14px; }
.footer-col h4 {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-dim); font-size: 14.5px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-faint);
  font-size: 13.5px;
}

/* ---------- Content pages (legal, support) ---------- */

.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 780;
  letter-spacing: -0.01em;
}
.page-hero p { margin: 0; color: var(--text-dim); max-width: 64ch; }
.page-hero .meta { margin-top: 14px; font-size: 13.5px; color: var(--text-faint); }

.content {
  padding: 56px 0 80px;
}
.content .wrap { max-width: 820px; }

.prose h2 {
  margin: 44px 0 14px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; font-size: 17px; font-weight: 650; }
.prose p, .prose li { color: var(--text-dim); font-size: 15.5px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 16px 0;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.prose th { color: var(--text); background: var(--bg-card); font-weight: 600; }

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.toc strong { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.toc ol { margin: 10px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { font-size: 14.5px; margin-bottom: 5px; }

/* ---------- Support page ---------- */

.support-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-faint);
  flex: none;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body {
  padding: 0 20px 16px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.faq-item .faq-body p { margin: 0 0 10px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 32px;
  position: sticky;
  top: 88px;
}
.ticket-card h2 { margin: 0 0 6px; font-size: 20px; }
.ticket-card > p { margin: 0 0 24px; color: var(--text-dim); font-size: 14.5px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field .hint { font-weight: 400; color: var(--text-faint); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 11px 13px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { font-size: 12.5px; color: var(--text-faint); margin: 14px 0 0; }

.form-alert {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
  margin-bottom: 18px;
  display: none;
}
.form-alert.show { display: block; }
.form-alert.ok {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--ok);
}
.form-alert.err {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--err);
}
.form-alert code {
  font-family: var(--mono);
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 5px;
}

.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .game-card { grid-template-columns: 1fr; padding: 32px 26px; }
  .game-art { order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .support-layout { grid-template-columns: 1fr; }
  .ticket-card { position: static; }
  .toc ol { columns: 1; }
  .site-nav { gap: 18px; }
  .site-nav .nav-hide-sm { display: none; }
  .contact-strip { padding: 30px 26px; }
  .hero { padding: 64px 0 56px; }
  section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; justify-content: center; }
}
