/* cloud_rose palette */
:root {
  --bg: #FDF7F9;
  --surface: #FFFFFF;
  --surface-alt: #F6EBEF;
  --primary: #E11D63;
  --primary-hover: #BE185D;
  --secondary: #7C3AED;
  --accent: #0D9488;
  --text: #1F1720;
  --text-secondary: #57505A;
  --text-muted: #A79FA8;
  --border: rgba(31, 23, 32, 0.10);
  --radius: 14px;
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: Candara, "Segoe UI", "Trebuchet MS", "Gill Sans", sans-serif;
  --shadow-soft: 0 12px 40px rgba(31, 23, 32, 0.06);
  --max: 720px;
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

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

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

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

/* —— Header —— */
.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

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

.brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

/* —— Main / Hero —— */
.site-main {
  flex: 1;
  position: relative;
}

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

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(225, 29, 99, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 75%, rgba(13, 148, 136, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 60% 10%, rgba(124, 58, 237, 0.07), transparent 45%),
    linear-gradient(165deg, var(--bg) 0%, var(--surface-alt) 55%, var(--bg) 100%);
  animation: backdrop-drift 18s ease-in-out infinite alternate;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: orb-float 12s ease-in-out infinite alternate;
}

.hero__orb--a {
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  background: rgba(225, 29, 99, 0.22);
  top: -8%;
  right: -6%;
}

.hero__orb--b {
  width: min(40vw, 300px);
  height: min(40vw, 300px);
  background: rgba(13, 148, 136, 0.18);
  bottom: 5%;
  left: -8%;
  animation-delay: -4s;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  text-align: center;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 6.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero__brand .dot {
  color: var(--primary);
}

.hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

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

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  max-width: 28rem;
  margin: 0 auto;
}

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

.notify input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notify input[type="email"]::placeholder {
  color: var(--text-muted);
}

.notify input[type="email"]:hover {
  border-color: rgba(225, 29, 99, 0.35);
}

.notify input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 99, 0.15);
  outline: none;
}

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

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

.notify button:active {
  transform: scale(0.98);
}

.notify__note {
  flex: 1 1 100%;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.25em;
}

.notify__note[data-visible="true"] {
  color: var(--accent);
}

/* —— Legal pages —— */
.page {
  position: relative;
  padding: 2.5rem 1.5rem 4rem;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(225, 29, 99, 0.08), transparent 50%),
    linear-gradient(180deg, var(--surface-alt) 0%, var(--bg) 40%);
}

.page__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.page__meta {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page__inner h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.page__inner p,
.page__inner li {
  color: var(--text-secondary);
}

.page__inner ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

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

.page__inner p {
  margin: 0 0 1rem;
}

.page__inner code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  background: var(--surface-alt);
  border-radius: 4px;
  color: var(--text);
}

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* —— Cookie banner —— */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 100;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, visibility 0.35s;
}

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

.cookie-banner h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cookie-banner p a {
  color: var(--primary);
}

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

.cookie-banner__actions button {
  flex: 1 1 auto;
  min-width: 6.5rem;
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-accept {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
}

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

.btn-decline {
  color: var(--text-secondary);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.btn-decline:hover {
  color: var(--text);
  border-color: rgba(31, 23, 32, 0.2);
}

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

@keyframes backdrop-drift {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(8deg);
  }
}

@keyframes orb-float {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(12px, -18px) scale(1.06);
  }
}

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

  .hero__content,
  .page__inner {
    animation: none;
  }
}

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

@media (max-width: 480px) {
  .nav-links {
    gap: 0.85rem;
  }

  .notify {
    flex-direction: column;
  }

  .notify button {
    width: 100%;
  }
}
