:root {
  --brand: #ff4081;
  --brand-deep: #e91e63;
  --ink: #121212;
  --ink-elevated: #1a1a1a;
  --ink-soft: #2a2a2a;
  --paper: #faf7f8;
  --paper-mute: #c9c2c6;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(18, 18, 18, 0.12);
  --primary: #3f51b5;
  --radius: 2px;
  --max: 72rem;
  --font-display: "Syne", sans-serif;
  --font-body: "Sora", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 15% -10%, rgba(255, 64, 129, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 10%, rgba(63, 81, 181, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 100%, rgba(255, 64, 129, 0.12), transparent 55%),
    linear-gradient(180deg, #161016 0%, var(--ink) 45%, #0e0e12 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

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

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
  box-shadow: 0 8px 24px rgba(255, 64, 129, 0.35);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--paper-mute);
}

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

.hero {
  min-height: calc(100vh - 5.5rem);
  display: grid;
  align-content: center;
  padding: 2rem 0 4rem;
  gap: 1.5rem;
}

.hero-mark {
  width: clamp(5.5rem, 14vw, 8rem);
  height: clamp(5.5rem, 14vw, 8rem);
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(255, 64, 129, 0.35);
  animation: rise 0.9s ease both, float 6s ease-in-out 1s infinite;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 12ch;
  animation: rise 0.9s ease 0.08s both;
}

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

.hero-lead {
  margin: 0;
  max-width: 34rem;
  color: var(--paper-mute);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  animation: rise 0.9s ease 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  animation: rise 0.9s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 64, 129, 0.35);
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: rgba(255, 64, 129, 0.55);
  color: var(--paper);
}

.section {
  padding: 4.5rem 0;
}

.section-label {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section p {
  margin: 0 0 1rem;
  color: var(--paper-mute);
  max-width: 40rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--paper-mute);
  font-size: 0.85rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer a {
  color: var(--paper-mute);
  text-decoration: none;
}

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

/* Legal / form pages */
.page {
  padding: 2rem 0 5rem;
}

.page-header {
  margin-bottom: 2.5rem;
  animation: rise 0.7s ease both;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.page-header p {
  margin: 0;
  color: var(--paper-mute);
}

.prose {
  max-width: 48rem;
  animation: rise 0.7s ease 0.08s both;
}

.prose h2 {
  margin: 2.5rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.prose p,
.prose li {
  color: var(--paper-mute);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: rgba(255, 64, 129, 0.12);
  color: var(--paper);
  font-weight: 600;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.prose a {
  color: var(--brand);
}

.form-shell {
  max-width: 32rem;
  animation: rise 0.7s ease 0.08s both;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  padding: 0.85rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 64, 129, 0.7);
  background: rgba(255, 64, 129, 0.06);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--paper-mute) 50%),
    linear-gradient(135deg, var(--paper-mute) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 50%, calc(100% - 0.75rem) 50%;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.form-note {
  margin: 0 0 1.25rem;
  color: var(--paper-mute);
  font-size: 0.9rem;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.form-status[data-tone="ok"] {
  color: #81c784;
}

.form-status[data-tone="err"] {
  color: #ef9a9a;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }
}
