/* slate_mint palette */
:root {
  --bg: #0F1419;
  --surface: #171E26;
  --surface-alt: #1F2933;
  --primary: #2DD4BF;
  --primary-hover: #14B8A6;
  --secondary: #38BDF8;
  --accent: #FBBF24;
  --text: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #7A8899;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: Candara, "Segoe UI", "Trebuchet MS", sans-serif;
  --max-width: 720px;
  --header-h: 64px;
}

*,
*::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: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Atmospheric background — full-bleed plane */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45, 212, 191, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(56, 189, 248, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 35% at 10% 70%, rgba(251, 191, 36, 0.05), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, #0c1015 100%);
  animation: bg-shift 18s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  from {
    filter: hue-rotate(0deg);
    opacity: 1;
  }
  to {
    filter: hue-rotate(8deg);
    opacity: 0.95;
  }
}

.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;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--secondary);
  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(15, 20, 25, 0.85);
  backdrop-filter: blur(10px);
}

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

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

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

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--surface);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__name {
  white-space: nowrap;
}

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

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

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

/* Hero — one composition, brand first */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 80px);
  padding: 3rem 1.25rem 4rem;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(255, 255, 255, 0.012) 48px,
      rgba(255, 255, 255, 0.012) 49px
    );
  pointer-events: none;
  z-index: 0;
}

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

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

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
  animation: rise-in 0.9s ease-out 0.1s both;
}

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

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  animation: rise-in 0.9s ease-out 0.2s both;
}

.hero__copy {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34em;
  margin: 0 auto 2rem;
  animation: rise-in 0.9s ease-out 0.3s both;
}

/* Notify form — no backend */
.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
  animation: rise-in 0.9s ease-out 0.45s both;
}

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

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

.notify__input:hover {
  border-color: rgba(45, 212, 191, 0.35);
}

.notify__input:focus {
  border-color: var(--primary);
  outline: none;
}

.notify__btn {
  flex: 0 0 auto;
  padding: 0.8rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  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__msg {
  flex: 1 1 100%;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--primary);
  min-height: 1.25em;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.notify__msg.is-visible {
  opacity: 1;
}

.notify__msg.is-error {
  color: var(--accent);
}

/* Legal pages */
.legal {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  animation: rise-in 0.6s ease-out both;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
  color: var(--text);
}

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

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--text);
}

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

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

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 1.25rem;
}

.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__copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  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__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.cookie-banner__text {
  flex: 1 1 280px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-banner__text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.cookie-btn {
  padding: 0.65rem 1.15rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-btn--accept {
  background: var(--primary);
  color: var(--bg);
}

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

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

.cookie-btn--decline:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

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

  body::before {
    animation: none;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .brand__name {
    font-size: 0.95rem;
  }

  .hero {
    padding: 2.5rem 1rem 3rem;
    min-height: calc(100vh - var(--header-h) - 100px);
  }

  .notify__btn {
    flex: 1 1 100%;
  }

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

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
