/* deep_ocean palette */
:root {
  --bg: #08131F;
  --surface: #0F2033;
  --surface-alt: #16304A;
  --primary: #38BDF8;
  --primary-hover: #0EA5E9;
  --secondary: #818CF8;
  --accent: #34D399;
  --text: #ECF4FB;
  --text-secondary: #A9C0D4;
  --text-muted: #5F7A91;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Trebuchet MS", "Segoe UI", Candara, "Gill Sans", sans-serif;
  --max-width: 720px;
  --header-height: 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: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(52, 211, 153, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(129, 140, 248, 0.07), transparent 45%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  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: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 19, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

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

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

.brand__mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.brand__mark span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg);
  line-height: 1;
}

.brand__name {
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

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

/* Hero / Coming soon */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 4rem;
  position: relative;
  min-height: calc(100vh - var(--header-height) - 5rem);
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__glow::before {
  content: "";
  position: absolute;
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite;
}

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

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
  background: linear-gradient(120deg, var(--text) 0%, var(--primary) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fade-up 0.9s ease-out 0.1s both;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  animation: fade-up 0.9s ease-out 0.2s both;
}

.hero__lede {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 34rem;
  margin: 0 auto 2rem;
  animation: fade-up 0.9s ease-out 0.3s both;
}

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  max-width: 26rem;
  margin: 0 auto;
  animation: fade-up 0.9s ease-out 0.45s both;
}

.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 {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.975rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}

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

.notify__input:hover {
  border-color: rgba(56, 189, 248, 0.28);
}

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

.notify__btn {
  flex: 0 0 auto;
  padding: 0.8rem 1.35rem;
  font: inherit;
  font-size: 0.975rem;
  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__note {
  flex: 1 1 100%;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  min-height: 1.25em;
}

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

/* Legal pages */
.page {
  max-width: 740px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  animation: fade-up 0.6s ease-out both;
}

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

.page__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

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

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

.page ul {
  margin: 0 0 1rem 1.25rem;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(8, 19, 31, 0.6);
  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.875rem;
}

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

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  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 16rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

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

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

.btn--ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--surface-alt);
}

/* Animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -48%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -48%) scale(1.08);
  }
}

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

  .hero__content,
  .hero__brand,
  .hero__headline,
  .hero__lede,
  .notify,
  .page {
    animation: none;
  }
}

@media (max-width: 540px) {
  .notify__btn {
    flex: 1 1 100%;
  }

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

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 auto;
  }
}
