/* Future @I Philippines — ph.futureati.app
   Philippine sun palette. Taglish. Mobile-first. <500KB budget. */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --primary: #FCD116;
  --primary-dim: rgba(252, 209, 22, 0.15);
  --primary-glow: rgba(252, 209, 22, 0.35);
  --secondary: #0038A8;
  --secondary-dim: rgba(0, 56, 168, 0.2);
  --accent-red: #CE1126;
  --bg: #0A1628;
  --bg-secondary: #0E1A2E;
  --bg-surface: rgba(25, 40, 65, 0.6);
  --bg-card: rgba(20, 35, 55, 0.55);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(252, 209, 22, 0.1);
  --glass-hover: rgba(252, 209, 22, 0.06);
  --text: #F5F0E8;
  --text-dim: #C4BDB0;
  --text-muted: #8A8578;
  --border: rgba(252, 209, 22, 0.08);
  --border-hover: rgba(252, 209, 22, 0.2);
  --danger: #CE1126;
  --warning: #F59E0B;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 6px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', '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: var(--accent-red); 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(10, 22, 40, 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(10, 22, 40, 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), #F2C000);
  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(--primary); }
.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(--primary); background: var(--primary-dim); }
.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(252,209,22,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(252,209,22,0.25);
  color: var(--primary);
  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(--primary); 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, #FCD116 0%, #F2C000 35%, #FFE066 60%, #FCD116 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), #F2C000);
  color: var(--secondary);
  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(252,209,22,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(252,209,22,0.3); }
.app-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; color: var(--primary); }
.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 (PH palette) */
.icon-yellow { background: linear-gradient(135deg, #FCD116, #F2C000); }
.icon-blue   { background: linear-gradient(135deg, #0038A8, #1E50C4); }
.icon-red    { background: linear-gradient(135deg, #CE1126, #E53147); }

/* Features Strip */
.features-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 64px; }
.feature-item {
  padding: 28px 24px; background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.feature-item:hover {
  background: rgba(252,209,22,0.04);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.feature-item .feature-icon { margin-bottom: 12px; }
.feature-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--primary); }
.feature-item p { font-size: 13px; color: var(--text-muted); font-family: var(--font-body); }

/* Payment Section */
.payment-section {
  margin-top: 80px; padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  text-align: center;
}
.payment-section h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; color: var(--primary); }
.payment-section p { color: var(--text-dim); max-width: 560px; margin: 0 auto 28px; font-family: var(--font-body); }
.payment-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pay-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 100px;
  font-size: 14px; font-weight: 700;
  border: 1px solid; background: rgba(255,255,255,0.02);
}
.pay-gcash { color: #007BEA; border-color: rgba(0,123,234,0.4); }
.pay-maya  { color: #00B150; border-color: rgba(0,177,80,0.4); }
.pay-gplay { color: #FCD116; border-color: rgba(252,209,22,0.4); }

/* Legal pages */
.legal-page { padding: 120px 32px 80px; max-width: 820px; margin: 0 auto; }
.legal-page h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; color: var(--primary); }
.legal-page .legal-updated { font-size: 14px; color: var(--text-muted); margin-bottom: 40px; }
.legal-page .legal-body {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(20px);
}
.legal-body h2 { font-size: 20px; font-weight: 700; margin-top: 36px; margin-bottom: 12px; color: var(--primary); letter-spacing: -0.01em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 16px; font-weight: 600; margin-top: 24px; margin-bottom: 8px; }
.legal-body p, .legal-body li { font-size: 15px; color: var(--text-dim); line-height: 1.8; margin-bottom: 12px; font-family: var(--font-body); }
.legal-body ul, .legal-body ol { padding-left: 24px; margin-bottom: 16px; }
.legal-body li { margin-bottom: 6px; }
.legal-body .legal-contact { margin-top: 32px; padding: 20px; background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.legal-nav a {
  padding: 8px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500; text-decoration: none;
  color: var(--text-dim); background: var(--glass);
  border: 1px solid var(--glass-border); transition: all 0.2s;
}
.legal-nav a:hover, .legal-nav a.active { color: var(--primary); background: var(--primary-dim); border-color: var(--border-hover); }

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

/* Scroll reveals */
.fade-up, .feature-item {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.fade-up.visible, .feature-item.visible { opacity: 1; transform: translateY(0); }
.app-grid > .fade-up:nth-child(1) { transition-delay: 0ms; }
.app-grid > .fade-up:nth-child(2) { transition-delay: 120ms; }
.features-strip > .feature-item:nth-child(1) { transition-delay: 0ms; }
.features-strip > .feature-item:nth-child(2) { transition-delay: 100ms; }
.features-strip > .feature-item:nth-child(3) { transition-delay: 200ms; }
.features-strip > .feature-item:nth-child(4) { transition-delay: 300ms; }

/* Scrollbar + selection + focus */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: rgba(252,209,22,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(252,209,22,0.5); }
::selection { background: rgba(252,209,22,0.3); color: #fff; }
*:focus-visible { outline: 2px solid rgba(252,209,22,0.5); outline-offset: 2px; }

/* Mobile */
@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(10,22,40,0.96);
    backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); padding: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .hero { padding: 100px 20px 60px; }
  .hero p { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 300px; justify-content: center; }
  .section { padding: 60px 20px; }
  .app-grid { grid-template-columns: 1fr; }
  .payment-section { padding: 32px 20px; }
  .legal-page { padding: 100px 20px 60px; }
  .legal-body { padding: 24px !important; }
  .footer-links { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up, .feature-item { opacity: 1 !important; transform: none !important; }
}
