/* Barbibet portal — lightweight CSS only */
:root {
  --bg: #07050a;
  --bg-2: #0d0a12;
  --panel: #121018;
  --panel-2: #18141f;
  --purple: #c412b8;
  --purple-2: #e61ad6;
  --purple-dim: #7a0a74;
  --glow: rgba(196, 18, 184, 0.45);
  --white: #fff7ff;
  --muted: #b7a8c4;
  --line: rgba(255, 255, 255, 0.09);
  --gold: #f0c14b;
  --ok: #2dd4a8;
  --radius: 16px;
  --max: 1180px;
  --font: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--white);
  line-height: 1.55;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(196, 18, 184, 0.28), transparent 55%),
    radial-gradient(circle at 95% 20%, rgba(122, 10, 116, 0.22), transparent 35%),
    linear-gradient(180deg, #0b0810 0%, var(--bg) 35%, #09070d 100%);
  opacity: 0;
  animation: pageIn 0.38s var(--ease) forwards;
}

body.is-leaving {
  animation: pageOut 0.22s ease forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body.is-leaving {
    animation: none;
    opacity: 1;
    transform: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

/* Top promo */
.promo-bar {
  background: linear-gradient(90deg, #5a0858, var(--purple), #5a0858);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
}

.promo-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.promo-bar span {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 5, 10, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  position: relative;
}

.logo img {
  height: 40px;
  width: auto;
  transition: transform 0.3s var(--ease);
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(196, 18, 184, 0.16);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: none;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.15rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.68rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-2), var(--purple) 55%, var(--purple-dim));
  color: var(--white);
  box-shadow: 0 8px 24px var(--glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(230, 26, 214, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-ghost:hover {
  border-color: var(--purple-2);
  background: rgba(196, 18, 184, 0.12);
}

.btn-lg {
  padding: 0.92rem 1.6rem;
  font-size: 1.02rem;
}

.btn-gold {
  background: linear-gradient(135deg, #ffe08a, var(--gold));
  color: #2a1800;
  box-shadow: 0 8px 24px rgba(240, 193, 75, 0.28);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(480px, 78vh, 680px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 35%, rgba(196, 18, 184, 0.4), transparent 42%),
    radial-gradient(circle at 15% 70%, rgba(122, 10, 116, 0.25), transparent 40%),
    linear-gradient(180deg, transparent 40%, var(--bg) 95%),
    repeating-linear-gradient(
      -12deg,
      transparent 0 18px,
      rgba(255, 255, 255, 0.015) 18px 19px
    );
  animation: heroShift 10s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  right: -5%;
  top: 10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 18, 184, 0.22), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

@keyframes heroShift {
  from { filter: saturate(1); }
  to { filter: saturate(1.2) brightness(1.06); }
}

.hero-inner {
  padding: 3.5rem 0 2.75rem;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero-copy .hero-brand {
  width: min(340px, 85vw);
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 10px 30px rgba(196, 18, 184, 0.35));
}

.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 14ch;
  margin-bottom: 0.75rem;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
  margin-bottom: 1.4rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
}

.pill strong {
  color: var(--ok);
}

.hero-panel {
  background:
    linear-gradient(160deg, rgba(196, 18, 184, 0.22), rgba(18, 16, 24, 0.95) 45%),
    var(--panel);
  border: 1px solid rgba(196, 18, 184, 0.35);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(0);
  animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.bonus-row {
  display: grid;
  gap: 0.65rem;
}

.bonus-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}

.bonus-chip b {
  color: var(--gold);
  font-size: 1.05rem;
}

.bonus-chip span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-panel .btn {
  width: 100%;
  margin-top: 1rem;
}

/* Categories */
.cat-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.05rem 1rem;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.22s var(--ease), border-color 0.22s ease, box-shadow 0.22s ease;
  min-height: 104px;
}

.cat:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 18, 184, 0.55);
  box-shadow: 0 12px 28px rgba(196, 18, 184, 0.18);
}

.cat-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(196, 18, 184, 0.18);
  color: var(--purple-2);
  font-size: 1rem;
  font-weight: 800;
}

.cat strong {
  font-size: 0.95rem;
}

.cat small {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Sections */
.section {
  padding: 3.75rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  max-width: 40ch;
}

.eyebrow {
  display: inline-block;
  color: var(--purple-2);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.feature {
  padding: 1.35rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: transform 0.22s var(--ease), border-color 0.22s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 18, 184, 0.4);
}

.feature-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 0.8rem;
  color: var(--purple-2);
}

