/* ===============================
   ROOT VARIABLES & RESET
================================ */
:root {
  --bg: #0b1220;
  --card: #101a2e;
  --text: #eaf0ff;
  --muted: #a9b4d0;
  --line: rgba(255,255,255,.10);
  --accent: #7c5cff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(124,92,255,.28), transparent 60%),
    var(--bg);
}

a { color: var(--text); text-decoration: none; }
a:hover { opacity: 0.92; }

/* ===============================
   CENTERED CONTAINER (CRITICAL)
================================ */
.wrap {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

main { display: block; }
.section { margin-top: 24px; }

/* ===============================
   HEADER & NAV
================================ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,18,32,.80);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===============================
   UI ELEMENTS
================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size: 14px;
}

.pill:hover { border-color: rgba(255,255,255,.25); }

.badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(124,92,255,.25);
  border: 1px solid rgba(124,92,255,.45);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(124,92,255,.6);
  background: rgba(124,92,255,.25);
  font-weight: 600;
}
.btn:hover { background: rgba(124,92,255,.35); }

/* ===============================
   HERO (TOP PHOTO BACKGROUND)
================================ */
.hero {
  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;

  padding: 22px;
  margin-top: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);

  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,18,32,.70), rgba(11,18,32,.95)),
    url("/assets/img/hero-ice.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

/* ===============================
   TYPOGRAPHY
================================ */
h1 {
  font-size: 34px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
h2 { font-size: 20px; margin: 22px 0 10px; }
p { margin: 10px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }

/* ===============================
   CARDS & GRID
================================ */
.card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 16px;
}

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

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}

/* decorative card background option */
.card.bg-ice {
  background:
    linear-gradient(180deg, rgba(16,26,46,.86), rgba(16,26,46,.95)),
    url("/assets/img/ice-pattern.png") center / cover no-repeat;
}

/* ===============================
   IMAGES
================================ */
.media {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}

/* FIX FOR BIG / CUT IMAGES (WHEEL) */
.media-wheel {
  width: min(760px, 100%);
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: radial-gradient(600px 320px at 50% 35%, rgba(124,92,255,.22), rgba(255,255,255,0));
  padding: 14px;
}

.media-wheel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 0;
  background: transparent;
}

/* ===============================
   TABLES
================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 600;
  color: var(--muted);
  background: rgba(255,255,255,.03);
}

/* ===============================
   FAQ (ACCORDION, NO JS)
================================ */
.faq { margin-top: 28px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "＋";
  float: right;
  font-size: 18px;
  opacity: .7;
}

.faq details[open] summary::after { content: "−"; }

.faq p { margin-top: 10px; color: var(--muted); }

/* ===============================
   FOOTER
================================ */
footer { margin-top: 40px; }
.hr { height: 1px; background: var(--line); margin: 20px 0; }

/* ===============================
   MOBILE
================================ */
@media (max-width: 600px) {
  h1 { font-size: 28px; }
  h2 { font-size: 18px; }
}
