:root {
  --indigo-deep: #050818;
  --indigo: #0b1550;
  --indigo-soft: #17206f;
  --purple: #9f4cff;
  --purple-bright: #d45cff;
  --lavender: #f2eaff;
  --muted: #c7c0df;
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.18);
  --header-bg: rgba(8, 10, 35, 0.78);
  --header-glow: rgba(212, 92, 255, 0.42);
  --header-border: rgba(255, 255, 255, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  --cursor-x: 50vw;
  --cursor-y: 20vh;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--lavender);
  background:
    radial-gradient(
      circle at var(--cursor-x) var(--cursor-y),
      rgba(212, 92, 255, 0.22),
      transparent 30rem
    ),
    radial-gradient(
      circle at 10% 10%,
      rgba(159, 76, 255, 0.22),
      transparent 28rem
    ),
    linear-gradient(135deg, var(--indigo-deep), var(--indigo), #120629);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 16px;
  border: 1px solid var(--header-border);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(15, 22, 82, 0.88), rgba(52, 17, 97, 0.82)),
    radial-gradient(
      circle at 10% 50%,
      rgba(212, 92, 255, 0.35),
      transparent 32%
    ),
    radial-gradient(
      circle at 90% 50%,
      rgba(159, 76, 255, 0.32),
      transparent 35%
    );
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.38),
    0 0 42px rgba(159, 76, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(212, 92, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: headerShine 6s ease-in-out infinite;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(212, 92, 255, 0.18);
  pointer-events: none;
}

.site-header.is-scrolled {
  top: 14px;
  background:
    linear-gradient(135deg, rgba(5, 8, 24, 0.92), rgba(42, 12, 76, 0.88)),
    radial-gradient(circle at 50% 0%, rgba(212, 92, 255, 0.32), transparent 55%);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.46),
    0 0 36px rgba(212, 92, 255, 0.24);
}

@keyframes headerShine {
  0% {
    transform: translateX(-120%);
  }

  45%,
  100% {
    transform: translateX(120%);
  }
}

.logo {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, #ffffff 0 4%, transparent 5%),
    linear-gradient(135deg, #6c2cff, #d45cff 55%, #f0b7ff);
  color: white;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow:
    0 0 24px rgba(212, 92, 255, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.logo::before {
  content: "✦";
  position: absolute;
  top: -6px;
  right: -4px;
  color: #f4d8ff;
  font-size: 0.85rem;
  text-shadow: 0 0 12px rgba(212, 92, 255, 0.9);
}

.logo:hover {
  transform: rotate(-5deg) scale(1.06);
  box-shadow:
    0 0 32px rgba(212, 92, 255, 0.9),
    0 0 60px rgba(159, 76, 255, 0.34);
}

.nav-menu {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-menu a {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(242, 234, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.nav-menu a:hover {
  color: white;
  background: linear-gradient(
    135deg,
    rgba(159, 76, 255, 0.42),
    rgba(212, 92, 255, 0.32)
  );
  box-shadow:
    0 0 20px rgba(212, 92, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple-bright);
  box-shadow: 0 0 12px var(--purple-bright);
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.nav-menu a:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 64px;
  padding-top: 150px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--purple-bright);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.giveaway-card h2 {
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.5rem, 9vw, 7.8rem);
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 640px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.event-details span {
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  color: white;
  font-size: 0.92rem;
}

.event-ticket {
  width: min(100%, 620px);
  margin: 36px 0;
  padding: 16px;
  border: 1px solid rgba(212, 92, 255, 0.38);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at top left,
      rgba(212, 92, 255, 0.22),
      transparent 42%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.04)
    );
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.28),
    0 0 38px rgba(159, 76, 255, 0.18);
  backdrop-filter: blur(16px);
}

.ticket-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(159, 76, 255, 0.45),
    rgba(212, 92, 255, 0.32)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ticket-date span {
  color: rgba(242, 234, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ticket-date time {
  color: white;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ticket-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ticket-details span {
  flex: 1 1 auto;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 0.9rem;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-bright));
  color: white;
  font-weight: 700;
  box-shadow: 0 16px 42px rgba(159, 76, 255, 0.35);
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
}

.btn-primary.small {
  min-height: 42px;
  margin-top: 22px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.hero-oracle {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.oracle-flip-card {
  position: relative;
  width: min(360px, 84vw);
  aspect-ratio: 0.68;
  border: none;
  border-radius: 34px;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 70px rgba(212, 92, 255, 0.28);
}

.oracle-flip-card:hover,
.oracle-flip-card.is-flipped {
  transform: rotateY(180deg);
}

.oracle-face {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px solid rgba(212, 92, 255, 0.55);
}

.oracle-front {
  background: rgba(5, 8, 24, 0.72);
}

.oracle-front::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    transparent 26%,
    transparent 68%,
    rgba(212, 92, 255, 0.22)
  );
}

.oracle-front::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
}

.oracle-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oracle-back {
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at top, rgba(212, 92, 255, 0.38), transparent 58%),
    linear-gradient(145deg, #120629, #17206f 54%, #050818);
}

.oracle-back::before {
  content: "✦";
  position: absolute;
  top: 28px;
  right: 34px;
  color: #d45cff;
  font-size: 2rem;
  text-shadow: 0 0 22px rgba(212, 92, 255, 0.95);
}

.oracle-back::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  pointer-events: none;
}

.oracle-back-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  justify-items: center;
  color: #f2eaff;
}

.oracle-back-content small {
  color: #d45cff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.oracle-back-content strong {
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.oracle-back-content p {
  max-width: 220px;
  color: rgba(242, 234, 255, 0.78);
  line-height: 1.6;
}

.oracle-back-content span {
  margin-top: 12px;
  padding: 9px 14px;
  border: 1px solid rgba(212, 92, 255, 0.45);
  border-radius: 999px;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading h2,
.giveaway-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
}

.section-heading p,
.giveaway-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.readings-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.theme-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.theme-card span {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--purple-bright);
  font-size: 0.8rem;
  font-weight: 700;
}

.theme-card h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.theme-card p {
  color: var(--muted);
  line-height: 1.5;
}

.theme-card:hover,
.theme-card.is-active {
  transform: translateY(-5px);
  border-color: rgba(212, 92, 255, 0.68);
  background:
    radial-gradient(
      circle at top right,
      rgba(212, 92, 255, 0.25),
      transparent 50%
    ),
    rgba(255, 255, 255, 0.09);
}

.reading-preview,
.signup-form,
.giveaway-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.reading-preview {
  position: sticky;
  top: 120px;
  padding: 32px;
}

.preview-label {
  margin-bottom: 24px;
  color: var(--purple-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reading-preview h3 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.reading-preview p {
  color: var(--muted);
  line-height: 1.8;
}

#previewTheme {
  margin-bottom: 18px;
  color: white;
  font-weight: 700;
}

.giveaway-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 42px;
  background:
    radial-gradient(circle at right, rgba(212, 92, 255, 0.22), transparent 45%),
    rgba(255, 255, 255, 0.08);
}

.giveaway-symbol {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(212, 92, 255, 0.48);
  border-radius: 50%;
  color: var(--purple-bright);
  font-size: 4rem;
  box-shadow: inset 0 0 40px rgba(212, 92, 255, 0.14);
}

.signup-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
  padding: 32px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label,
.checkbox-row {
  color: white;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px 16px;
  background: rgba(5, 8, 24, 0.52);
  color: white;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(242, 234, 255, 0.45);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple-bright);
  box-shadow: 0 0 0 4px rgba(212, 92, 255, 0.13);
}

