:root {
  --bg: #040611;
  --bg-soft: rgba(7, 10, 25, 0.78);
  --card: rgba(9, 12, 26, 0.68);
  --line: rgba(255, 255, 255, 0.12);
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.76);
  --soft: rgba(255, 255, 255, 0.56);
  --red: #e20d14;
  --red-strong: #ff1f26;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(255, 35, 45, 0.12), transparent 28%),
    radial-gradient(circle at left center, rgba(70, 115, 255, 0.10), transparent 30%),
    linear-gradient(180deg, #02030a 0%, #050815 100%);
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 95%);
}

.glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.18;
}

.glow-left {
  background: #ff1f26;
  left: -120px;
  bottom: -120px;
}

.glow-right {
  background: #3d5afe;
  right: -120px;
  top: -120px;
}

.chart {
  position: absolute;
  width: 44vw;
  min-width: 320px;
  max-width: 680px;
  height: 180px;
  opacity: 0.18;
  filter: blur(1px);
}

.chart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.06));
  clip-path: polygon(
    0% 80%, 6% 65%, 12% 70%, 18% 42%, 24% 56%, 30% 28%, 36% 40%, 42% 24%,
    48% 32%, 54% 18%, 60% 48%, 66% 35%, 72% 52%, 78% 20%, 84% 31%, 90% 16%,
    96% 26%, 100% 10%, 100% 100%, 0% 100%
  );
  border-bottom: 2px solid rgba(255,255,255,0.18);
}

.chart::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
}

.chart-1 {
  left: 6vw;
  bottom: 10vh;
  transform: rotate(-4deg);
}

.chart-2 {
  right: 4vw;
  top: 16vh;
  transform: rotate(6deg);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.card {
  position: relative;
  width: min(780px, 100%);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    var(--card);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), transparent 28%),
    linear-gradient(315deg, rgba(255,31,38,0.10), transparent 32%);
  pointer-events: none;
}

.brand-wrap {
  padding: 30px 30px 0;
  text-align: center;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 18px 30px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--red-strong), #cf0b12);
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  border: 3px solid #111;
  box-shadow:
    0 10px 0 rgba(0,0,0,0.30),
    0 24px 50px rgba(226, 13, 20, 0.28);
}

.brand-subtitle {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 0.98rem;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 30px 34px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.86);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: clamp(1.18rem, 2vw, 1.7rem);
  line-height: 1.45;
  color: var(--muted);
}

.signup-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin: 34px auto 14px;
  max-width: 620px;
}

.signup-form input {
  width: 100%;
  min-height: 62px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.96);
  color: #111;
  font-size: 1.04rem;
  outline: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.signup-form input:focus {
  box-shadow: 0 0 0 4px rgba(255, 31, 38, 0.18);
}

.signup-form button {
  min-width: 180px;
  min-height: 62px;
  border: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--red-strong), #cd0b11);
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(226, 13, 20, 0.30);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.signup-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.signup-form button:active {
  transform: translateY(0);
}

.helper,
.trust-row,
.legal {
  color: var(--soft);
}

.helper {
  margin: 10px 0 0;
  font-size: 1.02rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 24px auto 0;
  font-size: 0.96rem;
}

.legal {
  margin: 28px auto 0;
  max-width: 560px;
  font-size: 0.87rem;
  line-height: 1.6;
}

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

@media (max-width: 780px) {
  .brand-wrap {
    padding: 20px 20px 0;
  }

  .content {
    padding: 24px 20px 28px;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .signup-form button {
    width: 100%;
  }

  .trust-row {
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .brand-pill {
    min-height: 62px;
    padding: 16px 18px;
    font-size: clamp(1.6rem, 9vw, 2.3rem);
    border-radius: 18px;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 3.4rem);
  }

  .lead {
    font-size: 1.06rem;
  }

  .helper {
    font-size: 0.96rem;
  }

  .chart {
    display: none;
  }
}
