:root {
  --pink: #fbd3f0;
  --aqua: #c4f7ff;
  --lav: #d9c7ff;
  --blue: #d3e8ff;

  --bg1: #ecf8ff;
  --bg2: #d8f0ff;
  --bg3: #cde7f7;
  --bg4: #bbe2fa;

  --ink: #07041b;
  --muted: rgba(7, 4, 27, 0.62);
  --glass: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(7, 4, 27, 0.12);

  --animation-1-delay: 0.25s;
  --animation-2-delay: 0.25s;
  --animation-3-delay: 2.35s;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html {
  width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  width: 100%;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  font-family: "Quicksand", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(
    circle at 50% 30%,
    var(--bg1) 0%,
    var(--bg2) 35%,
    var(--bg3) 65%,
    var(--bg4) 100%
  );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(251, 211, 240, 0.5), transparent 32%),
    radial-gradient(circle at 82% 16%, rgba(196, 247, 255, 0.62), transparent 34%),
    radial-gradient(circle at 52% 86%, rgba(217, 199, 255, 0.3), transparent 34%);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid rgba(7, 4, 27, 0.34);
  outline-offset: 4px;
}

/* Header and mobile navigation — matched to the homepage */
.site-header {
  position: fixed;
  top: clamp(10px, 1.8vw, 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(1240px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: fadeInSoft 0.75s ease forwards var(--animation-2-delay);
  pointer-events: none;
}

.site-header.is-visible {
  pointer-events: auto;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  display: block;
}

.brand span {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 4vw, 52px);
}

.nav-links a,
.header-actions a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav-links a::after,
.login-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

.nav-links a:hover::after,
.login-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.login-link {
  color: var(--ink);
}

.signup-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg1) !important;
  box-shadow: 0 16px 34px rgba(7, 4, 27, 0.18);
  letter-spacing: 0.02em !important;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.signup-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(7, 4, 27, 0.24);
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  margin: 0 auto;
}

.menu-btn span::before {
  transform: translateY(-7px);
}

.menu-btn span::after {
  transform: translateY(5px);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at 25% 20%, rgba(251, 211, 240, 0.62), transparent 36%),
    radial-gradient(circle at 80% 18%, rgba(196, 247, 255, 0.7), transparent 38%),
    radial-gradient(
      circle at 50% 30%,
      rgba(236, 248, 255, 0.92) 0%,
      rgba(216, 240, 255, 0.94) 38%,
      rgba(205, 231, 247, 0.96) 70%,
      rgba(187, 226, 250, 0.98) 100%
    );
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-content {
  position: relative;
  width: min(420px, 100%);
  min-height: min(560px, calc(100svh - 56px));
  border-radius: 32px;
  border: 1px solid rgba(7, 4, 27, 0.12);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 24px 70px rgba(7, 4, 27, 0.12);
  backdrop-filter: blur(18px);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: scale(0.96);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open .mobile-menu-content {
  transform: scale(1);
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mobile-menu-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}

.mobile-menu-brand img {
  width: 32px;
  height: 32px;
  display: block;
}

.menu-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  position: relative;
  transition: transform 0.28s ease, background 0.28s ease;
}

.menu-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.72);
}

.menu-close::before,
.menu-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.menu-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-links {
  display: grid;
  gap: 8px;
  margin: 46px 0;
  justify-items: center;
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 17px 4px;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(28px, 9vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  border-bottom: 1px solid rgba(7, 4, 27, 0.1);
  opacity: 0;
  transform: translateY(14px);
  text-align: center;
}

.mobile-menu.is-open .mobile-menu-links a {
  animation: mobileLinkIn 0.56s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-menu.is-open .mobile-menu-links a:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(2) { animation-delay: 0.14s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(3) { animation-delay: 0.20s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(4) { animation-delay: 0.26s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(5) { animation-delay: 0.32s; }

.mobile-menu-actions {
  display: grid;
  gap: 10px;
}

.mobile-menu-signup {
  min-height: 50px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bg1);
  background: var(--ink);
  box-shadow: 0 18px 44px rgba(7, 4, 27, 0.18);
}

/* Page */
.contact-page {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - clamp(28px, 4vw, 48px)));
  margin: 0 auto;
  padding:
    max(142px, calc(env(safe-area-inset-top) + 118px))
    0
    max(100px, calc(env(safe-area-inset-bottom) + 72px));
}

.contact-hero {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  animation: panelIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.28s;
}

.contact-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.contact-hero p {
  max-width: 610px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.62;
  font-weight: 500;
  text-wrap: pretty;
}

.form-card {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 38px);
  border: 1px solid var(--glass-border);
  border-radius: 34px;
  background: var(--glass);
  box-shadow:
    0 28px 78px rgba(7, 4, 27, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateY(18px);
  animation: panelIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.42s;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 199, 255, 0.22), rgba(196, 247, 255, 0.08), transparent 68%);
  filter: blur(34px);
  pointer-events: none;
}

