:root {
  --bg: #08040f;
  --bg-2: #0d0618;
  --violet: #6e28ea;
  --magenta: #e11fcb;
  --plum: #a621e4;
  --text: #f4f1fb;
  --muted: #a99fc4;
  --line: rgba(255, 255, 255, 0.06);
  --panel: rgba(255, 255, 255, 0.03);
  --grad: linear-gradient(120deg, #6e28ea 0%, #a621e4 48%, #e11fcb 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Layered background: radial glows + faint grid */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.glow--1 {
  width: 620px; height: 620px;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(110, 40, 234, 0.55), transparent 70%);
  animation: drift1 18s ease-in-out infinite alternate;
}
.glow--2 {
  width: 520px; height: 520px;
  bottom: -200px; right: -120px;
  background: radial-gradient(circle at center, rgba(225, 31, 203, 0.30), transparent 70%);
  animation: drift2 22s ease-in-out infinite alternate;
}
.glow--3 {
  width: 480px; height: 480px;
  bottom: -160px; left: -140px;
  background: radial-gradient(circle at center, rgba(166, 33, 228, 0.22), transparent 70%);
  animation: drift3 26s ease-in-out infinite alternate;
}
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, #000 40%, transparent 100%);
}
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 30%, transparent 40%, var(--bg) 100%);
}

@keyframes drift1 { to { transform: translateX(-50%) translateY(40px); } }
@keyframes drift2 { to { transform: translate(-30px, -30px); } }
@keyframes drift3 { to { transform: translate(30px, -20px); } }

/* Layout */
.page {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px clamp(20px, 5vw, 56px) 64px;
}

/* Site header / nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 5vw, 56px);
}
.site-brand { display: inline-flex; }
.site-brand img { height: 30px; width: auto; display: block; }
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo {
  width: min(440px, 82vw);
  height: auto;
  margin-bottom: 34px;
  filter: drop-shadow(0 12px 40px rgba(110, 40, 234, 0.35));
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(12px, 1.8vw, 14px);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f0e9ff;
  padding: 9px 18px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid rgba(166, 33, 228, 0.45);
  background:
    linear-gradient(rgba(20, 8, 34, 0.6), rgba(20, 8, 34, 0.6)) padding-box,
    var(--grad) border-box;
  box-shadow:
    0 0 24px rgba(166, 33, 228, 0.45),
    inset 0 0 18px rgba(166, 33, 228, 0.15);
  backdrop-filter: blur(8px);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both,
             badgeGlow 3.6s ease-in-out infinite;
}
/* Light sweep passing over the badge */
.eyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep {
  0%   { left: -60%; }
  45%  { left: 130%; }
  100% { left: 130%; }
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 22px rgba(166, 33, 228, 0.35), inset 0 0 18px rgba(166, 33, 228, 0.12); }
  50% { box-shadow: 0 0 34px rgba(225, 31, 203, 0.55), inset 0 0 22px rgba(166, 33, 228, 0.2); }
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 20px;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}
h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 40px;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Generic content page (e.g. /services) */
.content {
  max-width: 640px;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}
.content h1 { max-width: none; margin-bottom: 24px; }
.content p {
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 18px;
}
.content p:last-child { margin-bottom: 0; }

.pill-link {
  display: inline-block;
  margin-top: 28px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 12px;
  background: var(--grad);
  background-size: 160% 160%;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background-position 0.5s ease;
  box-shadow: 0 8px 24px rgba(140, 34, 220, 0.35);
}
.pill-link:hover {
  transform: translateY(-1px);
  background-position: 100% 0;
  box-shadow: 0 12px 32px rgba(140, 34, 220, 0.5);
}

/* Signup form */
form {
  display: flex;
  gap: 10px;
  width: min(520px, 100%);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
}
.field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.field svg {
  position: absolute;
  left: 16px;
  z-index: 1;
  width: 18px; height: 18px;
  color: var(--muted);
  pointer-events: none;
}
input[type="email"] {
  width: 100%;
  padding: 16px 16px 16px 46px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  backdrop-filter: blur(8px);
}
input[type="email"]::placeholder { color: var(--muted); opacity: 0.75; }
input[type="email"]:focus {
  border-color: rgba(166, 33, 228, 0.6);
  box-shadow: 0 0 0 4px rgba(166, 33, 228, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

#submit {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  padding: 0 26px;
  border: none;
  border-radius: 14px;
  background: var(--grad);
  background-size: 160% 160%;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background-position 0.5s ease;
  box-shadow: 0 8px 24px rgba(140, 34, 220, 0.35);
}
#submit:hover {
  transform: translateY(-1px);
  background-position: 100% 0;
  box-shadow: 0 12px 32px rgba(140, 34, 220, 0.5);
}
#submit:active { transform: translateY(0); }
#submit:disabled { opacity: 0.6; cursor: default; transform: none; }

.note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}
.note.success { color: #58e39a; }

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 26px clamp(20px, 5vw, 56px);
  font-size: 13px;
  color: var(--muted);
}
footer a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}
/* Animated gradient underline that grows in on hover */
footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
footer a:hover {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hueShift 2.5s linear infinite;
}
footer a:hover::after {
  transform: scaleX(1);
  animation: hueShift 2.5s linear infinite;
}
@keyframes hueShift {
  to { background-position: 200% center; }
}

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

/* Holiday modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(4, 2, 10, 0.72);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.35s ease both;
}
/* Fireworks canvas — sits above the backdrop, behind the card */
.modal__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.modal__card {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  text-align: center;
  padding: 34px 32px 32px;
  border-radius: 22px;
  border: 1px solid transparent;
  background:
    linear-gradient(#100a1c, #0c0716) padding-box,
    var(--grad) border-box;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(166, 33, 228, 0.35);
  animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.modal__close:hover { color: var(--text); }

.flag {
  display: inline-block;
  width: 84px;
  margin-bottom: 18px;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transform-origin: left center;
  animation: wave 5s ease-in-out infinite;
}
.flag svg { display: block; width: 100%; height: auto; border-radius: 4px; }

.modal__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.modal__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 26px;
}
.modal__cta {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  padding: 13px 34px;
  border: none;
  border-radius: 12px;
  background: var(--grad);
  background-size: 160% 160%;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background-position 0.5s ease;
  box-shadow: 0 8px 24px rgba(140, 34, 220, 0.35);
}
.modal__cta:hover {
  transform: translateY(-1px);
  background-position: 100% 0;
  box-shadow: 0 12px 32px rgba(140, 34, 220, 0.5);
}
.modal__cta:active { transform: translateY(0); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wave {
  0%, 100% { transform: skewX(0deg) skewY(0deg); }
  20% { transform: skewX(-3deg) skewY(0.7deg); }
  40% { transform: skewX(2.2deg) skewY(-0.5deg); }
  60% { transform: skewX(-1.4deg) skewY(0.4deg); }
  80% { transform: skewX(0.8deg) skewY(-0.2deg); }
}

@media (max-width: 540px) {
  form { flex-direction: column; }
  #submit { padding: 15px; }
  .logo { width: min(300px, 66vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