.feature h3 {
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* Posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.85rem;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.22s var(--ease), border-color 0.22s ease, box-shadow 0.22s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 18, 184, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.post-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #121018;
  position: relative;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover .post-thumb img {
  transform: scale(1.04);
}

.post-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.post-thumb span {
  position: absolute;
  inset: auto 0.7rem 0.7rem auto;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, 0.55);
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  z-index: 1;
}

.article-cover {
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: #121018;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.post-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
}

.post-card h3 a:hover {
  color: var(--purple-2);
}

.post-card > p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.read-more {
  color: var(--purple-2);
  font-weight: 700;
  font-size: 0.88rem;
}

/* CTA band */
.cta-band {
  margin: 0.5rem 0 1rem;
  padding: 1.6rem 1.5rem;
  border-radius: 20px;
  background:
    linear-gradient(115deg, rgba(196, 18, 184, 0.35), rgba(18, 16, 24, 0.96) 50%),
    var(--panel);
  border: 1px solid rgba(196, 18, 184, 0.4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 18px 40px rgba(196, 18, 184, 0.12);
}

.cta-band h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  margin-bottom: 0.3rem;
}

.cta-band p {
  color: var(--muted);
}

/* Page hero */
.page-hero {
  padding: 2.75rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(196, 18, 184, 0.18), transparent 55%);
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 52ch;
}

/* Article */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2.2rem 0 3.5rem;
}

.article-body {
  font-size: 1.03rem;
}

.article-body h2 {
  font-size: 1.35rem;
  margin: 1.7rem 0 0.65rem;
}

.article-body p {
  color: #d9cfe4;
  margin-bottom: 0.95rem;
}

.article-body ul {
  margin: 0 0 1.1rem 1.05rem;
  color: #d9cfe4;
}

.article-body li {
  list-style: disc;
  margin-bottom: 0.35rem;
}

.article-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.sidebar-box {
  padding: 1.2rem;
  background: var(--panel);
  border: 1px solid rgba(196, 18, 184, 0.28);
  border-radius: var(--radius);
  position: sticky;
  top: 86px;
}

.sidebar-box h3 {
  margin-bottom: 0.65rem;
}

.sidebar-box p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.sidebar-links a {
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease;
}

.sidebar-links a:hover {
  color: var(--purple-2);
}

/* Auth */
.auth-wrap {
  display: grid;
  place-items: center;
  padding: 3.5rem 0 4.5rem;
}

.auth-panel {
  width: min(100%, 440px);
  padding: 1.75rem;
  background:
    linear-gradient(165deg, rgba(196, 18, 184, 0.18), transparent 40%),
    var(--panel);
  border: 1px solid rgba(196, 18, 184, 0.35);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.auth-panel img {
  height: 46px;
  margin: 0 auto 1.1rem;
}

.auth-panel h1 {
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
}

.auth-panel p {
  color: var(--muted);
  margin-bottom: 1.3rem;
}

.auth-panel .btn {
  width: 100%;
  margin-bottom: 0.65rem;
}

.auth-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.55rem;
}

/* Bonus */
.bonus-list {
  display: grid;
  gap: 0.75rem;
}

.bonus-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.15rem;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}

.bonus-item:hover {
  border-color: rgba(196, 18, 184, 0.45);
  transform: translateY(-2px);
}

.bonus-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.bonus-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.contact-copy p {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.info-row div {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.info-row strong {
  display: block;
  margin-bottom: 0.15rem;
}

.info-row span {
  color: var(--muted);
}

/* Mobile sticky CTA */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(7, 5, 10, 0.94);
  border-top: 1px solid rgba(196, 18, 184, 0.35);
  backdrop-filter: blur(12px);
  gap: 0.55rem;
}

.mobile-cta .btn {
  flex: 1;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.75rem 0 5.5rem;
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.28);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

.footer-brand img {
  height: 34px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 34ch;
}

.footer-col h4 {
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--purple-2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  color: var(--purple-2);
  font-weight: 800;
  font-size: 0.75rem;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner,
  .cat-rail,
  .features,
  .posts-grid,
  .footer-grid,
  .article-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cat-rail {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 1.25rem;
  }

  .cat:last-child {
    grid-column: 1 / -1;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 2.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    background: rgba(10, 8, 14, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem;
    gap: 0.25rem;
    animation: menuDrop 0.25s var(--ease);
  }

  @keyframes menuDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .mobile-cta {
    display: flex;
  }

  .sidebar-box {
    position: static;
  }

  .bonus-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-bottom: 6rem;
  }
}

@media (max-width: 560px) {
  .cat-rail {
    grid-template-columns: 1fr 1fr;
  }

  .hero-panel {
    animation: none;
  }

  .promo-bar {
    font-size: 0.78rem;
  }
}
