:root {
  --bg-top: #08141b;
  --bg-mid: #061017;
  --bg-deep: #03080d;
  --text-main: rgba(245, 248, 251, 0.94);
  --text-soft: rgba(217, 224, 231, 0.72);
  --text-muted: rgba(205, 215, 224, 0.52);
  --line: rgba(255, 255, 255, 0.12);
  --card-fill: rgba(15, 26, 35, 0.46);
  --card-fill-2: rgba(10, 19, 28, 0.34);
  --card-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Outfit", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(47, 89, 116, 0.28), transparent 38%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 34%, var(--bg-deep) 100%);
  color: var(--text-main);
  overflow-x: hidden;
}

.scene,
.scene::before,
.scene::after,
.vignette,
.beams,
.seabed,
.grain,
.depth-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scene::before {
  content: "";
  background:
    radial-gradient(circle at 50% 2%, rgba(143, 190, 214, 0.18), transparent 18%),
    radial-gradient(circle at 17% 12%, rgba(49, 97, 126, 0.1), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(36, 78, 102, 0.12), transparent 25%);
  mix-blend-mode: screen;
}

.scene::after {
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(2, 7, 11, 0.1) 55%, rgba(2, 5, 8, 0.54) 100%);
}

.beams {
  opacity: 0.5;
  background:
    radial-gradient(ellipse at top center, rgba(127, 176, 207, 0.08), transparent 42%),
    linear-gradient(90deg,
      transparent 0%,
      transparent 8%,
      rgba(150, 195, 223, 0.04) 10%,
      transparent 15%,
      transparent 22%,
      rgba(134, 182, 209, 0.06) 25%,
      transparent 31%,
      transparent 39%,
      rgba(127, 175, 201, 0.05) 42%,
      transparent 48%,
      transparent 56%,
      rgba(120, 169, 197, 0.06) 60%,
      transparent 65%,
      transparent 73%,
      rgba(142, 191, 217, 0.045) 76%,
      transparent 81%,
      transparent 88%,
      rgba(134, 182, 208, 0.04) 90%,
      transparent 95%,
      transparent 100%);
  filter: blur(1.6px);
}

.vignette {
  background:
    radial-gradient(circle at center, transparent 28%, rgba(0, 0, 0, 0.24) 68%, rgba(0, 0, 0, 0.62) 100%);
}

.depth-glow-left {
  background: radial-gradient(circle at 22% 70%, rgba(0, 108, 101, 0.12), transparent 32%);
  filter: blur(40px);
}

.depth-glow-right {
  background: radial-gradient(circle at 84% 74%, rgba(0, 114, 109, 0.1), transparent 26%);
  filter: blur(44px);
}

.seabed {
  inset: auto -8vw 0;
  height: 32vh;
  min-height: 180px;
  background:
    radial-gradient(ellipse at 18% 100%, rgba(19, 59, 57, 0.62), transparent 36%),
    radial-gradient(ellipse at 38% 100%, rgba(14, 47, 48, 0.82), transparent 31%),
    radial-gradient(ellipse at 52% 100%, rgba(11, 41, 42, 0.78), transparent 28%),
    radial-gradient(ellipse at 67% 100%, rgba(14, 48, 49, 0.8), transparent 30%),
    radial-gradient(ellipse at 82% 100%, rgba(12, 39, 43, 0.82), transparent 28%),
    radial-gradient(ellipse at 96% 100%, rgba(16, 53, 49, 0.58), transparent 36%);
  filter: blur(1px);
}

.grain {
  opacity: 0.06;
  background-image: radial-gradient(rgba(255,255,255,.95) .5px, transparent .6px);
  background-size: 8px 8px;
  mix-blend-mode: soft-light;
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 40px);
}

.card {
  width: min(780px, 100%);
  min-height: min(58vh, 560px);
  padding: clamp(30px, 5vw, 58px) clamp(24px, 6vw, 78px);
  border-radius: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(31, 47, 62, 0.3), rgba(8, 15, 22, 0.3)),
    linear-gradient(135deg, var(--card-fill) 0%, var(--card-fill-2) 100%);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 24%),
    radial-gradient(circle at 50% -8%, rgba(148, 194, 221, 0.07), transparent 38%);
  pointer-events: none;
}

.eyebrow,
h1,
.lead,
.email {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 clamp(28px, 4.6vw, 42px);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(236, 241, 246, 0.78);
}

h1 {
  margin: 0;
  max-width: 10.4ch;
  font-size: clamp(2.6rem, 5.9vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 400;
  text-wrap: balance;
}

.lead {
  margin: clamp(26px, 3vw, 32px) 0 0;
  max-width: 31ch;
  font-size: clamp(1rem, 1.62vw, 1.42rem);
  line-height: 1.9;
  color: var(--text-soft);
  font-weight: 300;
  text-wrap: pretty;
}

.email {
  display: inline-block;
  margin-top: clamp(42px, 5.6vw, 64px);
  padding-bottom: 8px;
  color: rgba(249, 251, 253, 0.92);
  text-decoration: none;
  font-size: clamp(1.15rem, 1.85vw, 1.58rem);
  line-height: 1.2;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.email:hover,
.email:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.email:focus-visible {
  outline: 2px solid rgba(214, 233, 247, 0.35);
  outline-offset: 6px;
}


@media (max-width: 900px) {
  .card {
    width: min(720px, 100%);
    min-height: auto;
    border-radius: 28px;
  }

  h1 {
    max-width: 11.2ch;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 18px;
  }

  .beams {
    opacity: 0.4;
    filter: blur(2px);
  }

  .seabed {
    height: 26vh;
    min-height: 140px;
  }

  .card {
    width: 100%;
    padding: 26px 22px 28px;
    border-radius: 24px;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
  }

  h1 {
    max-width: 9.7ch;
    font-size: clamp(2.1rem, 10.8vw, 3.1rem);
    letter-spacing: -0.055em;
  }

  .lead {
    max-width: 24ch;
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.75;
  }

  .email {
    margin-top: 34px;
    font-size: 1.06rem;
    padding-bottom: 7px;
    word-break: break-word;
  }
}

@media (max-width: 380px) {
  .shell {
    padding: 14px;
  }

  .card {
    padding: 24px 18px 26px;
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(1.95rem, 10vw, 2.5rem);
  }

  .lead {
    max-width: 23ch;
    font-size: 0.95rem;
  }

  .email {
    font-size: 0.98rem;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card {
    background: linear-gradient(135deg, rgba(17, 28, 38, 0.85), rgba(9, 17, 24, 0.78));
  }
}
