/* AniRivo landing page */
:root {
  --bg: #07122B;
  --surface: #0B1B3F;
  --blue: #1A6BFF;
  --blue-hover: #3A80FF;
  --blue-light: #1A8CFF;
  --cyan: #08C2DD;
  --gold: #D4A64A;
  --cream: #F6EEDC;
  --text: #FFFFFF;
  --text-soft: #D6DDEC;
  --text-muted: #B4C0D9;
  --line: rgba(255, 255, 255, 0.08);
  --pad: clamp(20px, 4vw, 40px);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Figtree', system-ui, sans-serif;
  --brand: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--cyan); }
h1, h2, p { margin: 0; }

.container { max-width: 1240px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; font-size: 16px; padding: 14px 26px; border-radius: 8px; transition: background 0.2s ease; }
.btn--primary { background: var(--blue); color: var(--text); }
.btn--primary:hover { background: var(--blue-hover); color: var(--text); }
.btn--ghost { font-weight: 600; border: 1.5px solid rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.btn--sm { font-size: 15px; padding: 10px 20px; }
.btn--lg { font-size: 18px; padding: 18px 34px; border-radius: 10px; min-width: 220px; gap: 14px; }
.play-icon { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid currentColor; }
.play-icon--lg { border-top-width: 9px; border-bottom-width: 9px; border-left-width: 15px; }

/* Brand mark */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { display: block; height: 34px; width: auto; }
.site-footer .brand-logo { height: 30px; }
.brand-bar { display: block; border-radius: 3px; }
.brand-bar--1 { width: 8px; height: 16px; background: var(--blue-light); }
.brand-bar--2 { width: 10px; height: 24px; background: var(--cyan); }
.brand-play { display: block; width: 22px; height: 30px; background: var(--blue); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.brand-name { font-family: var(--brand); font-weight: 800; font-size: 28px; line-height: 1; margin-left: 6px; color: var(--text); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(7, 18, 43, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.main-nav { display: flex; gap: clamp(16px, 2.6vw, 36px); flex: 1; justify-content: center; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.link-signin { font-size: 15px; font-weight: 500; }

/* Hero */
.hero { position: relative; height: clamp(380px, 33vw, 560px); overflow: hidden; background: var(--bg); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 100% 50%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 18, 43, 0.85) 0%, rgba(7, 18, 43, 0.5) 30%, rgba(7, 18, 43, 0) 50%); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(0deg, var(--bg), rgba(7, 18, 43, 0)); }
.hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-copy { max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.2vw, 58px); line-height: 0.95; letter-spacing: -0.01em; text-wrap: balance; }
.hero-rule { display: flex; gap: 8px; width: 140px; }
.hero-rule span { height: 3px; border-radius: 2px; }
.hero-rule span:first-child { flex: 2; background: var(--cyan); }
.hero-rule span:last-child { flex: 1; background: var(--blue); }
.hero-meta { font-size: 17px; color: var(--text-soft); }
.hero-logline { font-size: 17px; line-height: 1.5; max-width: 380px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

/* Shared type */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; text-wrap: balance; }
.display--sm { font-size: clamp(28px, 3vw, 38px); }
.lead { font-size: 17px; color: var(--text-soft); }

/* Intro */
.intro { border-bottom: 1px solid var(--line); }
.intro-inner { display: flex; flex-direction: column; gap: 8px; padding-top: 28px; padding-bottom: 32px; }

/* Discover */
.discover-inner { display: flex; flex-direction: column; gap: 22px; padding-top: 36px; padding-bottom: 48px; }
.discover-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-family: inherit; font-size: 14px; font-weight: 500; padding: 9px 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.3); background: transparent; color: var(--text); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.chip:hover { border-color: var(--text); }
.chip.is-active { font-weight: 600; border-color: var(--blue); background: var(--blue); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); column-gap: 14px; row-gap: 22px; }
.card { display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.card:hover { color: var(--text); }
.card[hidden] { display: none; }
.card-media { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface); margin-bottom: 6px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover .card-media { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-title { font-size: 16px; font-weight: 700; }
.card-meta { font-size: 14px; color: var(--text-muted); }
.empty { font-size: 16px; color: var(--text-muted); }

/* Rupkio Originals band */
.originals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.originals-logo { background: var(--cream); display: flex; align-items: center; justify-content: center; padding: 28px; min-height: 200px; }
.rupkio-crop { position: relative; width: min(100%, 380px); aspect-ratio: 2.84 / 1; overflow: hidden; }
.rupkio-crop img { position: absolute; width: 123.6%; max-width: none; left: -11.4%; top: -38%; mix-blend-mode: multiply; }
.originals-copy { position: relative; overflow: hidden; min-height: 200px; display: flex; align-items: center; }
.originals-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 62% 50%; }
.originals-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 18, 43, 0.92) 0%, rgba(7, 18, 43, 0.7) 55%, rgba(7, 18, 43, 0.35) 100%); }
.originals-text { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 32px clamp(20px, 4vw, 48px); }

