/* paper_indigo — freeplaycasinoclub.com */
:root {
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --surface-alt: #EEF1F8;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --secondary: #0EA5E9;
  --accent: #F97316;
  --text: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border: rgba(17, 24, 39, 0.10);
  --radius: 12px;
  --font-display: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "Segoe UI", "Helvetica Neue", Tahoma, sans-serif;
  --shadow: 0 12px 40px rgba(79, 70, 229, 0.08);
  --max: 720px;
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(79, 70, 229, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 5%, rgba(14, 165, 233, 0.10), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(249, 115, 22, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-alt) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 248, 252, 0.85);
  backdrop-filter: blur(10px);
}

.site-header__inner,
.site-footer__inner,
.legal-wrap,
.hero__inner {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  background: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}

.brand__mark::after {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.brand__text {
  line-height: 1.2;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary);
}

/* —— Main / Hero —— */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h) - 5.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(79, 70, 229, 0.07), transparent 42%),
    radial-gradient(circle at 25% 70%, rgba(14, 165, 233, 0.06), transparent 40%);
  pointer-events: none;
  animation: atmosphere 12s ease-in-out infinite alternate;
}

@keyframes atmosphere {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--max);
  animation: rise-in 0.9s ease-out both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero__brand span {
  display: block;
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.hero__copy {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  max-width: 28rem;
  margin: 0 auto;
  animation: rise-in 0.9s ease-out 0.2s both;
}

.notify__input {
  flex: 1 1 12rem;
  min-width: 0;
  height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notify__input::placeholder {
  color: var(--text-muted);
}

.notify__input:hover {
  border-color: rgba(79, 70, 229, 0.35);
}

.notify__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  outline: none;
}

.notify__btn {
  flex: 0 0 auto;
  height: 2.75rem;
  padding: 0 1.35rem;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.notify__btn:hover {
  background: var(--primary-hover);
}

.notify__btn:active {
  transform: scale(0.98);
}

.notify__note {
  flex-basis: 100%;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.notify__note.is-success {
  color: var(--primary);
}

.notify__note.is-error {
  color: #b45309;
}

/* —— Legal pages —— */
.legal {
  padding: 2.5rem 0 4rem;
  animation: rise-in 0.6s ease-out both;
}

.legal-wrap {
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  padding: 1.35rem 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--primary);
}

/* —— Cookie banner —— */
.cookie-banner {
  position: fixed;
  z-index: 100;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 28rem;
  margin-inline: auto;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.12);
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.cookie-banner__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.cookie-banner__text a {
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.4rem;
  padding: 0 1.1rem;
  border-radius: calc(var(--radius) - 2px);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

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

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--surface-alt);
  color: var(--text);
}

@media (min-width: 640px) {
  .cookie-banner {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    margin-inline: 0;
  }
}

@media (max-width: 480px) {
  .notify {
    flex-direction: column;
  }

  .notify__btn {
    width: 100%;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
