/* Future @I China — cn.futureati.app
   Chinese red palette. Simplified Chinese. Mobile-first. <500KB budget. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&display=swap');

:root {
  --primary: #DE2910;
  --primary-dim: rgba(222, 41, 16, 0.15);
  --primary-glow: rgba(222, 41, 16, 0.35);
  --secondary: #FFDE00;
  --secondary-dim: rgba(255, 222, 0, 0.2);
  --accent-red: #CE1126;
  --bg: #0D0505;
  --bg-secondary: #130808;
  --bg-surface: rgba(35, 12, 12, 0.6);
  --bg-card: rgba(28, 10, 10, 0.55);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(222, 41, 16, 0.1);
  --glass-hover: rgba(222, 41, 16, 0.06);
  --text: #F5F0E8;
  --text-dim: #C4B8B0;
  --text-muted: #8A7878;
  --border: rgba(222, 41, 16, 0.08);
  --border-hover: rgba(222, 41, 16, 0.2);
  --danger: #CE1126;
  --warning: #F59E0B;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 6px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Noto Sans SC', 'Outfit', 'Segoe UI', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

h1, h2, h3, h4 { font-family: var(--font-display); }

/* Ambient Background */
.ambient-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.ambient-bg .orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.28;
  animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; left: -200px; }
.orb-2 { width: 500px; height: 500px; background: var(--secondary); bottom: -150px; right: -150px; animation-delay: -7s; }
.orb-3 { width: 400px; height: 400px; background: #8B0000; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -14s; opacity: 0.15; }

.low-end .ambient-bg,
.low-end .particle-canvas,
.low-end .cursor-glow { display: none !important; }

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-30px) scale(1.05); }
  66%      { transform: translate(-20px,20px) scale(0.95); }
}

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 32px;
  backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(13, 5, 5, 0.78);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled { background: rgba(13, 5, 5, 0.9); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.nav-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), #B01E08);
  color: var(--secondary);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; font-family: var(--font-body);
}
.nav-brand-text { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-brand-text span { color: var(--secondary); }
.nav-links { display: flex; gap: 8px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  padding: 8px 16px; border-radius: var(--radius-xs);
  font-size: 14px; font-weight: 500; transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-links a.active { color: var(--secondary); background: var(--secondary-dim); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary:focus,
.nav-links a.btn-primary:active {
  color: #0D0505;
  background: linear-gradient(135deg, var(--primary), #B01E08);
}
.nav-hamburger { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; padding: 4px; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 32px 80px; text-align: center; position: relative;
}
.hero-content { max-width: 800px; position: relative; z-index: 2; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x,50%) var(--mouse-y,50%),
    rgba(222,41,16,0.06) 0%, transparent 60%);
  pointer-events: none; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-dim);
  border: 1px solid rgba(222,41,16,0.25);
  color: var(--secondary);
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 32px; letter-spacing: 0.02em;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--secondary); border-radius: 50%; animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #DE2910 0%, #FF4A2A 35%, #FFDE00 60%, #DE2910 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }
.hero p {
  font-size: 18px; color: var(--text-dim);
  max-width: 620px; margin: 0 auto 40px; line-height: 1.75;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-badge { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s both; }
.hero h1    { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.4s both; }
.hero p     { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.6s both; }
.hero-cta   { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.8s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.25s ease;
  font-family: inherit; min-height: 44px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #B01E08);
  color: #FFDE00;
  box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--primary-glow), 0 8px 32px rgba(0,0,0,0.3); }
.btn-primary:active { transform: scale(0.97); }
.btn-glass {
  background: var(--glass); color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-glass:hover { background: var(--glass-hover); border-color: var(--border-hover); transform: translateY(-2px); }
.btn-icon { width: 20px; height: 20px; }

/* Sections */
.section { padding: 100px 32px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-header p { font-size: 16px; color: var(--text-dim); max-width: 560px; margin: 0 auto; }

/* App Cards */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(20px);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.4s ease;
  position: relative; overflow: hidden;
}
.app-card::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 45%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 55%, transparent 100%);
  transition: left 0.6s ease; pointer-events: none;
}
.app-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(222,41,16,0.08);
}
.app-card:hover::before { left: 100%; }
.app-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
}
.app-card:hover .app-card-icon { transform: scale(1.1); box-shadow: 0 0 20px rgba(222,41,16,0.3); }
.app-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; color: var(--secondary); }
.app-card .app-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; line-height: 1.7; font-family: var(--font-body); }
.app-card .app-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.app-meta .tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px; background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.app-card .app-links { display: flex; gap: 10px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xs);
  color: var(--text); text-decoration: none;
  font-size: 13px; font-weight: 500; transition: all 0.2s;
  min-height: 44px;
}
.store-badge:hover { background: var(--glass-hover); border-color: var(--border-hover); }
.store-badge svg { width: 18px; height: 18px; }
.coming-soon { color: var(--text-muted); font-style: italic; font-size: 13px; padding: 10px 0; }

