:root {
  --bg: #08090c;
  --panel: rgba(18, 20, 26, .68);
  --panel-strong: rgba(24, 26, 33, .82);
  --stroke: rgba(255, 255, 255, .16);
  --text: #f6f7fb;
  --muted: #b8beca;
  --red: #ed0017;
  --red-soft: rgba(237, 0, 23, .28);
  --white-soft: rgba(255, 255, 255, .12);
  --shadow: 0 24px 80px rgba(0, 0, 0, .48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(237, 0, 23, .42), transparent 26rem),
    radial-gradient(circle at 78% 14%, rgba(255, 255, 255, .18), transparent 18rem),
    radial-gradient(circle at 68% 74%, rgba(237, 0, 23, .22), transparent 22rem),
    linear-gradient(135deg, #050507 0%, #12141b 46%, #050507 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .82), transparent);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.hero {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .78fr);
  gap: 28px;
  align-items: stretch;
}

.hero__copy,
.trial-card {
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.hero__copy {
  position: relative;
  min-height: 660px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 8px;
  overflow: hidden;
}

.hero__copy::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 440px;
  aspect-ratio: 1;
  background: url("./assets/sparta_logo.png") center / contain no-repeat;
  opacity: .12;
  transform: rotate(-11deg);
  filter: drop-shadow(0 28px 50px rgba(237, 0, 23, .28));
}

.topbar,
.brand,
.hero__actions,
.signal-row,
.card-header,
.result {
  display: flex;
  align-items: center;
}

.topbar {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.ghost-link,
.secondary-button {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .08);
}

.ghost-link {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.headline {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 70px 0;
}

.eyebrow,
.panel-kicker,
.card-header p {
  margin: 0;
  color: #ffb5bd;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 680px;
  font-size: clamp(58px, 8.2vw, 114px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.hero__actions {
  position: relative;
  z-index: 1;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.trial-card button {
  min-height: 52px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px 0 22px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #ff1027, #b80013);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 16px 38px rgba(237, 0, 23, .36);
}

.button-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  min-width: 154px;
  justify-content: center;
}

.signal-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.signal-row div {
  min-height: 92px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .08);
}

.signal-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.signal-row span,
.trial-card label,
.result {
  color: var(--muted);
}

.trial-card {
  align-self: center;
  padding: 24px;
  border-radius: 8px;
  background: var(--panel-strong);
}

.card-header {
  gap: 14px;
  margin-bottom: 26px;
}

.card-header img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}

.card-header h2 {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

form {
  display: grid;
  gap: 16px;
}

.trial-notice {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(135deg, rgba(237, 0, 23, .18), rgba(255, 255, 255, .07));
}

.trial-notice strong {
  color: var(--text);
  font-size: 15px;
}

.trial-notice span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.verify-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 10px;
  align-items: end;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(2, 3, 6, .46);
  outline: none;
}

select {
  appearance: none;
}

input:focus,
select:focus {
  border-color: rgba(255, 255, 255, .44);
  box-shadow: 0 0 0 4px rgba(237, 0, 23, .18);
}

.checkline {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.checkline input {
  min-height: auto;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red);
}

.checkline label {
  display: block;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
  font-size: 13px;
}

.trial-card button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #ff1027, #a90011);
  box-shadow: 0 14px 34px rgba(237, 0, 23, .34);
}

.trial-card .verify-button {
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  box-shadow: none;
}

.result {
  gap: 10px;
  min-height: 56px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
}

.result p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.subscription-box {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}

.subscription-qr {
  width: 140px;
  height: 140px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.subscription-actions {
  display: grid;
  gap: 8px;
}

.subscription-actions a,
.subscription-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, .1);
  box-shadow: none;
}

.result__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffb5bd;
  box-shadow: 0 0 22px rgba(237, 0, 23, .8);
}

.result.is-ok .result__dot {
  background: #58ff9a;
}

.result.is-warn .result__dot {
  background: #ffd058;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    min-height: 560px;
  }

  .trial-card {
    align-self: stretch;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero {
    min-height: auto;
    gap: 12px;
  }

  .hero__copy,
  .trial-card {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
  }

  .headline {
    padding: 58px 0;
  }

  h1 {
    font-size: 56px;
    line-height: 1.04;
  }

  .lead {
    font-size: 18px;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .verify-row {
    grid-template-columns: 1fr;
  }

  .subscription-box {
    grid-template-columns: 1fr;
  }

  .subscription-qr {
    margin: 0 auto;
  }

  .primary-button,
  .secondary-button {
    justify-content: center;
  }
}
