:root {
  color-scheme: dark;
  --bg: #090b10;
  --bg-2: #10141d;
  --panel: rgba(20, 25, 36, 0.76);
  --panel-strong: rgba(29, 35, 48, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f2e8;
  --muted: #aaaeb9;
  --gold: #f4c661;
  --gold-2: #ffe29a;
  --teal: #5de0c2;
  --rose: #f0718d;
  --green: #80d37c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(244, 198, 97, 0.16), transparent 30rem),
    radial-gradient(circle at 88% 14%, rgba(93, 224, 194, 0.13), transparent 24rem),
    linear-gradient(135deg, #090b10 0%, #11131a 54%, #0b0e13 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  transform-origin: center center;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 11, 16, 0.68);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--gold), var(--teal));
  box-shadow: 0 10px 30px rgba(244, 198, 97, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  overflow: hidden;
  transition: transform 240ms ease;
}

.brand:hover .brand-mark {
  transform: rotate(18deg) scale(1.04);
}

.brand-sword {
  position: relative;
  display: block;
  width: 4px;
  height: 28px;
  border-radius: 999px;
  background: #151515;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand-sword::before {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 16px;
  height: 4px;
  content: "";
  border-radius: 999px;
  background: #151515;
  transform: translateX(-50%);
}

.brand-sword::after {
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 4px;
  height: 5px;
  content: "";
  border-radius: 1px;
  background: #151515;
  transform: translateX(-50%);
}

.brand-text {
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
}

.top-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-button,
.solid-button,
.primary-cta,
.secondary-cta,
.plan-button {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ghost-button,
.solid-button {
  min-height: 38px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.solid-button {
  background: linear-gradient(135deg, var(--gold), #d9953d);
  color: #1a1308;
  box-shadow: 0 12px 34px rgba(244, 198, 97, 0.2);
}

.ghost-button:hover,
.solid-button:hover,
.primary-cta:hover,
.secondary-cta:hover,
.plan-button:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  min-height: calc(100vh - 86px);
  grid-template-columns: 1fr;
  align-items: start;
  gap: 34px;
  padding: 72px 0 50px;
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

.pill,
.eyebrow,
.mini-badge,
.premium-badge,
.plan-ribbon {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(244, 198, 97, 0.28);
  border-radius: 999px;
  background: rgba(244, 198, 97, 0.11);
  color: var(--gold-2);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pill {
  margin: 0 0 22px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

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

h1 {
  max-width: 100%;
  margin-bottom: 18px;
  font-size: clamp(4.2rem, 11vw, 9rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: min(100%, 920px);
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.24;
}

@media (min-width: 760px) {
  .hero-subtitle {
    white-space: nowrap;
  }
}

.primary-cta,
.secondary-cta {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 950;
}

.primary-cta {
  background: linear-gradient(135deg, var(--gold), #e6794d);
  color: #181008;
  box-shadow: 0 18px 46px rgba(230, 121, 77, 0.22);
}

.secondary-cta {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.primary-cta:active,
.secondary-cta:active,
.plan-button:active,
.premium-card:active {
  transform: translateY(0) scale(0.98);
}

.live-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 32px;
  padding: 12px 16px;
  border: 1px solid rgba(93, 224, 194, 0.2);
  border-radius: 999px;
  background: rgba(93, 224, 194, 0.08);
  color: #d9fff7;
  box-shadow: 0 14px 42px rgba(93, 224, 194, 0.08);
}

.live-counter strong {
  color: var(--teal);
}

.live-counter.bump strong {
  animation: counterBump 420ms ease;
}

.hero-panel {
  perspective: 900px;
  width: min(640px, 100%);
  margin-left: clamp(0px, 18vw, 280px);
}

.creator-card,
.premium-card,
.pricing-card,
.testimonial-card,
.faq-list details,
.modal-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.creator-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: var(--radius);
  transform: rotate(1.5deg);
}

.creator-card::before,
.premium-card::before,
.pricing-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.09) 42%, transparent 58%);
  opacity: 0;
  transform: translateX(-30%);
  transition: opacity 220ms ease, transform 480ms ease;
}

.creator-card:hover::before,
.premium-card:hover::before,
.pricing-card:hover::before {
  opacity: 1;
  transform: translateX(30%);
}

.creator-topline,
.creator-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.creator-topline {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(128, 211, 124, 0.12), 0 0 24px rgba(128, 211, 124, 0.7);
}

.garen-image {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(244, 198, 97, 0.16), rgba(93, 224, 194, 0.09)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 10px, transparent 10px 20px),
    #151a23;
  color: rgba(246, 242, 232, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 950;
  text-align: center;
}

.garen-image::before {
  position: absolute;
  width: 36%;
  height: 140%;
  content: "";
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(244, 198, 97, 0.55), transparent);
  transform: rotate(42deg);
  filter: blur(1px);
}

.garen-image span {
  position: relative;
  z-index: 1;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
}

.creator-meta {
  margin-top: 14px;
}

.creator-meta div {
  display: grid;
  gap: 3px;
}

.creator-meta span:not(.mini-badge) {
  color: var(--muted);
  font-size: 0.88rem;
}

.mini-badge,
.premium-badge,
.plan-ribbon {
  padding: 6px 10px;
  font-size: 0.68rem;
}

.content-band,
.pricing,
.testimonials,
.faq {
  padding: 76px 0;
}

.section-heading {
  display: grid;
  max-width: 760px;
  gap: 12px;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 640px;
}

.eyebrow {
  padding: 7px 11px;
  font-size: 0.72rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

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

.premium-card {
  position: relative;
  display: grid;
  min-height: 210px;
  overflow: hidden;
  align-content: end;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  color: var(--text);
  text-align: left;
}

.premium-card::after {
  position: absolute;
  top: 22px;
  right: 20px;
  width: 54px;
  height: 54px;
  content: "";
  border: 1px solid rgba(244, 198, 97, 0.24);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 45%, rgba(244, 198, 97, 0.72) 46% 54%, transparent 55%),
    radial-gradient(circle, rgba(93, 224, 194, 0.16), transparent 68%);
  opacity: 0.8;
  transition: transform 240ms ease;
}

.premium-card:hover {
  transform: translateY(-7px);
  border-color: rgba(244, 198, 97, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46), 0 0 42px rgba(244, 198, 97, 0.08);
}

.premium-card:hover::after {
  transform: rotate(45deg) scale(1.08);
}

.premium-badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.card-title {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  font-size: 1.34rem;
  font-weight: 950;
  line-height: 1.02;
}

.card-desc {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.45;
}

.pricing-grid {
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  min-height: 380px;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(93, 224, 194, 0.28);
  box-shadow: var(--shadow), 0 0 54px rgba(93, 224, 194, 0.1);
}

.featured-plan {
  border-color: rgba(244, 198, 97, 0.28);
  box-shadow: var(--shadow), 0 0 60px rgba(244, 198, 97, 0.12);
}

.pricing-card h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.price {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 950;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.pricing-card ul {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  color: #e9e3d7;
  list-style: none;
}

.pricing-card li {
  line-height: 1.4;
}

.plan-button {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  color: #101114;
  font-weight: 950;
  box-shadow: 0 18px 44px rgba(93, 224, 194, 0.12);
}

.plan-ribbon {
  margin-bottom: 16px;
}

.testimonial-card {
  display: grid;
  gap: 14px;
  max-width: 760px;
  padding: clamp(24px, 5vw, 42px);
  border-radius: var(--radius);
}

.quote {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.1;
  transition: opacity 240ms ease, transform 240ms ease;
}

.quote.is-changing,
.attribution.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.attribution {
  margin-bottom: 2px;
  color: var(--muted);
  font-weight: 800;
  transition: opacity 240ms ease, transform 240ms ease;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.carousel-dots .active {
  background: var(--gold);
  box-shadow: 0 0 18px rgba(244, 198, 97, 0.62);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-list details {
  padding: 18px 20px;
  border-radius: 18px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 56px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer p:first-child {
  color: var(--text);
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(17, 20, 29, 0.92);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(14px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 3, 7, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  backdrop-filter: blur(10px);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border-radius: var(--radius);
  transform: translateY(18px) scale(0.96);
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.modal-backdrop.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.modal-panel h2 {
  margin: 16px 44px 16px 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1;
}

.modal-image {
  min-height: 250px;
  margin-bottom: 18px;
}

.modal-joke,
.checkout-message {
  margin-bottom: 0;
  color: var(--gold-2);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 950;
  line-height: 1.1;
}

.checkout-message {
  white-space: pre-line;
}

.checkout-progress {
  height: 10px;
  overflow: hidden;
  margin: 18px 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.checkout-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--rose));
  transition: width 380ms ease;
}

.progress-0 {
  width: 12%;
}

.progress-1 {
  width: 34%;
}

.progress-2 {
  width: 56%;
}

.progress-3 {
  width: 78%;
}

.progress-4 {
  width: 100%;
}

.demacia-blast {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--gold-2);
  font-size: clamp(2.2rem, 11vw, 8rem);
  font-weight: 1000;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.4), 0 0 52px rgba(244, 198, 97, 0.8);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
}

.demacia-blast.show {
  animation: demaciaBlast 1250ms ease forwards;
}

.section-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.section-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rainbow-mode {
  animation: rainbowWash 5s linear infinite;
}

.rainbow-mode .premium-card,
.rainbow-mode .pricing-card,
.rainbow-mode .creator-card,
.rainbow-mode .testimonial-card {
  animation: rainbowBorder 3s linear infinite;
}

.shake {
  animation: screenShake 520ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.page-spin {
  animation: pageSpin 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sword-mode {
  background:
    radial-gradient(circle, rgba(244, 198, 97, 0.25), transparent 58%),
    #11151d;
}

.sword-mode::before {
  content: none;
}

.sword-stack {
  display: inline-flex;
  gap: 10px;
  border: 0;
  background: transparent;
  font-size: clamp(2rem, 7vw, 4.8rem);
  animation: swordSpin 1400ms linear infinite;
}

@keyframes counterBump {
  50% {
    transform: translateY(-3px);
  }
}

@keyframes demaciaBlast {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  18%,
  78% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.14);
  }
}

@keyframes screenShake {
  10%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  80% {
    transform: translateX(4px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-7px);
  }
  40%,
  60% {
    transform: translateX(7px);
  }
}

@keyframes pageSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes swordSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rainbowWash {
  0% {
    filter: hue-rotate(0deg) saturate(1.2);
  }
  100% {
    filter: hue-rotate(360deg) saturate(1.2);
  }
}

@keyframes rainbowBorder {
  50% {
    border-color: rgba(255, 255, 255, 0.42);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .hero-panel {
    max-width: 520px;
    margin-left: 0;
  }

  .creator-card {
    transform: none;
  }

  .content-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    align-items: stretch;
    border-radius: 22px;
  }

  .top-actions {
    gap: 7px;
  }

  .ghost-button,
  .solid-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-text {
    font-size: 0.84rem;
  }

  .hero {
    gap: 30px;
    padding: 42px 0 34px;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 6rem);
  }

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

  .primary-cta,
  .secondary-cta {
    width: 100%;
  }

  .live-counter {
    align-items: flex-start;
    border-radius: 18px;
    line-height: 1.35;
  }

  .content-band,
  .pricing,
  .testimonials,
  .faq {
    padding: 52px 0;
  }

  .content-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .premium-card {
    min-height: 186px;
  }

  .pricing-card {
    min-height: 320px;
  }

  .modal-panel {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