/* App icon gradients */
.icon-yellow { background: linear-gradient(135deg, #FFDE00, #E5C400); }
.icon-blue   { background: linear-gradient(135deg, #DE2910, #B01E08); }
.icon-red    { background: linear-gradient(135deg, #CE1126, #E53147); }
.icon-teal   { background: linear-gradient(135deg, #34D399, #10B981); }
.icon-pink   { background: linear-gradient(135deg, #F9A8D4, #F472B6); }

/* Disclaimer badges */
.disclaimer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 12px;
  background: rgba(206,17,38,0.12);
  border: 1px solid rgba(206,17,38,0.3);
  color: #F87171;
}
.disclaimer-badge.parents {
  background: rgba(249,168,212,0.12);
  border-color: rgba(249,168,212,0.3);
  color: #F9A8D4;
}

/* Features strip */
.features-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; margin-top: 80px; padding-top: 64px;
  border-top: 1px solid var(--border);
}
.feature-item { text-align: center; }
.feature-icon { display: flex; justify-content: center; margin-bottom: 16px; }
.feature-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; font-family: var(--font-body); color: var(--secondary); }
.feature-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Payment section */
.payment-section { text-align: center; margin-top: 80px; padding: 48px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.payment-section h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.payment-section p { color: var(--text-dim); margin-bottom: 24px; }
.payment-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pay-badge {
  padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: 14px;
}
.pay-gcash { background: #0078FF; color: #fff; }
.pay-maya  { background: #00C878; color: #fff; }
.pay-gplay { background: #34A853; color: #fff; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.region-switch {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); text-decoration: none; font-size: 13px;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 100px;
  margin-bottom: 24px; transition: all 0.2s;
}
.region-switch:hover { color: var(--text); border-color: var(--border-hover); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; margin-bottom: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.footer-copy a { color: var(--text-muted); text-decoration: none; }

/* Fade-up animation */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* Legal pages */
.legal-page { max-width: 800px; margin: 0 auto; padding: 120px 32px 80px; }
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.legal-nav a {
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 100px;
  font-size: 13px; color: var(--text-muted); text-decoration: none; transition: all 0.2s;
}
.legal-nav a.active, .legal-nav a:hover { color: var(--secondary); border-color: var(--secondary); }
.legal-body h2 { font-size: 1.2rem; margin: 28px 0 8px; color: var(--secondary); font-family: var(--font-body); font-weight: 700; }
.legal-body h3 { font-size: 1rem; margin: 16px 0 8px; font-family: var(--font-body); font-weight: 600; }
.legal-body p, .legal-body li { color: var(--text-dim); line-height: 1.75; font-size: 14px; margin-bottom: 12px; }
.legal-body ul, .legal-body ol { padding-left: 20px; }
.legal-callout {
  padding: 16px 20px; border-radius: 12px; margin-bottom: 28px;
  font-size: 14px; line-height: 1.7;
}
.legal-callout.warn {
  background: rgba(222,41,16,0.08); border: 1px solid rgba(222,41,16,0.3); color: #F87171;
}
.legal-contact { margin-top: 40px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.legal-contact p { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.legal-contact a { color: var(--secondary); }
.indent { padding-left: 20px; }

/* Mobile responsive */
@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(13,5,5,0.95); padding: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .hero { padding: 100px 20px 60px; }
  .section { padding: 60px 20px; }
  .app-grid { grid-template-columns: 1fr; }
  .features-strip { grid-template-columns: 1fr 1fr; gap: 20px; }
  .payment-section { padding: 28px 20px; }
  .legal-page { padding: 100px 20px 60px; }
}
@media (max-width: 480px) {
  .features-strip { grid-template-columns: 1fr; }
}
