:root {
  --bg-color: #1a0b2e;
  --text-color: #ffffff;
  --primary-color: #ff6b35;
  --secondary-color: #2d1b4e;
  --accent-color: #9d4edd;
  --font-family: 'Outfit', sans-serif;
  --container-width: 1400px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background-color: var(--bg-color);
  scrollbar-color: #422a5c #160a27;
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 12px;
}

html::-webkit-scrollbar-track {
  background: #160a27;
}

html::-webkit-scrollbar-thumb {
  border: 3px solid #160a27;
  border-radius: 999px;
  background: #422a5c;
}

html::-webkit-scrollbar-thumb:hover {
  background: #573775;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 18px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.header {
  padding: 2rem 0;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 10;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-color);
  text-decoration: none;
}

.page-logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: white;
  font-family: 'Cherry Bomb One', cursive;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(150, 84, 255, 0.55);
}

.page-logo-girl {
  display: block;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: contain;
}

.page-logo-word {
  display: inline-flex;
  min-height: 72px;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.mobile-nav {
  display: none;
}

.nav-item-icon {
  display: none;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.desktop-nav-list .nav-link.active {
  color: var(--primary-color);
  position: relative;
}

.desktop-nav-list .nav-link.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.65rem;
  left: 0;
  height: 2px;
  background: var(--primary-color);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 70% 30%, #351f5c 0%, #1a0b2e 60%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(62, 42, 85, 0.4) 0%, rgba(36, 18, 59, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%232d1b4e" fill-opacity="0.4" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,224C672,245,768,267,864,261.3C960,256,1056,224,1152,197.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-icon svg {
  width: 80px;
  height: 80px;
}

.hero-title {
  max-width: 820px;
  font-size: clamp(3.25rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 800;
}

.hero-description {
  max-width: 550px;
  font-size: 1.5rem;
  color: #e0e0e0;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 1.1rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #ff8c5a;
  border-color: #ff8c5a;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-4px);
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.image-book {
  display: none;
}

.hero-image {
  width: min(62vw, 850px);
  max-width: 850px;
  margin-left: -130px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-25px);
  }

  100% {
    transform: translateY(0);
  }
}

.decorative-book {
  margin-top: 4rem;
  opacity: 0.8;
  transform: rotate(-10deg);
}

.decorative-book svg {
  width: 100px;
  height: 80px;
}

.sound-wave {
  position: absolute;
  right: -20px;
  top: 30%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  height: 60px;
}

.sound-wave span {
  display: block;
  width: 6px;
  background: var(--primary-color);
  border-radius: 3px;
  animation: wave 1s ease-in-out infinite;
}

.sound-wave span:nth-child(1) {
  height: 20%;
  animation-delay: 0.1s;
}

.sound-wave span:nth-child(2) {
  height: 40%;
  animation-delay: 0.2s;
}

.sound-wave span:nth-child(3) {
  height: 70%;
  animation-delay: 0.3s;
}

.sound-wave span:nth-child(4) {
  height: 40%;
  animation-delay: 0.4s;
}

.sound-wave span:nth-child(5) {
  height: 20%;
  animation-delay: 0.5s;
}

@keyframes wave {
  0%,
  100% {
    height: 20%;
    opacity: 0.5;
  }

  50% {
    height: 100%;
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .hero-container {
    gap: 3rem;
  }
}

@media (min-width: 860px) and (max-width: 1240px) {
  .header {
    padding: 1.5rem 0;
  }

  .header-container {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .page-logo-brand {
    gap: 0.3rem;
    font-size: 2.35rem;
  }

  .page-logo-girl {
    width: 58px;
    height: 58px;
  }

  .page-logo-word {
    min-height: 58px;
  }

  .nav-list {
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 1rem;
    white-space: nowrap;
  }
}

@media (max-width: 859px) {
  .header {
    padding: 1.25rem 0;
  }

  .desktop-nav-list {
    display: none;
  }

  .nav {
    position: relative;
    margin-left: auto;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-nav-toggle {
    display: grid;
    width: 54px;
    height: 54px;
    padding: 12px 8px;
    cursor: pointer;
    list-style: none;
    align-content: space-between;
    border-radius: 14px;
  }

  .mobile-nav-toggle::-webkit-details-marker {
    display: none;
  }

  .mobile-nav-toggle-line {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .mobile-nav-toggle:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
  }

  .mobile-nav[open] .mobile-nav-toggle-line:first-child {
    transform: translateY(13px) rotate(45deg);
  }

  .mobile-nav[open] .mobile-nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav[open] .mobile-nav-toggle-line:last-child {
    transform: translateY(-13px) rotate(-45deg);
  }

  .mobile-nav-list {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    display: flex;
    width: max-content;
    min-width: 210px;
    padding: 1rem 1rem 150px;
    flex-direction: column;
    gap: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(29, 12, 51, 0.96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    max-height: calc(100svh - 7rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    isolation: isolate;
  }

  .mobile-nav-list > li:not(.mobile-nav-scene) {
    position: relative;
    z-index: 1;
  }

  .mobile-nav-list .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: 9px;
  }

  .mobile-nav-list .nav-item-icon {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
  }

  .mobile-nav-list .nav-link.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.12);
  }

  .mobile-nav-list .nav-link.active .nav-item-icon {
    filter: invert(51%) sepia(91%) saturate(2607%) hue-rotate(340deg) brightness(105%) contrast(102%);
    opacity: 1;
  }

  .mobile-nav-list .nav-link.active::after {
    display: none;
  }

  .mobile-nav-scene {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 300px;
    background-image: url('/static/img/moon_with_clouds-menu.webp');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.45) 22%, #000 42%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.45) 22%, #000 42%, #000 100%);
    pointer-events: none;
  }

}

@media (max-width: 900px) {

  .hero-container {
    grid-template-columns: 1fr;
    max-width: 760px;
    text-align: left;
    gap: 2.5rem;
    padding-top: 10rem;
    padding-bottom: 0;
  }

  .hero-content {
    align-items: flex-start;
  }

  .hero-title {
    max-width: 700px;
    font-size: clamp(3.5rem, 9vw, 4.75rem);
  }

  .hero-description {
    max-width: 620px;
    font-size: 1.3rem;
  }

  .hero-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .decorative-book {
    position: absolute;
    z-index: 2;
    bottom: 6%;
    left: 7%;
    display: block;
    margin: 0;
  }

  .hero-image {
    width: min(72vw, 560px);
    margin-left: 0;
  }

  .hero-image-container {
    min-height: 560px;
    align-items: flex-end;
  }

  .image-book {
    position: absolute;
    z-index: 2;
    top: 14%;
    left: 3%;
    display: block;
  }

  .sound-wave {
    right: 5%;
    top: 32%;
    display: flex;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 1.5rem;
  }

  .header {
    padding: 1rem 0;
  }

  .page-logo-brand {
    gap: 0.25rem;
    font-size: 1.85rem;
  }

  .page-logo-girl {
    width: 46px;
    height: 46px;
  }

  .page-logo-word {
    min-height: 46px;
  }

  .mobile-nav-toggle {
    width: 44px;
    height: 44px;
    padding: 10px 6px;
  }

  .mobile-nav[open] .mobile-nav-toggle-line:first-child {
    transform: translateY(10px) rotate(45deg);
  }

  .mobile-nav[open] .mobile-nav-toggle-line:last-child {
    transform: translateY(-10px) rotate(-45deg);
  }

  .hero {
    min-height: 100svh;
    align-items: flex-start;
    background: radial-gradient(circle at 58% 27%, #351f5c 0%, #1a0b2e 62%);
  }

  .hero-container {
    gap: 1.25rem;
    padding-top: 7.5rem;
    padding-bottom: 0;
  }

  .hero-content {
    width: 100%;
    gap: 1.1rem;
  }

  .hero-icon svg {
    width: 42px;
    height: 42px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.3rem, 10.5vw, 3.05rem);
    line-height: 1.07;
  }

  .hero-description {
    max-width: 350px;
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .hero-buttons {
    gap: 0.85rem;
    margin-top: 0.1rem;
  }

  .btn {
    width: 100%;
    min-height: 52px;
    padding: 0.8rem 1.5rem;
  }

  .hero-image-container {
    min-height: 420px;
    margin: 0 -1.5rem;
    overflow: visible;
  }

  .hero-image {
    width: min(105vw, 460px);
    max-width: none;
    animation: none;
  }

  .image-book {
    top: 20%;
    left: 7%;
  }

  .image-book svg {
    width: 42px;
    height: 42px;
  }

  .sound-wave {
    top: 30%;
    right: 7%;
    height: 46px;
    gap: 4px;
  }

  .sound-wave span {
    width: 4px;
  }

  .decorative-book {
    bottom: 7%;
    left: 3%;
  }

  .decorative-book svg {
    width: 58px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image,
  .sound-wave span {
    animation: none;
  }
}

.site-legal-footer {
  padding: 1.25rem max(2rem, calc((100vw - var(--container-width)) / 2 + 2rem)) 2rem;
  background: transparent;
  color: rgba(255, 250, 244, 0.58);
  font-size: 0.82rem;
}

.site-legal-footer-nav {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0.7rem 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 250, 244, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(10, 4, 20, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-legal-footer a,
.site-legal-footer-settings {
  color: rgba(255, 250, 244, 0.78);
  text-decoration: none;
}

.site-legal-footer a:hover,
.site-legal-footer a:focus-visible,
.site-legal-footer-settings:hover,
.site-legal-footer-settings:focus-visible {
  color: #b84e22;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-legal-footer-settings {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.cookie-consent {
  position: fixed;
  z-index: 30;
  right: max(2rem, calc((100vw - var(--container-width)) / 2 + 2rem));
  bottom: 2rem;
  width: min(400px, calc(100vw - 4rem));
  padding: 1.15rem;
  border: 1px solid rgba(255, 250, 244, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 250, 244, 0.8);
  box-shadow: 0 10px 30px rgba(10, 4, 20, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent h2 {
  margin: 0 0 0.45rem;
  color: #fffaf4;
  font-family: var(--font-family);
  font-size: 1.15rem;
  line-height: 1.25;
}

.cookie-consent p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.cookie-consent a {
  color: #fffaf4;
  text-underline-offset: 3px;
}

.cookie-consent-status:empty {
  display: none;
}

.cookie-consent-status {
  margin-top: 0.55rem !important;
  color: rgba(255, 250, 244, 0.62);
  font-size: 0.76rem !important;
}

.cookie-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.cookie-consent-action {
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 250, 244, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fffaf4;
  font: 600 0.8rem/1.2 var(--font-family);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cookie-consent-action:hover,
.cookie-consent-action:focus-visible {
  border-color: rgba(255, 250, 244, 0.7);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.cookie-consent-action[data-cookie-consent-choice="analytics"] {
  border-color: #007a00;
  background: #007a00;
  color: #fffaf4;
  box-shadow: 0 6px 18px rgba(0, 122, 0, 0.28);
}

.cookie-consent-action[data-cookie-consent-choice="analytics"]:hover,
.cookie-consent-action[data-cookie-consent-choice="analytics"]:focus-visible {
  border-color: #006400;
  background: #006400;
}

.cookie-consent-action:focus-visible,
.site-legal-footer-settings:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.cookie-consent-action[data-cookie-consent-choice="analytics"]:focus-visible {
  outline-color: #b8f5d0;
}

.cookie-consent-action:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.landing-page {
  position: relative;
}

.landing-page .site-legal-footer {
  position: absolute;
  z-index: 9;
  right: 0;
  bottom: 0;
  left: 0;
}

.dashboard-page .site-legal-footer,
.podcast-page .site-legal-footer,
.text-podcast-page .site-legal-footer {
  position: absolute;
  z-index: 9;
  right: 0;
  bottom: 0;
  left: 0;
}

@media (max-width: 560px) {
  .site-legal-footer {
    padding: 1rem 0.75rem 1.5rem;
  }

  .site-legal-footer-nav {
    border-radius: 18px;
  }

  .cookie-consent {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
  }

  .landing-page .cookie-consent {
    position: static;
    width: auto;
    margin: 0.5rem 0.75rem;
  }

  .landing-page .site-legal-footer {
    position: static;
    width: 100%;
    min-width: 0;
  }

  .landing-page .hero {
    min-height: auto;
  }
}
