:root {
  --midnight: #04060c;
  --electric-deep: #0b3b99;
  --electric-bright: #2589ff;
  --cantaloupe: #ff945c;
  --cantaloupe-soft: #ffb085;
  --ink: #f4f7ff;
  --ink-muted: rgba(226, 236, 255, 0.78);
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  height: 100%;
}

body {
  background-color: var(--midnight);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 85% 90% at 50% 45%,
    #08142e 0%,
    var(--midnight) 72%
  );
}

.glow-blue {
  position: absolute;
  inset: -10% 0 0 0;
  background:
    radial-gradient(
      ellipse 34% 68% at 50% 48%,
      rgba(37, 137, 255, 0.42) 0%,
      rgba(11, 59, 153, 0.36) 42%,
      transparent 75%
    ),
    radial-gradient(
      ellipse 56% 52% at 50% 58%,
      rgba(22, 104, 227, 0.24) 0%,
      transparent 72%
    );
  animation: breatheBlue 10s ease-in-out infinite alternate;
}

.glow-cantaloupe {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: min(92vw, 760px);
  height: 56vh;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 58% 68% at 50% 78%,
    rgba(255, 148, 92, 0.58) 0%,
    rgba(255, 176, 133, 0.24) 38%,
    transparent 74%
  );
  animation: breatheCantaloupe 8s ease-in-out infinite alternate;
}

.fluted-glass {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    rgba(4, 6, 12, 0.14) 1px,
    rgba(4, 6, 12, 0.14) 11px
  );
  mask-image: radial-gradient(ellipse 70% 85% at 50% 55%, #000 35%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 70% 85% at 50% 55%, #000 35%, transparent 95%);
}

.layout {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  display: flex;
  align-items: center;
}

.brand {
  font-family: "Syne", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.accent {
  color: var(--cantaloupe);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 6vh;
}

.headline {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7.5vw, 5.75rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.headline em {
  font-style: italic;
}

.line-mask {
  display: inline-block;
  overflow: hidden;
  padding: 0.04em 0.08em 0.08em;
}

.line-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(105%);
  animation: revealUp 0.9s var(--ease-editorial) var(--delay, 0ms) forwards;
}

.subcopy {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--ink-muted);
  max-width: 46ch;
  margin-bottom: 1.75rem;
}

.client-pill {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 6px;
  background: rgba(37, 137, 255, 0.16);
  border: 1px solid rgba(37, 137, 255, 0.35);
  color: var(--ink);
  font-weight: 500;
}

.gate-card {
  width: min(92vw, 480px);
  padding: 1rem;
  border-radius: 16px;
  background: rgba(8, 16, 36, 0.68);
  border: 1px solid rgba(226, 236, 255, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  margin-bottom: 1.5rem;
}

.input-row {
  display: flex;
  gap: 0.6rem;
}

.input-row input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(226, 236, 255, 0.16);
  background: rgba(4, 6, 12, 0.72);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-row input::placeholder {
  color: rgba(226, 236, 255, 0.45);
}

.input-row input:focus {
  border-color: var(--electric-bright);
  box-shadow: 0 0 0 3px rgba(37, 137, 255, 0.2);
}

.input-row button {
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  border: 0;
  background: var(--electric-bright);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.input-row button:hover {
  background: #3a96ff;
}

.input-row button:active {
  transform: translateY(1px);
}

.error {
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 92, 92, 0.14);
  border: 1px solid rgba(255, 92, 92, 0.38);
  color: #ffb8b8;
  font-size: 0.9rem;
  text-align: left;
}

.helper-copy {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.mail-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1.5px solid var(--cantaloupe);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mail-link:hover {
  color: var(--cantaloupe-soft);
  border-bottom-color: var(--cantaloupe-soft);
}

.mail-link:focus-visible {
  outline: 2px solid var(--cantaloupe);
  outline-offset: 4px;
}

.reveal-fade {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.8s var(--ease-editorial) var(--delay, 0ms) forwards;
}

@media (max-width: 520px) {
  .input-row {
    flex-direction: column;
  }
}

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

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

@keyframes breatheBlue {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.06) translateY(-1.5%);
    opacity: 1;
  }
}

@keyframes breatheCantaloupe {
  0% {
    transform: translateX(-50%) scale(0.96);
    opacity: 0.82;
  }
  100% {
    transform: translateX(-50%) scale(1.06);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .line-reveal,
  .reveal-fade,
  .glow-blue,
  .glow-cantaloupe {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .glow-cantaloupe {
    transform: translateX(-50%);
  }
}