.form-heading {
  margin-bottom: 24px;
}

.form-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.form-heading p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

.contact-form {
  display: grid;
  gap: 13px;
}

.field-group {
  min-width: 0;
  display: grid;
  gap: 13px;
}

.two-column {
  grid-template-columns: 1fr 1fr;
}

.form-field {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.form-field > span {
  color: rgba(7, 4, 27, 0.66);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(7, 4, 27, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.44);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.form-field input,
.form-field select {
  height: 50px;
  padding: 0 15px;
}

.form-field textarea {
  min-height: 148px;
  max-height: 320px;
  padding: 14px 15px;
  line-height: 1.5;
  resize: vertical;
  overflow-y: auto;
  scrollbar-width: thin;
}

.form-field select {
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(7, 4, 27, 0.62) 50%),
    linear-gradient(135deg, rgba(7, 4, 27, 0.62) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 23px,
    calc(100% - 14px) 23px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(7, 4, 27, 0.36);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(7, 4, 27, 0.32);
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(196, 247, 255, 0.36);
}

.field-error {
  min-height: 0;
  color: #8a2338;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

.field-error:not(:empty) {
  min-height: 15px;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: rgba(138, 35, 56, 0.44);
  box-shadow: 0 0 0 4px rgba(138, 35, 56, 0.08);
}

.security-note {
  margin: 0;
  color: rgba(7, 4, 27, 0.5);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 600;
}

.form-message {
  min-height: 0;
  margin: 0;
  color: #8a2338;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.form-message:not(:empty) {
  min-height: 17px;
}

.submit-btn,
.secondary-btn {
  min-height: 52px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg1);
  box-shadow: 0 18px 38px rgba(7, 4, 27, 0.2);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s ease,
    opacity 0.3s ease;
}

.submit-btn {
  width: 100%;
  margin-top: 2px;
}

.submit-btn:hover,
.secondary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(7, 4, 27, 0.26);
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-success {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.form-success[hidden] {
  display: none;
}

.success-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--aqua));
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(7, 4, 27, 0.1);
}

