:root {
  --accent: #a33131;
  --accent-light: #c94444;
  --accent-dark: #6e1e1e;
  --bg: #0d0d0f;
  --bg-alt: #17171a;
  --card: #1d1d21;
  --border: #2b2b30;
  --text: #eeeeee;
  --text-muted: #a3a3ab;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 15, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.brand img { height: 34px; width: auto; }

.nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.nav ul a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav ul a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid var(--accent-light);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--accent-light);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--text);
}

.btn-outline:hover { background: var(--accent); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Hero */
.hero {
  position: relative;
  padding: 90px 0 70px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(163, 49, 49, 0.25), transparent 60%),
    var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(163,49,49,0.18), transparent 55%);
  pointer-events: none;
}

.hero-logo {
  width: 130px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 10px 25px rgba(163, 49, 49, 0.45));
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 14px;
  letter-spacing: 1px;
}

.hero .quote {
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 34px;
  border-left: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  padding: 6px 18px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0a800;
  box-shadow: 0 0 8px #e0a800;
}

/* Sections */
section { padding: 70px 0; }
section.alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-head .eyebrow {
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 8px 0 10px;
}

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

/* Info cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--text);
}

.card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(163, 49, 49, 0.18);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
  font-weight: 800;
}

/* Regelverk (accordion) */
.rules-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.rules-toolbar input {
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.95rem;
}

.rules-toolbar input:focus {
  outline: none;
  border-color: var(--accent);
}

.accordion { display: flex; flex-direction: column; gap: 12px; }

.acc-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.acc-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.acc-header:hover { background: rgba(163, 49, 49, 0.08); }

.acc-header .plus {
  color: var(--accent-light);
  font-size: 1.3rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.acc-item.open .acc-header .plus { transform: rotate(45deg); }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.acc-item.open .acc-body { max-height: 3000px; }

.acc-body-inner {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.acc-body-inner p { margin: 0 0 10px; }
.acc-body-inner ul { margin: 6px 0 12px; padding-left: 20px; }
.acc-body-inner li { margin-bottom: 6px; }
.acc-body-inner strong { color: var(--text); }

.acc-item[hidden] { display: none; }

/* Heat table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.92rem;
}

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

th { color: var(--text); }
td { color: var(--text-muted); }

/* FAQ */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 14px;
}

.faq-item h4 {
  margin: 0 0 8px;
  color: var(--accent-light);
  font-size: 1rem;
}

.faq-item p { margin: 0; color: var(--text-muted); }

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(160deg, var(--accent-dark), var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { color: var(--text-muted); margin: 0 0 26px; }

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.footer-brand img { height: 26px; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  text-align: center;
  font-size: 0.82rem;
}

.last-edited {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: -20px;
  margin-bottom: 36px;
}

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  nav ul { display: none; }
  .menu-toggle { display: inline-block; }
  .nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 16px;
  }
  .footer-grid { flex-direction: column; }
}
