/* ============================================================
   AniReel Official Website — Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0b1a;
  --bg2: #140f24;
  --accent: #b5f000;
  --accent-hover: #ceff1a;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-border: rgba(255, 255, 255, 0.22);
  --card-radius: 10px;
  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- Logo Component ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

/* ---------- Download Buttons (app store badges) ---------- */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  color: #000;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  min-width: 178px;
  height: 56px;
}

.btn-store:hover {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.btn-store .btn-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.btn-store .btn-label {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-store .btn-sub {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1;
  letter-spacing: 0.2px;
}

.btn-store .btn-main {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.2px;
  color: #000;
}

/* Small variant for floating bar */
.btn-store--sm {
  height: 44px;
  min-width: 0;
  padding: 8px 16px;
  border-radius: 12px;
}

.btn-store--sm .btn-main {
  font-size: 14px;
}

/* ---------- Mobile green download button (floating bar CTA) ---------- */
.btn-download-cta {
  display: inline-block;
  padding: 11px 28px;
  background: var(--accent);
  color: #000;
  font-size: 15px;
  font-weight: 800;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.btn-download-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ---------- Cover background fade-in ---------- */
.covers-bg {
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-links .sep {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-info {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   INDEX PAGE — Desktop Layout
   ============================================================ */

.page-index {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Desktop hero: full height, two columns */
.hero {
  flex: 1;
  display: flex;
  min-height: calc(100vh - 120px);
  position: relative;
  overflow: hidden;
}

/* Left column */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px 40px 48px;
  width: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 60px;
}

.hero-headline {
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text);
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Right column — staggered cover grid (decorative, no interaction) */
.hero-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: 20px 20px 20px 20px;
  pointer-events: none;
  user-select: none;
}

.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -60px;
  background: linear-gradient(to right, var(--bg) 0%, transparent 35%);
  z-index: 1;
  pointer-events: none;
}

.hero-right::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Decorative cover background image */
.covers-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

/* Mobile sticky top bar */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a1a1a;
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Mobile fixed floating download bar */
.mobile-download-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 20px 28px;
  background: linear-gradient(to top, rgba(18, 15, 30, 0.98), rgba(18, 15, 30, 0.90));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-download-bar .bar-app-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mobile-download-bar .bar-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.mobile-download-bar .bar-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-download-bar .bar-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.mobile-download-bar .bar-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   MOBILE LAYOUT  (max-width: 767px)
   ============================================================ */

@media (max-width: 767px) {
  /* Hide separate mobile header — logo lives in the hero */
  .mobile-header {
    display: none;
  }

  /* Show floating download bar */
  .mobile-download-bar {
    display: flex;
  }

  /* Logo overlaid on hero background, top-left */
  .hero-left .logo {
    display: flex;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
  }

  /* Full-screen hero on mobile */
  .hero {
    flex-direction: column;
    min-height: calc(100svh - 60px);
    position: relative;
  }

  /* Covers become background */
  .hero-right {
    position: absolute;
    inset: 0;
    padding: 0;
    z-index: 0;
  }

  .hero-right::before {
    left: 0;
    background: rgba(8, 6, 20, 0.72);
  }

  .hero-right::after {
    display: none;
  }

  /* Left column full-width overlay on mobile */
  .hero-left {
    width: 100%;
    padding: 24px 20px;
    position: relative;
    z-index: 2;
    justify-content: center;
    align-items: center;
    flex: 1;
    text-align: center;
  }

  .hero-content {
    align-items: center;
    gap: 24px;
    padding-top: 0;
  }

  .hero-headline {
    font-size: clamp(32px, 9vw, 52px);
    letter-spacing: -0.5px;
  }

  .hero-buttons {
    display: none;
  }

  /* Footer on mobile — pad bottom for floating bar */
  .site-footer {
    padding: 20px 20px 110px;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ============================================================
   LEGAL PAGES (Privacy Policy & Terms of Service)
   ============================================================ */

.page-legal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  display: flex;
  align-items: center;
  padding: 24px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.legal-body {
  flex: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px 64px;
  width: 100%;
}

.legal-body h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-body .last-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-style: italic;
}

.legal-body h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-body p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
  line-height: 1.75;
}

.legal-body ul, .legal-body ol {
  margin: 0 0 14px 20px;
}

.legal-body li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  color: var(--accent-hover);
}

.legal-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 32px 0;
}

/* Section number badges for ToS */
.section-num {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  margin-right: 6px;
}

@media (max-width: 767px) {
  .legal-header {
    padding: 16px 20px;
  }

  .legal-body {
    padding: 32px 20px 48px;
  }

  .legal-body h1 {
    font-size: 24px;
  }

  /* Mobile header for legal pages only */
  .page-legal .mobile-header {
    display: flex;
  }

  .legal-header {
    display: none;
  }
}
