:root {
  --ink: #0b1220;
  --muted: #4a5568;
  --line: rgba(11, 18, 32, 0.1);
  --surface: rgba(255, 255, 255, 0.72);
  --blue: #0066ff;
  --cyan: #33c7ff;
  --violet: #7a2cff;
  --shadow: 0 24px 60px rgba(15, 35, 80, 0.12);
  --radius: 16px;
  --font: "Avenir Next", "Segoe UI Variable", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: #f3f7fc;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--violet);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(0, 102, 255, 0.22), transparent 60%),
    radial-gradient(700px 480px at 92% 8%, rgba(122, 44, 255, 0.18), transparent 55%),
    linear-gradient(160deg, #f7fbff 0%, #eef4fb 45%, #f5f2ff 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 75%);
  opacity: 0.55;
}

.top {
  width: min(1080px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: rise 0.7s ease both;
}

.brand img {
  display: block;
  width: min(220px, 58vw);
  height: auto;
}

.hero,
.page {
  width: min(780px, calc(100% - 2rem));
  margin: auto;
  padding: 4.5rem 0 3rem;
}

.hero {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: rise 0.75s ease 0.05s both;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  animation: rise 0.8s ease 0.1s both;
}

.hero h1 span {
  background: linear-gradient(115deg, var(--blue), var(--cyan) 45%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 auto 2rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.1rem;
  animation: rise 0.85s ease 0.16s both;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: rise 0.9s ease 0.22s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--violet));
  box-shadow: 0 12px 28px rgba(0, 102, 255, 0.28);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 16px 34px rgba(122, 44, 255, 0.3);
}

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(0, 102, 255, 0.35);
}

.btn-sm {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

.page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: rise 0.7s ease both;
}

.page h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.back:hover {
  color: var(--blue);
}

.legal h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.15rem;
}

.legal p,
.legal ul {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.foot {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto 1.5rem;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
  animation: rise 0.9s ease 0.28s both;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.foot a:hover {
  color: var(--blue);
}

.foot p {
  margin: 0;
}

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  justify-content: center;
  animation: slide-up 0.45s ease both;
}

.cookie[hidden] {
  display: none;
}

.cookie-inner {
  width: min(720px, 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .hero,
  .page {
    padding-top: 3rem;
  }

  .page {
    padding: 1.35rem;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
