:root {
  --bg: #060816;
  --bg-secondary: #090f22;
  --bg-tertiary: #070b16;
  --panel: rgba(12, 16, 35, 0.78);
  --panel-border: rgba(146, 166, 255, 0.22);
  --text: #f7f8ff;
  --heading: #ffffff;
  --muted: #a6adc9;
  --accent: #77e0ff;
  --accent-strong: #7a6dff;
  --button-text: #04101d;
  --success-bg: rgba(97, 214, 155, 0.14);
  --success-border: rgba(97, 214, 155, 0.4);
  --error-bg: rgba(255, 112, 112, 0.16);
  --error-border: rgba(255, 112, 112, 0.4);
  --grid-line: rgba(255, 255, 255, 0.03);
  --grid-mask: radial-gradient(circle at center, black, transparent 82%);
  --ambient-one-color: rgba(122, 109, 255, 0.26);
  --ambient-two-color: rgba(119, 224, 255, 0.18);
  --ambient-three-color: rgba(248, 128, 255, 0.14);
  --card-surface: linear-gradient(180deg, rgba(18, 23, 48, 0.88), rgba(7, 10, 24, 0.8));
  --card-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%);
  --input-bg: rgba(2, 4, 10, 0.55);
  --input-focus-bg: rgba(2, 4, 10, 0.75);
  --input-border: rgba(166, 173, 201, 0.2);
  --input-placeholder: rgba(166, 173, 201, 0.7);
  --footer-text: rgba(166, 173, 201, 0.88);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.48);
}

html {
  min-height: 100%;
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(122, 109, 255, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(119, 224, 255, 0.14), transparent 30%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-tertiary) 40%, var(--bg-secondary) 100%);
}

body[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-secondary: #edf3ff;
  --bg-tertiary: #ffffff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-border: rgba(100, 130, 255, 0.2);
  --text: #172033;
  --heading: #0d172d;
  --muted: #5f6c88;
  --accent: #0d85d8;
  --accent-strong: #5f4cff;
  --button-text: #ffffff;
  --success-bg: rgba(56, 168, 107, 0.12);
  --success-border: rgba(56, 168, 107, 0.3);
  --error-bg: rgba(214, 71, 71, 0.12);
  --error-border: rgba(214, 71, 71, 0.24);
  --grid-line: rgba(20, 31, 58, 0.05);
  --grid-mask: radial-gradient(circle at center, black, transparent 78%);
  --ambient-one-color: rgba(109, 163, 255, 0.18);
  --ambient-two-color: rgba(117, 224, 255, 0.2);
  --ambient-three-color: rgba(255, 173, 94, 0.16);
  --card-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(243, 247, 255, 0.82));
  --card-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.08) 40%, transparent 100%);
  --input-bg: rgba(244, 247, 253, 0.88);
  --input-focus-bg: rgba(255, 255, 255, 0.96);
  --input-border: rgba(96, 115, 160, 0.22);
  --input-placeholder: rgba(95, 108, 136, 0.72);
  --footer-text: rgba(70, 82, 110, 0.88);
  --shadow: 0 26px 70px rgba(67, 92, 154, 0.18);

  background:
    radial-gradient(circle at top left, rgba(109, 163, 255, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(117, 224, 255, 0.16), transparent 28%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 45%, var(--bg-tertiary) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: var(--grid-mask);
  pointer-events: none;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.landing-page {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 48px 20px 24px;
  position: relative;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.85;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite;
}

.ambient-one {
  width: 220px;
  height: 220px;
  top: 14%;
  left: 8%;
  background: var(--ambient-one-color);
}

.ambient-two {
  width: 260px;
  height: 260px;
  right: 10%;
  top: 20%;
  background: var(--ambient-two-color);
  animation-delay: -4s;
}

.ambient-three {
  width: 180px;
  height: 180px;
  bottom: 16%;
  right: 22%;
  background: var(--ambient-three-color);
  animation-delay: -8s;
}

.landing-card {
  position: relative;
  width: min(100%, 720px);
  padding: 42px 40px 40px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--card-surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  animation: rise-in 700ms ease-out both;
}

.landing-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background: var(--card-highlight);
  pointer-events: none;
}

.brand-lockup {
  margin-bottom: 26px;
}

.brand-logo {
  max-width: 315px;
  max-height: 98px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  top: 40px;
  right: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(119, 224, 255, 0.1);
  border: 1px solid rgba(119, 224, 255, 0.18);
  color: var(--accent);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-card h1 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5.8vw, 4.15rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 16ch;
}

.lead-copy {
  margin: 0 0 14px;
  color: var(--heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
}

.support-copy {
  max-width: 34rem;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 3.4em;
}

.lead-form {
  position: relative;
  z-index: 1;
}

.input-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.lead-input {
  min-height: 62px;
  border-radius: 18px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  padding: 0 20px;
  font-size: 1rem;
}

.lead-input::placeholder {
  color: var(--input-placeholder);
}

.lead-input:focus {
  color: var(--text);
  background: var(--input-focus-bg);
  border-color: rgba(119, 224, 255, 0.62);
  box-shadow: 0 0 0 0.18rem rgba(119, 224, 255, 0.16);
}

.lead-button {
  min-width: 228px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--button-text);
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  box-shadow: 0 22px 34px rgba(122, 109, 255, 0.28);
}

.lead-button:hover,
.lead-button:focus {
  color: var(--button-text);
  transform: translateY(-1px);
  box-shadow: 0 26px 42px rgba(122, 109, 255, 0.34);
}

.form-alert {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.95rem;
}

.success-alert {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
}

.error-alert {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: #ffd0d0;
}

.validation-copy {
  display: inline-block;
  margin-top: 12px;
  color: #ffb5b5;
  font-size: 0.92rem;
}

.field-validation-error,
.validation-summary-errors ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 20px 28px;
  color: var(--footer-text);
  text-align: center;
  font-size: 0.92rem;
}

.footer-link {
  display: inline-flex;
  opacity: 0.92;
  transition: opacity 160ms ease, transform 160ms ease;
}

.footer-link:hover,
.footer-link:focus {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-logo {
  width: auto;
  height: 28px;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(18px, -24px, 0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767.98px) {
  .landing-card {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .eyebrow {
    top: 28px;
    right: 20px;
  }

  .landing-card h1 {
    font-size: clamp(2.35rem, 11vw, 4rem);
  }

  .input-row {
    flex-direction: column;
  }

  .lead-button {
    min-height: 58px;
    width: 100%;
  }

  .brand-logo {
    max-width: 258px;
    max-height: 80px;
  }

  .landing-page {
    padding-top: 28px;
  }
}
