:root {
  --bg: #080a10;
  --text: #f0f0f5;
  --accent: #4da6ff;
  --muted: #c7c7d4;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 55vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  display: grid;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  /* lighter overlay so images remain visible */
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.15), rgba(8, 10, 16, 0.5));
  z-index: 1;
  pointer-events: none;
}

.hero-slide-caption {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 2.5rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1rem 1.2rem;
}

.hero-slide-caption span {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.45rem;
}

.hero-slide-caption h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.15;
  color: #fff;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.slider-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.slider-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.slider-indicator.active,
.slider-indicator:hover {
  background: rgba(77, 166, 255, 0.9);
  transform: scale(1.2);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-cta,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.hero-cta {
  background: var(--accent);
  color: #08101e;
}

.hero-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-secondary:hover,
.hero-cta:hover {
  filter: brightness(1.05);
}

.rating-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.rating-tag {
  background: rgba(77, 166, 255, 0.14);
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-status {
  margin-top: 1rem;
  color: rgba(240, 240, 245, 0.8);
  font-size: 0.95rem;
}

.slider-arrow:focus,
.slider-indicator:focus,
.category-button:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(77, 166, 255, 0.95);
  outline-offset: 2px;
}

.rating-intro-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.rating-controls {
  min-width: 240px;
}

.rating-controls input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.rating-controls input:focus {
  outline: 2px solid rgba(77, 166, 255, 0.9);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(240, 240, 245, 0.92);
  max-width: 700px;
  margin: 0 auto;
}

.hero-categories {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.8rem;
  padding: 0 1rem 1rem;
}

.category-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.category-button.active,
.category-button:hover {
  background: rgba(77, 166, 255, 0.16);
  border-color: rgba(77, 166, 255, 0.55);
  transform: translateY(-1px);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 1.75rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: transform 180ms ease, background 180ms ease;
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(77, 166, 255, 0.2);
}

.slider-arrow.prev {
  left: 1rem;
}

.slider-arrow.next {
  right: 1rem;
}

.hero-inner {
  padding: 0 1rem;
}

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

.site-header,
.site-footer {
  padding: 1rem 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.1rem;
  font-size: 1.25rem;
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 10, 16, 0.95);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 0.75rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    margin: 0;
  }
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-weight: 700;
  letter-spacing: 0.1rem;
}

.main-nav a {
  margin-left: 1.5rem;
  font-size: 0.95rem;
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.language-button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.language-button.active,
.language-button:hover {
  background: rgba(77, 166, 255, 0.16);
  border-color: rgba(77, 166, 255, 0.55);
  transform: translateY(-1px);
}

main {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
}

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

.footer-nav a {
  margin-left: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}.rating-intro,
.rating-form,
.rating-summary {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
}

.rating-intro h2,
.rating-form h2,
.rating-summary h2,
.rating-summary h3 {
  margin-bottom: 1rem;
}

.field-group {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.field-group label {
  font-weight: 600;
  color: var(--text);
}

.field-group input[type="text"],
.field-group textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.field-group input[type="range"] {
  width: 100%;
}

.field-group.slider-group {
  gap: 0.75rem;
}

button[type="submit"] {
  background: var(--accent);
  color: #08101e;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 0.95rem 1.4rem;
  cursor: pointer;
  transition: filter 150ms ease;
}

button[type="submit"]:hover {
  filter: brightness(1.05);
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.form-message.success {
  color: #a3ff9f;
}

.form-message.error {
  color: #ff7a7a;
}


.rating-intro,
.rating-form,
.rating-summary {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
}

.rating-intro h2,
.rating-form h2,
.rating-summary h2,
.rating-summary h3 {
  margin-bottom: 1rem;
}

.field-group {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.field-group label {
  font-weight: 600;
  color: var(--text);
}

.field-group input[type="text"],
.field-group textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.field-group input[type="range"] {
  width: 100%;
}

.field-group.slider-group {
  gap: 0.75rem;
}

button[type="submit"] {
  background: var(--accent);
  color: #08101e;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 0.95rem 1.4rem;
  cursor: pointer;
  transition: filter 150ms ease;
}

button[type="submit"]:hover {
  filter: brightness(1.05);
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.form-message.success {
  color: #a3ff9f;
}

.form-message.error {
  color: #ff7a7a;
}

.averages {
  display: grid;
  gap: 0.75rem;
}

.average-overview {
  display: grid;
  gap: 0.75rem;
}

.average-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.average-line.total {
  border-color: rgba(77, 166, 255, 0.45);
}

.recent-ratings {
  display: grid;
  gap: 1rem;
}

.rating-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-card h4 {
  margin-bottom: 0.5rem;
}

.rating-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  color: rgba(240, 240, 245, 0.8);
}

.rating-scores {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.rating-scores div {
  display: flex;
  justify-content: space-between;
}

.rating-card p {
  color: rgba(240, 240, 245, 0.9);
}
