:root {
  --ink: #121320;
  --muted: #646a7c;
  --paper: #f5f1ff;
  --paper-strong: #fffdf7;
  --teal: #00a6a6;
  --teal-dark: #087272;
  --gold: #ffb703;
  --coral: #ff5a7a;
  --plum: #3d2c8d;
  --lime: #b7ff5a;
  --sky: #72ddf7;
  --line: rgba(17, 23, 37, 0.12);
  --shadow: 0 24px 80px rgba(39, 29, 92, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f5f1ff 0%, #fffdf7 46%, #eefafa 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
select,
button {
  font: inherit;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
  isolation: isolate;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(15, 11, 46, 0.92) 0%, rgba(31, 24, 78, 0.72) 48%, rgba(11, 21, 38, 0.16) 100%),
    url("assets/hero-natal-ege.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28vh;
  z-index: -1;
  background: linear-gradient(180deg, rgba(247, 243, 234, 0) 0%, var(--paper) 92%);
}

.topbar {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-weight: 800;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #151224;
  background: linear-gradient(135deg, var(--lime), var(--sky) 55%, #ffd166);
  font-size: 0.78rem;
  box-shadow: 0 10px 30px rgba(114, 221, 247, 0.28);
}

.topbar__link {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero__content {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  align-self: center;
  padding: 48px 0 16vh;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #10212a;
  background: linear-gradient(135deg, var(--lime), var(--sky) 54%, #ffd166);
  box-shadow: 0 14px 32px rgba(0, 166, 166, 0.22);
}

.button--ghost {
  color: inherit;
  border: 1px solid rgba(17, 23, 37, 0.18);
  background: rgba(255, 255, 255, 0.62);
}

.hero .button--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.button--wide {
  width: 100%;
}

.lead-magnet {
  width: min(1160px, calc(100% - 40px));
  margin: -70px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(235, 253, 250, 0.96) 52%, rgba(245, 241, 255, 0.98)),
    var(--paper-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lead-magnet h2 {
  max-width: 780px;
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
}

.lead-magnet p:last-child {
  max-width: 760px;
  margin-bottom: 0;
}

.lead-magnet p:last-child,
.section p,
.note {
  color: var(--muted);
  line-height: 1.7;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.section--split,
.quiz-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: start;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.steps article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.78);
  border-radius: 14px;
}

.steps span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--coral);
  font-weight: 800;
}

.steps h3 {
  margin-bottom: 10px;
  font-size: 1.04rem;
}

.quiz-copy {
  position: sticky;
  top: 22px;
}

.note {
  margin-top: 24px;
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 250, 240, 0.8);
}

.quiz-card,
.result-panel {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  box-shadow: 0 20px 60px rgba(21, 24, 38, 0.12);
  border-radius: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label,
legend {
  color: #2d3546;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 1px solid rgba(17, 23, 37, 0.16);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 122, 124, 0.12);
}

.span-2 {
  grid-column: span 2;
}

fieldset {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chips label {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(17, 23, 37, 0.13);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

.chips input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--teal);
}

.contact-block {
  display: grid;
  gap: 16px;
  margin: 26px 0 22px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(183, 255, 90, 0.18), rgba(114, 221, 247, 0.2));
  border: 1px solid rgba(0, 166, 166, 0.16);
  border-radius: 16px;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.result-section {
  padding-top: 20px;
}

.result-panel {
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(238, 250, 250, 0.95), rgba(245, 241, 255, 0.98)),
    var(--paper-strong);
}

.result-head,
.chart-layout,
.direction-grid {
  display: grid;
  gap: 18px;
}

.result-head {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.result-badge {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background: var(--plum);
  font-size: 0.82rem;
  font-weight: 800;
}

.chart-layout {
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
  margin: 28px 0 30px;
}

.chart-card,
.analysis-card,
.direction-card,
.pro-block,
.insight-grid section {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
}

.chart-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(245, 241, 255, 0.84), rgba(255, 253, 247, 0.98));
}

.chart-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.chart-card__top span,
.chart-card__top strong {
  color: var(--ink);
}

.natal-chart {
  aspect-ratio: 1;
  width: 100%;
  display: grid;
  place-items: center;
}

.natal-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.planet-label {
  font-size: 15px;
  font-weight: 800;
  fill: var(--ink);
}

.planet-degree {
  font-size: 8px;
  font-weight: 700;
  fill: var(--muted);
}

.analysis-card {
  padding: 24px;
}

.analysis-card h3,
.result-subtitle {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.analysis-list {
  display: grid;
  gap: 12px;
}

.analysis-item {
  padding: 14px;
  border-left: 4px solid var(--coral);
  background: #fbfbff;
  border-radius: 12px;
}

.analysis-item strong,
.direction-card strong {
  display: block;
  margin-bottom: 6px;
}

.analysis-item span,
.direction-card span {
  color: var(--muted);
  line-height: 1.55;
}

.result-subtitle {
  margin-top: 8px;
}

.subjects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.subject-card {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
}

.subject-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
}

.subject-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.direction-grid {
  grid-template-columns: repeat(2, 1fr);
  margin: 0 0 26px;
}

.direction-card {
  min-height: 132px;
  padding: 18px;
}

.astro-facts,
.element-grid,
.aspect-grid {
  display: grid;
  gap: 12px;
}

.astro-facts {
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 18px;
}

.fact-card,
.element-card,
.aspect-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.fact-card span,
.element-card span,
.aspect-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.fact-card strong,
.element-card strong,
.aspect-card strong {
  display: block;
  margin-bottom: 5px;
}

.pro-block {
  margin: 18px 0;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(183, 255, 90, 0.18), rgba(114, 221, 247, 0.18)),
    #fff;
}

.pro-block h3 {
  margin: 0 0 8px;
}

.pro-block p {
  margin: 0;
}

.insight-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  margin: 18px 0 28px;
}

.insight-grid section {
  padding: 20px;
}

.insight-grid h3 {
  margin: 0 0 14px;
}

.element-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: center;
}

.element-meter {
  height: 10px;
  border-radius: 999px;
  background: #edf0f6;
  overflow: hidden;
}

.element-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal));
}

.result-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: 88vh;
  }

  .hero__backdrop {
    background-image:
      linear-gradient(180deg, rgba(4, 12, 26, 0.94) 0%, rgba(8, 19, 39, 0.72) 56%, rgba(8, 19, 39, 0.24) 100%),
      url("assets/hero-natal-ege.png");
    background-position: 58% center;
  }

  .topbar {
    width: min(100% - 28px, 720px);
  }

  .topbar__link {
    display: none;
  }

  .hero__content,
  .lead-magnet,
  .section {
    width: min(100% - 28px, 720px);
  }

  .lead-magnet,
  .section--split,
  .quiz-section,
  .steps,
  .subjects,
  .chart-layout,
  .direction-grid,
  .result-head,
  .astro-facts,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .lead-magnet {
    margin-top: -42px;
  }

  .quiz-copy {
    position: static;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 620px) {
  .hero__content {
    padding: 36px 0 18vh;
  }

  .brand span:last-child {
    max-width: 172px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 4.2rem);
  }

  .hero__actions,
  .result-panel__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-magnet {
    padding: 24px;
  }

  .chart-card__top {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .span-2 {
    grid-column: auto;
  }

  .quiz-card,
  .result-panel {
    padding: 22px;
  }
}