.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.6;
}

.checkbox-row input {
  width: auto;
  margin-top: 5px;
}

.submit-btn {
  width: fit-content;
  margin-top: 6px;
  border: none;
}

.form-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.hidden {
  display: none;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .site-header {
    top: 14px;
  }

  .nav-menu {
    gap: 12px;
    font-size: 0.84rem;
  }

  .hero,
  .readings-layout,
  .giveaway-card {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 48px;
    padding-top: 130px;
  }

  .reading-preview {
    position: static;
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }

  .giveaway-symbol {
    width: 96px;
    height: 96px;
    font-size: 3rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 12px;
    width: calc(100% - 20px);
    padding: 10px;
    gap: 10px;
  }

  .logo {
    width: 42px;
    height: 42px;
    font-size: 0.84rem;
    flex-shrink: 0;
  }

  .nav-menu {
    flex: 1;
    justify-content: flex-end;
    gap: 4px;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-menu a {
    padding: 9px 11px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .section {
    width: min(100% - 22px, 1120px);
    padding: 78px 0;
  }

  .hero {
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-text,
  .section-heading p,
  .giveaway-card p {
    font-size: 1rem;
  }

  .event-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 360px);
    margin: 28px auto;
  }

  .event-details span {
    width: auto;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    text-align: center;
    font-size: 0.88rem;
    border-radius: 999px;
  }

  .event-details span:nth-child(3) {
    grid-column: 1 / -1;
  }

  .event-ticket {
    width: min(100%, 360px);
    margin: 30px auto;
    padding: 13px;
    border-radius: 24px;
  }

  .ticket-date {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 15px;
    text-align: center;
  }

  .ticket-date time {
    font-size: 1.65rem;
  }

  .ticket-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticket-details span {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 0.84rem;
  }

  .ticket-details span:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
    width: min(100%, 360px);
    margin: 30px auto 0;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 0.95rem;
  }

  .hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
  }

  .oracle-image-frame {
    width: min(300px, 82vw);
    border-radius: 26px;
  }

  .oracle-image-frame::after {
    inset: 14px;
    border-radius: 20px;
  }

  .oracle-flip-card {
    width: min(300px, 82vw);
    border-radius: 26px;
  }

  .oracle-face {
    border-radius: 26px;
  }

  .oracle-front::after,
  .oracle-back::after {
    inset: 14px;
    border-radius: 20px;
  }

  .oracle-back-content strong {
    font-size: 1.8rem;
  }

  .submit-btn {
    width: 100%;
  }

  .theme-card,
  .reading-preview,
  .signup-form,
  .giveaway-card {
    border-radius: 22px;
  }

  .signup-form,
  .reading-preview,
  .giveaway-card {
    padding: 24px;
  }
}

@media (max-width: 380px) {
  .event-details {
    grid-template-columns: 1fr;
    width: min(100%, 310px);
  }

  .event-details span:nth-child(3) {
    grid-column: auto;
  }

  .hero-actions {
    width: min(100%, 310px);
  }

  .ticket-details {
    grid-template-columns: 1fr;
  }

  .ticket-details span:nth-child(3) {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oracle-flip-card {
    transition: none;
  }

  .oracle-flip-card:hover,
  .oracle-flip-card.is-flipped {
    transform: none;
  }
}