/* Membership */
.join { border-bottom: 1px solid var(--line); }
.join-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; }
.join-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price-amount { font-family: var(--brand); font-weight: 800; font-size: clamp(44px, 4.6vw, 58px); line-height: 1; }
.price-unit { font-size: 18px; color: var(--text-soft); }

/* Footer */
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 34px; }
.footer-credits { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.footer-credits .sep { color: rgba(255, 255, 255, 0.25); }

/* Burger + mobile menu (hidden on desktop) */
.burger { display: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.25s ease, opacity 0.2s ease; }
.burger:hover { background: rgba(255, 255, 255, 0.08); }
.site-header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
  .main-nav, .header-actions { display: none; }
  .burger { display: flex; }
  .brand-logo { height: 28px; }
  .site-header.is-open .mobile-menu { display: flex; }
  .mobile-menu { flex-direction: column; gap: 18px; padding: 8px var(--pad) 24px; border-top: 1px solid var(--line); background: var(--bg); }
  .mobile-nav { display: flex; flex-direction: column; }
  .mobile-nav a { font-size: 18px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .mobile-cta { width: 100%; }
}

@media (max-width: 720px) {
  .hide-mobile { display: none !important; }

  /* Hero: art on top, short copy anchored at the bottom */
  .hero { height: auto; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-img { object-position: 72% 50%; }
  .hero-shade { background: linear-gradient(0deg, rgba(7, 18, 43, 0.98) 0%, rgba(7, 18, 43, 0.85) 32%, rgba(7, 18, 43, 0.15) 62%, rgba(7, 18, 43, 0) 100%); }
  .hero-fade { display: none; }
  .hero-inner { height: auto; padding-top: 260px; padding-bottom: 32px; }
  .hero-copy { max-width: none; gap: 10px; }
  .hero-title { font-size: clamp(36px, 10vw, 46px); }
  .hero-meta { font-size: 15px; }
  .hero-actions { margin-top: 8px; }
  .hero-actions .btn { width: 100%; }

  .intro-inner { padding-top: 24px; padding-bottom: 24px; }
  .lead { font-size: 16px; }

  .discover-inner { padding-top: 28px; padding-bottom: 36px; gap: 18px; }
  .discover-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + var(--pad)); margin-right: calc(var(--pad) * -1); padding-right: var(--pad); padding-bottom: 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 10px 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 18px; }
  .card-title { font-size: 15px; }
  .card-meta { font-size: 13px; }

  .originals-logo { min-height: 150px; padding: 24px; }
  .rupkio-crop { width: min(100%, 300px); }
  .originals-copy { min-height: 180px; }
  .originals-text { padding: 28px var(--pad); }

  .join-inner { flex-direction: column; align-items: stretch; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
  .join-copy { flex: none; }
  .btn--lg { width: 100%; min-width: 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-credits { flex-direction: column; gap: 6px; }
  .footer-credits .sep { display: none; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}
