/* Shared styles for all Magical Character pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #F7941D;
  --orange-dark: #E07C05;
  --orange-light: #FFB04D;
  --gray-900: #0A0A12;
  --gray-800: #12121E;
  --gray-700: #1A1A2E;
  --gray-600: #252540;
  --gray-500: #3A3A5C;
  --gray-400: #6B6B8A;
  --gray-300: #9999B8;
  --gray-200: #C8C8DC;
  --gray-100: #E8E8F0;
  --white: #FFFFFF;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-strong: rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--gray-900); color: var(--gray-100); overflow-x: hidden; line-height: 1.6; }

#canvas-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.35; }
.scroll-line { position: fixed; top: 0; left: 0; height: 3px; background: var(--orange); z-index: 9999; width: 0%; transition: width 0.1s; border-radius: 0 2px 2px 0; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 5%; height: 72px; display: flex; align-items: center; justify-content: space-between; background: rgba(10,10,18,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); transition: all 0.3s; }
nav.scrolled { height: 60px; background: rgba(10,10,18,0.97); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 36px; filter: drop-shadow(0 0 8px rgba(247,148,29,0.3)); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--gray-300); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--orange); border-radius: 1px; transform: scaleX(0); transition: transform 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { background: var(--orange); color: var(--gray-900); padding: 10px 24px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 20px rgba(247,148,29,0.3); }
.nav-cta:hover { background: var(--orange-light); transform: translateY(-1px); }
.nav-back { display: flex; align-items: center; gap: 6px; color: var(--gray-300); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.2s; padding: 8px 14px; border: 1px solid var(--glass-border); border-radius: 8px; }
.nav-back:hover { color: var(--orange); border-color: rgba(247,148,29,0.3); }

/* BUTTONS */
.btn-primary { background: var(--orange); color: var(--gray-900); padding: 14px 32px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; transition: all 0.25s; box-shadow: 0 8px 30px rgba(247,148,29,0.35); display: inline-flex; align-items: center; gap: 8px; font-family: 'Inter', sans-serif; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(247,148,29,0.5); background: var(--orange-light); }
.btn-secondary { background: transparent; color: var(--gray-100); padding: 14px 32px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--glass-border); cursor: pointer; transition: all 0.25s; display: inline-flex; align-items: center; gap: 8px; font-family: 'Inter', sans-serif; }
.btn-secondary:hover { background: var(--glass); border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: 10px; }

/* SECTION */
section { position: relative; z-index: 1; padding: 80px 5%; }
.section-tag { display: inline-block; background: rgba(247,148,29,0.1); color: var(--orange); border: 1px solid rgba(247,148,29,0.2); padding: 5px 16px; border-radius: 50px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-size: clamp(26px, 3.5vw, 44px); font-weight: 800; line-height: 1.15; background: linear-gradient(135deg,#FFFFFF 40%,#8888A8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-desc { font-size: 15px; color: var(--gray-400); margin-top: 12px; line-height: 1.7; }

/* CARDS */
.glass-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 18px; }
.glass-card:hover { background: var(--glass-strong); }

/* FADE */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(1){transition-delay:0.05s} .fade-up:nth-child(2){transition-delay:0.15s} .fade-up:nth-child(3){transition-delay:0.25s} .fade-up:nth-child(4){transition-delay:0.35s}

/* FOOTER */
footer { position: relative; z-index: 1; background: var(--gray-800); border-top: 1px solid var(--glass-border); padding: 48px 5% 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand-mini { display: flex; align-items: center; gap: 10px; }
.footer-brand-mini img { height: 28px; }
.footer-brand-mini span { font-size: 12px; color: var(--gray-500); }
.footer-links-mini { display: flex; gap: 24px; }
.footer-links-mini a { font-size: 12px; color: var(--gray-400); text-decoration: none; transition: color 0.2s; }
.footer-links-mini a:hover { color: var(--orange); }

/* ── ICON SYSTEM ── */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-10 { width: 10px; height: 10px; }
.icon-12 { width: 12px; height: 12px; }
.icon-14 { width: 14px; height: 14px; }
.icon-16 { width: 16px; height: 16px; }
.icon-18 { width: 18px; height: 18px; }
.icon-20 { width: 20px; height: 20px; }
.icon-22 { width: 22px; height: 22px; }
.icon-24 { width: 24px; height: 24px; }
.icon-28 { width: 28px; height: 28px; }
.icon-30 { width: 30px; height: 30px; }
.icon-32 { width: 32px; height: 32px; }
.icon-36 { width: 36px; height: 36px; }
.icon-40 { width: 40px; height: 40px; }
.icon-48 { width: 48px; height: 48px; }
.c-orange { color: var(--orange); }
.c-green  { color: #4ade80; }
.c-blue   { color: #60a5fa; }
.c-white  { color: var(--white); }
.c-gray   { color: var(--gray-400); }

/* HAMBURGER */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px 4px; background: none; border: none; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--gray-200); border-radius: 2px; transition: all 0.3s; display: block; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 999;
  background: rgba(10,10,18,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 5% 20px; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
nav.scrolled ~ .mobile-menu, nav.scrolled + .mobile-menu { top: 60px; }
.mobile-menu a { color: var(--gray-300); text-decoration: none; font-size: 15px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04); transition: color 0.2s; display: flex; align-items: center; gap: 8px; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu .mobile-cta { background: var(--orange); color: var(--gray-900); padding: 12px 20px; border-radius: 10px; font-weight: 700; text-align: center; justify-content: center; margin-top: 8px; border-bottom: none; }
.mobile-menu .mobile-cta:hover { background: var(--orange-light); color: var(--gray-900); }

@media(max-width:768px){
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  section { padding: 60px 5%; }
}
