:root {
  --bg-gradient: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.4), transparent 45%),
    radial-gradient(circle at 85% 5%, rgba(236, 72, 153, 0.35), transparent 50%),
    radial-gradient(circle at 60% 90%, rgba(34, 211, 238, 0.18), transparent 55%),
    linear-gradient(135deg, #050814 0%, #121631 50%, #050814 100%);
  --shell-surface: rgba(10, 12, 28, 0.8);
  --card-surface: rgba(18, 20, 46, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f7f9ff;
  --text-muted: rgba(232, 235, 255, 0.68);
  --accent: #e44991;
  --accent-soft: rgba(228, 73, 145, 0.15);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --shadow-lg: 0 40px 80px rgba(4, 6, 20, 0.55);
  --shadow-card: 0 22px 50px rgba(6, 8, 34, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  padding: clamp(1.2rem, 3vw, 2.4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.background-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(60% 80% at 25% 15%, rgba(99, 102, 241, 0.45), transparent),
    radial-gradient(50% 70% at 80% 10%, rgba(236, 72, 153, 0.35), transparent),
    linear-gradient(160deg, rgba(5, 7, 22, 0.7), rgba(5, 7, 22, 0.95));
  filter: blur(12px);
  z-index: 0;
}

.text-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, 100%);
  background: var(--shell-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 3vw, 2.6rem);
}

.text-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-cont {
  border-radius: 10px;
  padding: 10px;
  a {
    display: flex;
    width: 300px;
  }
  img {
    max-height: 150px;
  }
  .logo-link {
    max-width: 228px;
  }
  .logo-animate {
    animation: rotate-logo 1s 1s;
    max-width: 50px;
    display: inline-flex;
  }
  .logo-main {
    max-width: 180px;
    margin-left: 5px;
    display: inline-flex;
  }
}
.logo-cont:hover {
  transform: translateY(-2px);
}
  
@keyframes rotate-logo {
  0% {
    transform: rotate(-90deg);
  }
  50% {
    transform: rotate(-45deg);
  }
  100% {
    transform: rotate(0);
  }
}

.back-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  color:#f8faff;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.back-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
}

.back-chip--ghost {
  background: rgba(255, 255, 255, 0.04);
}

.text-main {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3vw, 3rem);
}

.categories-menu {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2vw, 2.2rem);
}

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(215, 219, 255, 0.9);
  width: fit-content;
}

.hero-intro__title {
    text-align: center;
    color: rgba(232, 235, 255, 0.68);
}


.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.category-card {
  position: relative;
  padding: 1.8rem;
  border-radius: var(--radius-md);
  background: var(--card-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-card__icon {
  font-size: 2rem;
}

.category-card__title {
  margin: 0;
  font-size: 1.4rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.category-card__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.category-card__cta {
  margin-top: auto;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.category-card__cta::after {
  content: '→';
  transition: transform 0.3s ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(30, 32, 68, 0.95);
}

.category-card:hover::before,
.category-card:focus-visible::before {
  opacity: 1;
}

.category-card:hover .category-card__cta::after,
.category-card:focus-visible .category-card__cta::after {
  transform: translateX(4px);
}

.guides-content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.5vw, 2.2rem);
}

.guides-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 0 14px;
}

.guides-header__copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.guides-header__eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(214, 219, 255, 0.68);
}
.quides-header__title {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 18px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: start;
}

.featured-guide {
  background: var(--card-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.guide-figure {
  margin: 0;
  padding: clamp(1rem, 1.5vw, 1.4rem);
  background: rgba(1, 3, 12, 0.45);
}

.guide-figure img {
  width: 100%;
  border-radius: calc(var(--radius-md) - 14px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.featured-guide__content {
  padding: clamp(1.3rem, 2vw, 1.6rem) clamp(1.4rem, 2vw, 2rem) clamp(1.8rem, 2vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}



.featured-guide__content h3 {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.6rem;
}

.featured-guide__content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.guide-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  color: rgba(233, 236, 255, 0.92);
  line-height: 1.6;
}

.guide-body p {
  margin: 0;
}

.guide-media {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-media img {
  width: 100%;
  border-radius: calc(var(--radius-sm) - 8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.guide-media figcaption {
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-muted);
}

.guide-collections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guide-category {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.guide-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.2rem;
  box-shadow: 0 16px 36px rgba(5, 7, 20, 0.35);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.guide-card__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.guide-card__summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.guide-card--active {
  border-color: var(--accent);
  background: rgba(228, 73, 145, 0.12);
  box-shadow: 0 20px 40px rgba(228, 73, 145, 0.25);
}

.content-text-center {
  text-align: center;
  font-size: 26px;
}

@media (max-width: 1080px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body {
    padding: 1rem;
  }

  .text-shell {
    border-radius: 26px;
    padding: 1.6rem;
  }

  .text-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .guide-collections {
    order: -1;
  }
}

@media (max-width: 500px) {
  body {
    padding: 0.8rem;
  }

  .text-shell {
    padding: 1.2rem;
  }

  .guide-category {
    grid-template-columns: 1fr;
  }

  .guides-header {
    flex-direction: column;
    align-items: stretch;
  }

  .back-chip {
    width: 100%;
    justify-content: center;
  }
  .content-text-center {
    font-size: 16px;
  }
  .featured-guide__content h3 {
    font-size: 1.1rem;
  }
}

