:root {
  --purple: #af62e7;
  --purple-deep: #7412f4;
  --purple-line: #ecd9fa;
  --ink: #080808;
  --muted: #8f8d93;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Mulish", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-header {
  position: fixed;
  top: clamp(16px, 4vw, 54px);
  left: 50%;
  z-index: 20;
  width: min(78vw, 1120px);
  min-height: 72px;
  display: grid;
  grid-template-columns: 180px 1fr 56px 210px;
  align-items: center;
  padding: 8px clamp(20px, 3.5vw, 50px);
  border: 1px solid var(--purple-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(87, 26, 146, 0.06);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: 64px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-logo-dark {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 78px);
  font-size: clamp(0.9rem, 1.05vw, 1.18rem);
  font-weight: 500;
}

.nav-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 30;
  display: grid;
  gap: 6px;
  min-width: 230px;
  padding: 14px;
  border: 1px solid var(--purple-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 50px rgba(87, 26, 146, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-dropdown a {
  padding: 11px 14px;
  border-radius: 12px;
  color: #17131c;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  color: var(--purple-deep);
  background: #f8efff;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.contact-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple));
  font-family: inherit;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(125, 29, 242, 0.15);
  cursor: pointer;
}

.contact-button {
  justify-self: end;
  width: 150px;
  min-height: 46px;
  font-size: clamp(0.9rem, 1.05vw, 1.1rem);
  transform: translateX(-24px);
}

.contact-hero {
  position: relative;
  isolation: isolate;
  width: min(88vw, 1290px);
  display: grid;
  grid-template-columns: minmax(430px, 0.82fr) minmax(600px, 1.08fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
  margin: clamp(178px, 15vw, 220px) auto 112px;
}

.contact-hero::before {
  position: absolute;
  z-index: -1;
  top: 51%;
  left: 66%;
  width: min(620px, 48vw);
  height: min(720px, 56vw);
  border-radius: 45%;
  background: radial-gradient(circle, rgba(125, 29, 242, 0.66), rgba(179, 98, 237, 0.38) 42%, rgba(255, 255, 255, 0) 70%);
  content: "";
  filter: blur(10px);
  transform: translate(-50%, -50%);
}

.contact-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 28px;
  font-size: clamp(1.2rem, 1.8vw, 1.62rem);
  font-weight: 600;
}

.contact-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 3.6vw, 4.05rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.contact-copy h1 span {
  color: var(--purple-deep);
}

.intro {
  max-width: 550px;
  margin: 36px 0 58px;
  color: var(--muted);
  font-size: clamp(1.26rem, 1.85vw, 1.72rem);
  line-height: 1.55;
  font-weight: 500;
}

.contact-details {
  display: grid;
  gap: 46px;
}

.detail-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 28px;
  align-items: center;
}

.detail-icon {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  color: #67636d;
}

.detail-row p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  line-height: 1.25;
}

.detail-row a,
.detail-row span {
  color: #0a0a0a;
  font-size: clamp(0.98rem, 1.1vw, 1.12rem);
  line-height: 1.35;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 28px;
  width: 100%;
  min-height: 690px;
  padding: clamp(46px, 5.1vw, 72px) clamp(44px, 5.6vw, 80px);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 76px rgba(35, 17, 52, 0.08);
}

.contact-form h2 {
  margin: 0 0 22px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.1;
  font-weight: 900;
}

.contact-form label {
  display: grid;
  gap: 18px;
  min-width: 0;
  color: #17131c;
  font-size: clamp(1.05rem, 1.42vw, 1.34rem);
  font-weight: 600;
}

.form-split {
  display: grid;
  grid-template-columns: 1fr 0.84fr;
  gap: 46px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid #dddce1;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--purple);
}

.submit-button {
  justify-self: center;
  width: 216px;
  min-height: 60px;
  margin-top: 14px;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(34px, 6vw, 92px);
  padding: clamp(64px, 7vw, 86px) max(58px, calc((100vw - 1280px) / 2));
  color: #fff;
  background: #000;
}

.site-footer h2 {
  margin: 0 0 34px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.1;
  font-weight: 800;
}

.site-footer p {
  margin: 0 0 22px;
  color: #d0d0d0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.footer-column {
  min-width: 0;
}

.social-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.social-links a {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #d7a4ff;
  border-radius: 50%;
  color: #f4dcff;
}

.social-links svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.7;
}

.footer-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
  color: #fff;
}

.footer-row a,
.footer-links a {
  color: #fff;
}

.footer-icon {
  display: block;
  width: 28px;
  height: 28px;
  color: #d8d8d8;
}

.footer-links {
  display: grid;
  gap: 22px;
  font-size: 1.08rem;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1240px) {
  .contact-header {
    grid-template-columns: auto 1fr auto auto;
    width: calc(100% - 28px);
    min-height: 58px;
    padding: 7px 14px;
  }

  .brand {
    width: 46px;
  }

  .nav-links {
    display: none;
  }

  .contact-button {
    width: auto;
    min-height: 40px;
    padding: 0 22px;
  }

  .contact-hero {
    width: min(100% - 32px, 680px);
    grid-template-columns: 1fr;
    margin-top: 72px;
  }

  .contact-hero::before {
    top: 52%;
    left: 50%;
    width: 92vw;
    height: 92vw;
  }

  .contact-form {
    min-height: 0;
    border-radius: 28px;
  }

  .form-split,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-inline: 32px;
  }
}

@media (max-width: 560px) {
  .contact-copy h1 {
    font-size: 2.35rem;
  }

  .intro {
    font-size: 1.08rem;
  }

  .detail-row {
    grid-template-columns: 42px 1fr;
    gap: 18px;
  }

  .detail-icon {
    width: 40px;
  }

  .contact-form {
    padding: 34px 24px;
  }

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