/* ==========================================================================
   HENTAIMU - MODERN DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #07080d;
  --bg-card: rgba(18, 20, 31, 0.7);
  --bg-card-hover: rgba(28, 31, 48, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(236, 72, 153, 0.4);

  /* Brand Accents */
  --accent-pink: #ec4899;
  --accent-purple: #a855f7;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
  --accent-gradient-hover: linear-gradient(135deg, #f43f5e 0%, #d946ef 50%, #8b5cf6 100%);
  
  /* Text Colors */
  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Dimensions & Radius */
  --max-w: 1140px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-dark);
}

/* Ambient Glow Background Orbs */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  will-change: transform;
}

.glow-orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  top: -150px;
  left: -100px;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.glow-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  top: 20%;
  right: -150px;
  animation: floatOrb 25s ease-in-out infinite alternate-reverse;
}

.glow-orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  bottom: 10%;
  left: 20%;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Subtle grid overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

/* App Wrapper */
.app-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 13, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.85rem 1.5rem;
  transition: var(--transition);
}

.header-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-name span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   MAIN HERO
   ========================================================================== */
.main-content {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  width: 100%;
}

.hero-section {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #f472b6;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-sub);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* Feature Badges under Hero */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-sub);
}

.feature-pill svg {
  width: 15px;
  height: 15px;
  color: var(--accent-pink);
}

/* ==========================================================================
   PRIMARY ACTION CARDS (CTA HUB)
   ========================================================================== */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.12), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.cta-card-manga::before {
  background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15), transparent 60%);
}

.cta-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(236, 72, 153, 0.2);
}

.cta-card-manga:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.2);
}

.cta-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.card-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.cta-card-manga .card-icon-wrapper {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.cta-card:hover .card-icon-wrapper {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

.cta-card-manga:hover .card-icon-wrapper {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.card-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.cta-card-manga .card-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.35);
}

.card-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.card-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  background: var(--accent-gradient);
  border: none;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3);
  transition: var(--transition);
}

.cta-card-manga .card-action-btn {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.cta-card:hover .card-action-btn {
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
  background: var(--accent-gradient-hover);
}

.card-action-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.cta-card:hover .card-action-btn svg {
  transform: translateX(4px);
}

/* ==========================================================================
   FEATURE HIGHLIGHTS (3 GRID)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.feature-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.feature-box:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.feature-box-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-pink);
  margin-bottom: 1rem;
}

.feature-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.feature-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SEO ARTICLE / CONTENT CONTAINER
   ========================================================================== */
.seo-section {
  max-width: 900px;
  margin: 0 auto;
}

.seo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.seo-card-header {
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.seo-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.seo-card-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.seo-article-content {
  color: var(--text-sub);
  font-size: 0.98rem;
  line-height: 1.78;
}

.seo-article-content p {
  margin-bottom: 1.4rem;
}

.seo-article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  padding-left: 12px;
  border-left: 3px solid var(--accent-pink);
  line-height: 1.4;
}

.quote-highlight {
  background: rgba(236, 72, 153, 0.06);
  border-left: 3px solid var(--accent-pink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #f1f5f9;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: rgba(5, 6, 10, 0.9);
  border-top: 1px solid var(--border-glass);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-warning {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem;
  }
  
  .main-content {
    padding: 2rem 1rem 3rem;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .cta-card {
    padding: 1.6rem 1.4rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .seo-card {
    padding: 1.5rem 1.2rem;
  }
}
