:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #666666;
  --color-header: #000000;
  --color-footer: #000000;
  --color-accent: #f5c542;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-shadow: rgba(17, 17, 17, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1180px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

body.demo-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section--compact {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h1,
.section-heading h2,
.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.eyebrow {
  display: inline-flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000000;
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1.5rem;
}

.site-branding__text {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.custom-logo-link img {
  max-height: 52px;
  width: auto;
}

.site-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22rem;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
}

.site-wordmark__primary {
  font-family: 'Cre Happiness', 'Baloo 2', 'Poppins', sans-serif;
  font-size: clamp(2rem, 2.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.site-wordmark__secondary {
  font-family: 'Satisfy', cursive;
  font-size: clamp(1.8rem, 2.3vw, 2.7rem);
  font-weight: 400;
  margin-left: -0.05rem;
  transform: translateY(0.14rem);
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  position: relative;
  color: #ffffff;
  font-weight: 500;
  padding: 0.25rem 0;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-placeholder {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  transition: transform var(--transition), opacity var(--transition);
}

.hero {
  position: relative;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
}

.hero::before {
  top: -160px;
  right: -120px;
  background: rgba(245, 197, 66, 0.25);
}

.hero::after {
  bottom: -240px;
  left: -140px;
  background: rgba(245, 197, 66, 0.12);
}

.hero__content {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.hero__subtitle {
  max-width: 640px;
  margin: 1.25rem auto 0;
  font-size: 1.2rem;
  color: var(--color-muted);
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(245, 197, 66, 0.28);
}

.button--primary {
  background: var(--color-header);
  color: #ffffff;
}

.button--secondary {
  background: #ffffff;
  border-color: var(--color-border);
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  box-shadow: 0 18px 40px var(--color-shadow);
}

.trust-strip__text {
  display: flex;
  flex-direction: column;
}

.trust-strip__text span,
.trust-strip__rating small {
  color: var(--color-muted);
}

.trust-strip__rating {
  text-align: right;
  font-weight: 700;
  color: #d59f00;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-pill {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.75rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.category-pill:hover,
.category-pill.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #000000;
  transform: translateY(-2px);
}

.featured-grid,
.theme-grid {
  display: grid;
  gap: 1.5rem;
}

.featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.theme-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #ffffff;
  border: 1px solid rgba(245, 197, 66, 0.45);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 18px 34px var(--color-shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.theme-card:hover {
  transform: translateY(-7px) scale(1.015);
  border-color: rgba(245, 197, 66, 0.85);
  box-shadow: 0 24px 50px rgba(17, 17, 17, 0.12);
}

.theme-card--featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(245, 197, 66, 0.7), 0 26px 60px rgba(245, 197, 66, 0.18);
}

.theme-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f9f9f9, #efefef);
}

.theme-card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.06), rgba(17, 17, 17, 0.72));
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}

.theme-card:hover .theme-card__media::before {
  opacity: 1;
}

.theme-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), filter var(--transition);
}

.theme-card:hover .theme-card__image {
  transform: scale(1.08);
  filter: blur(2px);
}

.theme-card__image--placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--color-muted);
}

.theme-card__badge,
.theme-card__label {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--color-accent);
  color: #000000;
}

.theme-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.theme-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.theme-card:hover .theme-card__overlay {
  opacity: 1;
}

.theme-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(100% - 2rem, 240px);
}

.button--overlay {
  background: #ffffff;
  color: #000000;
}

.button--overlay-secondary {
  background: var(--color-accent);
}

.theme-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
}

.theme-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.theme-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.theme-card__description {
  color: var(--color-muted);
  font-size: 0.96rem;
}

.theme-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  color: #222222;
  font-size: 0.9rem;
  font-weight: 600;
}

.theme-card__meta small {
  color: var(--color-muted);
}

.empty-state {
  padding: 2rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.page-layout {
  min-height: calc(100vh - 180px);
}

.page-entry {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: 0 18px 40px var(--color-shadow);
}

.page-entry__header {
  margin-bottom: 1.5rem;
}

.page-entry__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-entry__content {
  color: #222222;
}

.page-entry__content > *:first-child {
  margin-top: 0;
}

.page-entry__content > *:last-child {
  margin-bottom: 0;
}

.site-footer {
  background: #000000;
  color: #ffffff;
  padding: 1.5rem 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-navigation ul,
.footer-navigation .menu {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-navigation li,
.footer-navigation .menu-item {
  display: inline-flex;
}

.footer-navigation a {
  color: #ffffff;
  font-weight: 500;
  transition: opacity var(--transition);
}

.footer-navigation a:hover {
  opacity: 0.78;
}

.demo-modal[hidden] {
  display: none;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 0.75rem;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.demo-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
}

.demo-browser {
  background: rgba(12, 12, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 32px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.demo-browser__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem 0;
  color: #ffffff;
}

.demo-browser__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-browser__meta h2 {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.demo-browser__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.16);
  color: #f8d36c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-modal__close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.demo-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.demo-device-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-device-switcher button {
  border: 1px solid transparent;
  background: transparent;
  color: #ffffff;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  font-size: 0.88rem;
}

.demo-device-switcher button.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #000000;
  box-shadow: 0 8px 20px rgba(245, 197, 66, 0.2);
}

.demo-browser__viewport {
  display: flex;
  justify-content: center;
  padding: 0.65rem;
  transition: all var(--transition);
}

.demo-browser__viewport iframe {
  width: 100%;
  height: min(88vh, 980px);
  border: 0;
  border-radius: 26px;
  background: #ffffff;
}

.demo-browser__viewport[data-device-frame='tablet'] iframe {
  width: min(820px, 100%);
}

.demo-browser__viewport[data-device-frame='mobile'] iframe {
  width: min(390px, 100%);
}

.skeleton {
  position: relative;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

.skeleton.is-loaded::after {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1024px) {
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-wordmark__primary {
    font-size: 2.05rem;
  }

  .site-wordmark__secondary {
    font-size: 1.95rem;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0 1rem 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .main-navigation.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0d0d0d;
    border-radius: 20px;
    padding: 1rem;
  }

  .main-navigation li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-navigation a {
    display: block;
    padding: 0.95rem 0;
  }

  .trust-strip,
  .site-footer__inner,
  .demo-browser__topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-browser__meta {
    justify-content: center;
  }

  .demo-device-switcher {
    margin-left: 0;
  }

  .footer-navigation ul {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 5.5rem;
  }

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

  .hero__actions,
  .theme-card__actions,
  .demo-device-switcher {
    width: 100%;
  }

  .hero__actions .button,
  .theme-card__actions .button,
  .demo-device-switcher button {
    width: 100%;
  }

  .demo-browser__meta {
    align-items: flex-start;
    border-radius: 20px;
  }

  .demo-browser__viewport {
    padding: 0.55rem;
  }

  .demo-browser__viewport iframe {
    height: 76vh;
    border-radius: 18px;
  }
}
