@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Extracted directly from the FunnyLife Golden Enso & Laughing Buddha Logo */
  --bg-deep: #0c1c30;
  --bg-navy: #142742;
  --card: #182e4d;
  --card-alt: #1d3658;
  --border: rgba(82, 214, 154, 0.18);
  --border-gold: rgba(245, 166, 35, 0.42);
  --text: #f8fafc;
  --muted: #d1dde6;
  --subtle: #94a8be;

  /* Official 4-Color Logo Palette */
  --fl-cyan: #39b5f6;      /* "Fu" & Buddha Left Sash */
  --fl-mint: #52d69a;      /* "nny" & Buddha Center/Right Sash */
  --fl-gold: #f5a623;      /* "Life" & Buddha Golden Body */
  --fl-enso-glow: #ffd166; /* Luminous Zen Enso Ring */
  --fl-lotus: #f3b995;     /* Warm Lotus Petal Blush */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at 50% 140px, #162c4a 0%, #112239 42%, #0c1c30 100%);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Official FunnyLife 3-Color Wordmark System */
.fl-wordmark {
  font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.fl-wordmark .fl-fu {
  color: var(--fl-cyan);
  background: linear-gradient(180deg, #5cc6fa 0%, var(--fl-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fl-wordmark .fl-nny {
  color: var(--fl-mint);
  background: linear-gradient(180deg, #6fe3ae 0%, var(--fl-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fl-wordmark .fl-funny {
  background: linear-gradient(90deg, var(--fl-cyan) 0%, #46c6d0 45%, var(--fl-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fl-wordmark .fl-life {
  color: var(--fl-gold);
  background: linear-gradient(180deg, var(--fl-enso-glow) 0%, var(--fl-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 28, 48, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.48rem;
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--fl-enso-glow);
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.35);
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--fl-enso-glow); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--fl-enso-glow), var(--fl-gold));
  color: #0c1c30;
  box-shadow: 0 10px 26px rgba(245, 166, 35, 0.28);
}
.btn-secondary {
  background: rgba(57, 181, 246, 0.14);
  color: var(--fl-cyan);
  border: 1px solid rgba(57, 181, 246, 0.42);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero {
  padding: 3.2rem 1.5rem 3.5rem;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}
.hero-lockup {
  width: 176px;
  height: 176px;
  margin: 0 auto 1.35rem;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 2.5px solid var(--fl-enso-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 48px rgba(245, 166, 35, 0.28);
}
.hero-app-icon {
  width: 136px;
  height: 136px;
  border-radius: 30px;
  border: 2px solid var(--border-gold);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  margin: 0 auto 1.25rem;
  display: block;
  object-fit: cover;
}
.eyebrow {
  display: inline-block;
  background: rgba(245, 166, 35, 0.14);
  color: var(--fl-enso-glow);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 0.35rem 1.05rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}
h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2.2rem, 4.7vw, 3.45rem);
  line-height: 1.13;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}
.gradient-text {
  background: linear-gradient(90deg, var(--fl-cyan) 0%, var(--fl-mint) 50%, var(--fl-enso-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 2rem;
}
.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: rgba(24, 46, 77, 0.82);
  border: 1px solid var(--border-gold);
  border-radius: 1.15rem;
  padding: 1.35rem 1.5rem;
}
.metric strong {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.45rem;
  color: var(--fl-enso-glow);
}
.metric span { font-size: 0.88rem; color: var(--muted); }

.section { padding: 4rem 0; border-top: 1px solid rgba(255, 209, 102, 0.14); }
.section-header {
  max-width: 780px;
  margin: 0 auto 2.6rem;
  text-align: center;
}
.section-header h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.75rem, 3.3vw, 2.4rem);
  margin-bottom: 0.7rem;
}
.section-header p { color: var(--muted); font-size: 1.04rem; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
}
.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  padding: 1.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
.bento-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.24rem;
  margin-bottom: 0.55rem;
  color: var(--text);
}
.bento-card p { color: var(--muted); font-size: 0.95rem; }

.icon-pill {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}
.pill-gold { background: rgba(245, 166, 35, 0.18); color: var(--fl-enso-glow); border: 1px solid rgba(245, 166, 35, 0.35); }
.pill-blue { background: rgba(57, 181, 246, 0.18); color: var(--fl-cyan); border: 1px solid rgba(57, 181, 246, 0.35); }
.pill-green { background: rgba(82, 214, 154, 0.18); color: var(--fl-mint); border: 1px solid rgba(82, 214, 154, 0.35); }
.pill-lotus { background: rgba(243, 185, 149, 0.18); color: var(--fl-lotus); border: 1px solid rgba(243, 185, 149, 0.35); }

.app-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border-gold);
  border-radius: 1.35rem;
  padding: 2.2rem;
  margin-bottom: 2rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}
@media (max-width: 860px) {
  .app-showcase { grid-template-columns: 1fr; padding: 1.5rem; }
}
.app-showcase h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.7rem;
  margin-bottom: 0.45rem;
}
.app-showcase .subtitle {
  color: var(--fl-enso-glow);
  font-weight: 600;
  font-size: 0.97rem;
  margin-bottom: 0.9rem;
}
.app-showcase p { color: var(--muted); margin-bottom: 1rem; font-size: 0.96rem; }
.feature-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
}
.feature-list li {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 0.45rem;
}
.feature-list li::before {
  content: "✓ ";
  color: var(--fl-mint);
  font-weight: 800;
}
.visual-frame {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 1.05rem;
  padding: 0.75rem;
  text-align: center;
}
.visual-frame img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  background: #081322;
  border-radius: 0.7rem;
  display: block;
}
.visual-caption {
  font-size: 0.8rem;
  color: var(--subtle);
  margin-top: 0.55rem;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border-gold);
  border-radius: 1.1rem;
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 1.05rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
}
.compare-table th {
  background: var(--bg-deep);
  color: var(--fl-enso-glow);
  font-family: 'Fredoka', sans-serif;
  font-size: 1.02rem;
}
.compare-table td { color: var(--muted); }
.compare-table td.good { color: var(--fl-mint); font-weight: 600; }

.deep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.deep-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  padding: 1.75rem;
}
.deep-box h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.25rem;
  color: var(--fl-enso-glow);
  margin-bottom: 0.65rem;
}
.deep-box p, .deep-box li { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.deep-box ul { padding-left: 1.2rem; }

/* Brand Swatch Cards */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1.15rem;
}
.swatch {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.swatch-color { height: 84px; width: 100%; }
.swatch-info { padding: 1rem; }
.swatch-info strong { display: block; font-size: 0.98rem; color: var(--text); }
.swatch-info code { font-size: 0.85rem; color: var(--fl-enso-glow); }
.swatch-info span { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }

footer {
  border-top: 1px solid var(--border-gold);
  padding: 3rem 1.5rem;
  background: #081322;
  color: var(--subtle);
  font-size: 0.9rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 1.1rem;
}
.footer-links a:hover { color: var(--fl-enso-glow); }
