:root {
  --bg: #0b0c11;
  --panel: #14161f;
  --panel-2: #1b1e2a;
  --line: #2a2e3c;
  --text: #e9ebf0;
  --dim: #a3a8b6;
  --yellow: #ffc20e;
  --yellow-ink: #141414;
  --link: #ffd54a;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #fff; }

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

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

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 12, 17, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-size: 15px; line-height: 1.2; }
.brand small { display: block; color: var(--dim); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 7px 14px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--yellow); color: var(--yellow-ink); }

/* hero */
.hero {
  position: relative;
  min-height: 480px;
  display: flex; align-items: flex-end;
  background: #000 url("img/hero.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,17,0.15) 0%, rgba(11,12,17,0.55) 55%, var(--bg) 100%);
}
.hero .wrap { position: relative; padding-top: 120px; padding-bottom: 48px; }
.tag {
  display: inline-block; background: var(--yellow); color: var(--yellow-ink);
  font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
}
.hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.05; margin: 14px 0 6px; letter-spacing: 0.01em; }
.hero h1 span { color: var(--yellow); }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: #d6d9e1; max-width: 640px; margin: 0; }
.hero .cta { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-weight: 800; text-decoration: none; border-radius: 10px;
  padding: 12px 20px; background: var(--yellow); color: var(--yellow-ink);
}
.btn:hover { background: #fff; color: var(--yellow-ink); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--yellow); color: var(--yellow); }

/* sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: 28px; margin: 0 0 8px; }
h2 + p.sub { color: var(--dim); margin: 0 0 28px; }
h3 { font-size: 18px; margin: 0 0 6px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.card p { color: var(--dim); margin: 0; }
.card .icon {
  width: 34px; height: 34px; border-radius: 9px; background: var(--yellow); color: var(--yellow-ink);
  display: grid; place-items: center; font-weight: 900; margin-bottom: 12px;
}

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gallery figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; color: var(--dim); font-size: 14px; }

table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 700; width: 34%; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

.notice {
  background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--yellow);
  border-radius: 10px; padding: 16px 18px; color: #d6d9e1;
}

/* legal pages */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 4px; }
.legal .meta { color: var(--dim); margin: 0 0 28px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.legal h3 { margin-top: 22px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal p, .legal li { color: #d6d9e1; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { text-decoration: none; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #08090d; padding: 32px 0 40px; color: var(--dim); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--text); }

@media (max-width: 640px) {
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }
  .nav { margin-left: 0; width: 100%; }
  .hero { min-height: 420px; }
  th { width: auto; display: block; border-bottom: 0; padding-bottom: 0; }
  td { display: block; }
}
