/* brandnameguardians.com — 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: "Avenir Next", Avenir, "Century Gothic", "Futura", "Trebuchet MS", sans-serif;
  --font-body: "Gill Sans", "Gill Sans MT", "Trebuchet MS", "Segoe UI", sans-serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 42rem;
}

*,
*::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: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  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(--primary);
  outline-offset: 3px;
}

/* —— Atmosphere —— */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 70% 15%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(52, 211, 153, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(129, 140, 248, 0.08), transparent 60%),
    linear-gradient(180deg, #0a1a2e 0%, var(--bg) 45%, #061018 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

.wave {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 40vh;
  bottom: -5%;
  border-radius: 45% 55% 40% 60% / 60% 40% 70% 50%;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.06));
  animation: drift 18s ease-in-out infinite alternate;
}

.wave--2 {
  bottom: -12%;
  height: 32vh;
  opacity: 0.7;
  animation-duration: 22s;
  animation-delay: -4s;
  background: linear-gradient(180deg, transparent, rgba(52, 211, 153, 0.05));
}

@keyframes drift {
  from { transform: translateX(-2%) rotate(-1deg); }
  to { transform: translateX(3%) rotate(1.5deg); }
}

/* —— Layout —— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.25rem var(--space);
}

.site-header__inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

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

.site-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— Hero —— */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 6rem var(--space) 4rem;
  max-width: 68rem;
  margin: 0 auto;
  width: 100%;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
  animation: rise-in 0.9s ease-out both;
}

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

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  max-width: 28rem;
  animation: rise-in 0.9s ease-out 0.15s both;
}

.hero__copy {
  color: var(--text-muted);
  max-width: 26rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  animation: rise-in 0.9s ease-out 0.28s both;
}

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

/* —— Notify form —— */
.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: 100%;
  max-width: 26rem;
  animation: rise-in 0.9s ease-out 0.4s 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[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  font: inherit;
  font-size: 0.9375rem;
  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[type="email"]::placeholder {
  color: var(--text-muted);
}

.notify input[type="email"]:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.notify input[type="email"]:focus {
  border-color: var(--primary);
  background: var(--surface-alt);
}

.notify button {
  flex: 0 0 auto;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-size: 0.9375rem;
  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 button:hover {
  background: var(--primary-hover);
}

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

.notify__note {
  flex: 1 1 100%;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.notify__note[hidden] {
  display: none;
}

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

/* —— Legal pages —— */
.page {
  padding: 6.5rem var(--space) 3rem;
  max-width: 44rem;
  margin: 0 auto;
  width: 100%;
  animation: rise-in 0.6s ease-out both;
}

.page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

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

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

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

.page ul {
  padding-left: 1.25rem;
}

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

.page li::marker {
  color: var(--primary);
}

/* —— Footer —— */
.site-footer {
  padding: 1.75rem var(--space) 2.5rem;
  border-top: 1px solid var(--border);
  background: rgba(8, 19, 31, 0.6);
}

.site-footer__inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

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

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

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

.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 var(--space) 1.25rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(110%);
  transition: transform 0.4s ease;
}

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

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  flex: 1 1 16rem;
  font-size: 0.875rem;
  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.5rem;
}

.cookie-banner__actions button {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

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

@media (max-width: 480px) {
  .notify button {
    flex: 1 1 100%;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions button {
    flex: 1;
  }
}

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

  .cookie-banner {
    transition: none;
  }
}
