:root {
  --bg-deep: #070b12;
  --bg-card: #101824;
  --bg-card-hover: #141e2e;
  --accent: #2ee6a6;
  --accent-dark: #1bb87a;
  --accent-warm: #ffb547;
  --text: #e8edf4;
  --text-muted: #9aa8bc;
  --border: rgba(46, 230, 166, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 18px;
  --container: 920px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(46, 230, 166, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 40%, rgba(255, 181, 71, 0.06), transparent 50%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-warm);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3.5rem, 12vw, 7rem) 1.25rem clamp(5rem, 14vw, 8rem);
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(7, 11, 18, 0.88) 0%, rgba(7, 11, 18, 0.65) 45%, rgba(16, 24, 36, 0.92) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 8px,
      rgba(46, 230, 166, 0.03) 8px,
      rgba(46, 230, 166, 0.03) 9px
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  filter: saturate(1.1);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0 auto;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 40px rgba(46, 230, 166, 0.25);
}

/* Brand card (below hero) */
.brand-overlap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
  margin-top: 1.75rem;
}

.brand-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, var(--bg-card) 0%, #0c121c 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.35s ease,
    box-shadow 0.45s var(--ease-out);
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 30% 50%, rgba(46, 230, 166, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.brand-card:hover,
.brand-card:focus-visible {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(46, 230, 166, 0.45);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(46, 230, 166, 0.12);
  outline: none;
}

.brand-card:hover::before,
.brand-card:focus-visible::before {
  opacity: 1;
}

.brand-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b3fd4, #7c5cf0);
  color: #fff;
  box-shadow: 0 4px 16px rgba(91, 63, 212, 0.4);
}

.brand-card__badge-icon {
  filter: brightness(1.2);
}

.brand-card__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto auto;
  gap: 1rem 1.25rem;
  align-items: center;
  margin-top: 2rem;
}

.brand-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-card__logo {
  max-height: 36px;
  width: auto;
  filter: brightness(1.05);
}

.brand-card__offer {
  min-width: 0;
}

.brand-card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--accent-warm);
  color: #1a1205;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

.brand-card__bonus {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.4;
}

.brand-card__rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.brand-card__stars {
  display: flex;
  gap: 2px;
}

.brand-card__stars img {
  width: 18px;
  height: 18px;
}

.brand-card__score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--accent-warm);
  line-height: 1;
}

.brand-card__cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffe066 0%, var(--accent-warm) 100%);
  color: #1a1205;
  box-shadow: 0 8px 24px rgba(255, 181, 71, 0.35);
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.brand-card:hover .brand-card__cta,
.brand-card:focus-visible .brand-card__cta {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(255, 181, 71, 0.5);
}

/* Main content */
.main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1.25rem, 4vw, 2rem);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.content-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(46, 230, 166, 0.12);
}

.content-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  margin: 0 0 1rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.content-card p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
}

.content-card p:last-child {
  margin-bottom: 0;
}

/* Disclaimer strip */
.disclaimer-strip {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.disclaimer-strip__icon {
  flex-shrink: 0;
}

.disclaimer-strip__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Disclaimer block before footer */
.disclaimer-block {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(46, 230, 166, 0.08) 0%, rgba(7, 11, 18, 0.95) 100%);
  border: 1px solid rgba(46, 230, 166, 0.22);
}

.disclaimer-block__inner {
  max-width: 52rem;
  margin: 0 auto;
}

.disclaimer-block__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: var(--accent);
}

.disclaimer-block p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.disclaimer-block p:last-child {
  margin-bottom: 0;
}

/* Footer */
.footer {
  margin-top: 0.5rem;
  padding: 2.5rem 1.25rem 2rem;
  background: #040608;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid {
  max-width: var(--container);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: #fff;
}

.footer__subheading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin: 1rem 0 0.5rem;
  color: var(--accent);
}

.footer__col p {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__badges,
.footer__autoexclusion {
  max-width: var(--container);
  margin: 0 auto 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
}

.footer__badge-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 10px;
  transition: transform 0.25s var(--ease-out), opacity 0.25s ease;
  text-decoration: none;
}

.footer__badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.footer__badge-link img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.footer__autoexclusion-link img {
  max-height: 56px;
}

.footer__contact {
  max-width: var(--container);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.footer__contact p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-warm);
  text-decoration: none;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.footer__legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--accent);
}

.footer__dot {
  color: var(--text-muted);
  opacity: 0.5;
}

.footer__copy {
  text-align: center;
  margin: 0;
  font-size: 0.8rem;
  color: #5c6b7f;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem;
  background: rgba(4, 6, 8, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-banner__btn {
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.35rem;
  background: var(--accent);
  color: #04120c;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cookie-banner__btn:hover {
  background: var(--accent-dark);
  transform: scale(1.03);
}

/* Reveal animation (JS adds .is-visible) */
.js-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Policy page layout */
.policy-page {
  padding-bottom: 4rem;
}

.policy-page .policy-header {
  padding: 2rem 1.25rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.policy-page .policy-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
}

.policy-page .policy-header a {
  font-size: 0.9rem;
}

.policy-article {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.policy-article h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: #fff;
}

.policy-article p,
.policy-article li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.policy-article ul {
  padding-left: 1.25rem;
}

/* Tablet / mobile */
@media (max-width: 768px) {
  .hero {
    padding-bottom: clamp(3.5rem, 12vw, 6rem);
  }

  .brand-overlap {
    width: 100%;
    max-width: none;
    padding: 0 1rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.25rem;
  }

  .brand-card {
    width: 100%;
    max-width: none;
    max-height: 300px;
    padding: 0.65rem 0.85rem;
    margin-left: 0;
    margin-right: 0;
    border-radius: 14px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    overflow: hidden;
  }

  .brand-card__badge {
    position: static;
    margin-bottom: 0.35rem;
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
  }

  .brand-card__row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.45rem 0.65rem;
    margin-top: 0.25rem;
    align-items: center;
  }

  .brand-card__logo-wrap {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
  }

  .brand-card__logo {
    max-height: 28px;
  }

  .brand-card__offer {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .brand-card__tag {
    font-size: 0.6rem;
    margin-bottom: 0.2rem;
  }

  .brand-card__bonus {
    font-size: 0.78rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .brand-card__rating {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    gap: 0.35rem;
    justify-self: end;
  }

  .brand-card__stars img {
    width: 12px;
    height: 12px;
  }

  .brand-card__score {
    font-size: 1.25rem;
  }

  .brand-card__cta {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.72rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__badges img {
    max-height: 40px;
  }
}

@media (max-width: 380px) {
  .brand-card__stars img {
    width: 10px;
    height: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-reveal,
  .brand-card,
  .cookie-banner {
    transition: none;
  }

  .js-reveal {
    opacity: 1;
    transform: none;
  }
}