.form-success h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.form-success p {
  max-width: 430px;
  margin: 15px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

.secondary-btn {
  min-width: 210px;
  padding: 0 22px;
}

.contact-details {
  width: min(820px, 100%);
  margin: 22px auto 0;
  padding: clamp(24px, 3.2vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: rgba(7, 4, 27, 0.91);
  color: var(--bg1);
  box-shadow:
    0 26px 72px rgba(7, 4, 27, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(18px);
  animation: panelIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.56s;
}

.detail-block {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-label {
  display: block;
  margin-bottom: 11px;
  color: rgba(236, 248, 255, 0.48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-block h2 {
  margin: 0;
  color: var(--bg1);
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.detail-block p {
  margin: 12px 0 0;
  color: rgba(236, 248, 255, 0.62);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.detail-link {
  position: relative;
  display: inline-block;
  margin-top: 18px;
  color: var(--aqua);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.detail-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

.detail-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.detail-divider {
  width: 1px;
  min-height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(196, 247, 255, 0.24),
    rgba(251, 211, 240, 0.2),
    transparent
  );
}

.detail-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--bg1);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease,
    border-color 0.35s ease;
}

.detail-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.13);
}

/* Footer — matched to the homepage */
.site-footer {
  position: relative;
  z-index: 5;
  width: min(1240px, calc(100% - 48px));
  min-height: 118px;
  margin: 0 auto;
  padding: 34px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(7, 4, 27, 0.1);
  color: rgba(7, 4, 27, 0.62);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(520px, 72vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(251, 211, 240, 0.68),
    rgba(196, 247, 255, 0.78),
    transparent
  );
}

.footer-brand {
  display: grid;
  gap: 4px;
}

.footer-copyright {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-universe {
  margin: 0;
  color: rgba(7, 4, 27, 0.56);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-universe span {
  margin: 0 5px;
  color: rgba(7, 4, 27, 0.34);
}

.footer-universe a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.footer-universe a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

.footer-universe a:hover::after,
.footer-universe a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  text-align: right;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.footer-legal a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.footer-legal a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

.footer-legal a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.footer-legal span {
  color: rgba(7, 4, 27, 0.36);
}

@media (max-width: 700px) {
  .site-footer {
    width: min(100%, calc(100% - 32px));
    min-height: 142px;
    padding: 30px 0 34px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
  }

  .footer-legal {
    justify-content: flex-start;
    text-align: left;
    gap: 7px;
  }
}

/* Same glass treatment used by the homepage header over its scrollable pricing stage. */
.site-header {
  transition:
    padding 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  padding: 10px 14px;
  border: 1px solid rgba(7, 4, 27, 0.1);
  border-radius: 999px;
  background: rgba(236, 248, 255, 0.68);
  box-shadow: 0 16px 44px rgba(7, 4, 27, 0.09);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (max-width: 900px) {
  .site-header.is-scrolled {
    padding: 8px 10px;
  }
}

@keyframes fadeInSoft {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes panelIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileLinkIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Homepage header breakpoint */
@media (max-width: 900px) {
  .site-header {
    top: 14px;
    width: min(100%, calc(100% - 32px));
    grid-template-columns: 1fr auto;
  }

  .nav-links,
  .header-actions {
    display: none;
  }

  .menu-btn {
    justify-self: end;
    display: block;
  }

  .contact-page {
    width: min(900px, calc(100% - 36px));
    padding-top: 122px;
  }
}

/* Homepage phone header and mobile menu sizing */
@media (max-width: 520px) {
  .site-header {
    top: 12px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .brand span {
    font-size: 15px;
  }

  .mobile-menu {
    padding: 16px;
  }

  .mobile-menu-content {
    min-height: calc(100svh - 32px);
    border-radius: 28px;
    padding: 22px;
  }

  .mobile-menu-links {
    margin: 40px 0;
  }
}

@media (max-width: 760px) {
  .contact-page {
    width: min(100%, calc(100% - 28px));
    padding: 112px 0 72px;
  }

  .contact-hero {
    max-width: 620px;
    margin-bottom: 26px;
  }

  .contact-hero h1 {
    font-size: clamp(38px, 12vw, 54px);
    line-height: 1;
    letter-spacing: -0.06em;
  }

  .contact-hero p {
    max-width: 540px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.58;
  }

  .form-card {
    padding: clamp(20px, 5vw, 26px);
    border-radius: 28px;
  }

  .form-heading {
    margin-bottom: 21px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .form-success {
    min-height: clamp(330px, 64svh, 430px);
    padding: 18px 0;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: clamp(23px, 5vw, 28px);
    border-radius: 28px;
  }

  .detail-divider {
    width: 100%;
    min-height: 1px;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(196, 247, 255, 0.24),
      rgba(251, 211, 240, 0.2),
      transparent
    );
  }
}

@media (max-width: 480px) {
  .contact-page {
    width: min(100%, calc(100% - 20px));
  }

  .form-card {
    padding: 20px 16px;
    border-radius: 24px;
  }

  .form-heading h2 {
    font-size: clamp(28px, 9vw, 32px);
  }

  .form-field input,
  .form-field select {
    height: 48px;
    border-radius: 16px;
  }

  .form-field textarea {
    min-height: 132px;
    border-radius: 16px;
  }

  .submit-btn,
  .secondary-btn {
    min-height: 50px;
  }

  .secondary-btn {
    width: 100%;
    min-width: 0;
  }

  .contact-details {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .detail-button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .contact-page {
    width: calc(100% - 16px);
  }

  .contact-hero h1 {
    font-size: 36px;
  }

  .form-card {
    padding: 18px 14px;
  }

  .contact-details {
    padding: 20px 16px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .submit-btn:hover,
  .secondary-btn:hover {
    transform: translateY(-3px);
  }

  .detail-button:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .site-header {
    opacity: 1;
  }

  .mobile-menu.is-open .mobile-menu-links a {
    opacity: 1;
    transform: none;
  }
}

.form-content[hidden] {
  display: none;
}

/* =========================================================
   HOW IT WORKS — EXACT HEADER, MOBILE MENU & FOOTER
   ========================================================= */
.site-header {
  position: fixed;
  top: clamp(10px, 1.8vw, 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1240px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: fadeInSoft 0.75s ease forwards var(--animation-2-delay);
  pointer-events: none;
  transition:
    padding 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header.is-visible {
  pointer-events: auto;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  display: block;
}

.brand span {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 4vw, 52px);
}

.nav-links a,
.header-actions a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav-links a::after,
.login-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

.nav-links a:hover::after,
.login-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.login-link {
  color: var(--ink);
}

.signup-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg1) !important;
  box-shadow: 0 16px 34px rgba(7, 4, 27, 0.18);
  letter-spacing: 0.02em !important;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.signup-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(7, 4, 27, 0.24);
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  margin: 0 auto;
}

.menu-btn span::before {
  transform: translateY(-7px);
}

.menu-btn span::after {
  transform: translateY(5px);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at 25% 20%, rgba(251, 211, 240, 0.62), transparent 36%),
    radial-gradient(circle at 80% 18%, rgba(196, 247, 255, 0.7), transparent 38%),
    radial-gradient(
      circle at 50% 30%,
      rgba(236, 248, 255, 0.92) 0%,
      rgba(216, 240, 255, 0.94) 38%,
      rgba(205, 231, 247, 0.96) 70%,
      rgba(187, 226, 250, 0.98) 100%
    );
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-content {
  position: relative;
  width: min(420px, 100%);
  min-height: min(560px, calc(100svh - 56px));
  border-radius: 32px;
  border: 1px solid rgba(7, 4, 27, 0.12);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 24px 70px rgba(7, 4, 27, 0.12);
  backdrop-filter: blur(18px);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: scale(0.96);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open .mobile-menu-content {
  transform: scale(1);
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mobile-menu-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}

.mobile-menu-brand img {
  width: 32px;
  height: 32px;
  display: block;
}

.menu-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  position: relative;
  transition: transform 0.28s ease, background 0.28s ease;
}

.menu-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.72);
}

.menu-close::before,
.menu-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.menu-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-links {
  display: grid;
  gap: 8px;
  margin: 46px 0;
  justify-items: center;
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 17px 4px;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(28px, 9vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  border-bottom: 1px solid rgba(7, 4, 27, 0.1);
  opacity: 0;
  transform: translateY(14px);
  text-align: center;
}

.mobile-menu.is-open .mobile-menu-links a {
  animation: mobileLinkIn 0.56s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-menu.is-open .mobile-menu-links a:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(2) { animation-delay: 0.14s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(3) { animation-delay: 0.20s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(4) { animation-delay: 0.26s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(5) { animation-delay: 0.32s; }

.mobile-menu-actions {
  display: grid;
  gap: 10px;
}

.mobile-menu-signup {
  min-height: 50px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bg1);
  background: var(--ink);
  box-shadow: 0 18px 44px rgba(7, 4, 27, 0.18);
}

body.menu-open {
  overflow: hidden;
}

.site-header.is-scrolled {
  padding: 10px 14px;
  border: 1px solid rgba(7, 4, 27, 0.1);
  border-radius: 999px;
  background: rgba(236, 248, 255, 0.68);
  box-shadow: 0 16px 44px rgba(7, 4, 27, 0.09);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-footer {
  position: relative;
  z-index: 5;
  width: min(1240px, calc(100% - 48px));
  min-height: 118px;
  margin: 0 auto;
  padding: 34px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(7, 4, 27, 0.1);
  color: rgba(7, 4, 27, 0.62);
  font-size: initial;
  text-align: initial;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(520px, 72vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(251, 211, 240, 0.68),
    rgba(196, 247, 255, 0.78),
    transparent
  );
}

.site-footer .footer-brand {
  justify-self: auto;
  display: grid;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

.site-footer .footer-copyright {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
}

.site-footer .footer-universe {
  margin: 0;
  color: rgba(7, 4, 27, 0.56);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
}

.footer-universe span {
  margin: 0 5px;
  color: rgba(7, 4, 27, 0.34);
}

.footer-universe a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.footer-universe a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

.footer-universe a:hover::after,
.footer-universe a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.site-footer .footer-legal {
  justify-self: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  text-align: right;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.footer-legal a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.footer-legal a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

.footer-legal a:hover::after,
.footer-legal a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.footer-legal span {
  color: rgba(7, 4, 27, 0.36);
}

@media (max-width: 900px) {
  .site-header {
    top: 14px;
    width: min(100%, calc(100% - 32px));
    grid-template-columns: 1fr auto;
  }

  .nav-links,
  .header-actions {
    display: none;
  }

  .menu-btn {
    justify-self: end;
    display: block;
  }
}

@media (max-width: 700px) {
  .site-footer {
    width: min(100%, calc(100% - 32px));
    min-height: 142px;
    padding: 30px 0 34px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
  }

  .site-footer .footer-legal {
    justify-content: flex-start;
    text-align: left;
    gap: 7px;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 14px;
  }

  .brand img,
  .mobile-menu-brand img {
    width: 32px;
    height: 32px;
  }

  .brand span,
  .mobile-menu-brand {
    font-size: 17px;
  }

  .mobile-menu {
    padding: 16px;
  }

  .mobile-menu-content {
    min-height: calc(100svh - 32px);
    border-radius: 28px;
    padding: 22px;
  }

  .mobile-menu-links {
    margin: 46px 0;
  }
}
