/* ==========================================================================
   Nigelware — shared design system
   Dark, premium, gradient. Nunito display type.
   Per-page accent theming via --accent / --accent-2 (set inline on <body>).
   ========================================================================== */

:root {
  --bg: #0f0f1a;
  --bg-2: #14141f;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.09);
  --line: rgba(255,255,255,0.10);
  --text: #f0f0f0;
  --text-dim: rgba(240,240,240,0.62);
  --text-faint: rgba(240,240,240,0.40);

  /* default accent (overridden per app page) */
  --accent: #3380ff;
  --accent-2: #6b5ce7;
  --radius: 18px;
  --maxw: 1080px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* --- Nav --- */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px 24px;
  background: rgba(15,15,26,0.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 900; font-size: 18px; color: var(--text); text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-brand .logo-dot {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-weight: 700; font-size: 14px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff; padding: 8px 18px; border-radius: 20px;
  text-decoration: none; font-weight: 800; font-size: 14px; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(51,128,255,0.25);
}
.nav-cta:hover { transform: scale(1.05); }
@media (max-width: 560px){ .nav-links .nav-text-link { display: none; } }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: 14px; font-family: inherit; font-weight: 800; font-size: 16px;
  text-decoration: none; border: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: scale(1.03); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-apple-icon { width: 20px; height: 20px; fill: currentColor; }

/* --- Generic section --- */
.section { padding: 88px 24px; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 800; color: var(--accent); margin-bottom: 14px; }
.gradient-text { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ==========================================================================
   HOME PAGE
   ========================================================================== */
.home-hero {
  min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 150px 24px 90px; position: relative;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(51,128,255,0.16), transparent),
    radial-gradient(ellipse 55% 45% at 82% 78%, rgba(107,92,231,0.12), transparent),
    radial-gradient(ellipse 50% 45% at 12% 70%, rgba(255,102,128,0.08), transparent),
    var(--bg);
}
.home-hero .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 30px;
  padding: 7px 16px; font-size: 14px; font-weight: 700; color: var(--text-dim); margin-bottom: 26px;
}
.home-hero .hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4da633; box-shadow: 0 0 0 4px rgba(77,166,51,0.18); }
.home-hero h1 { font-size: clamp(40px, 8vw, 78px); font-weight: 900; line-height: 1.04; letter-spacing: -0.02em; max-width: 880px; margin-bottom: 22px; }
.home-hero p { font-size: clamp(17px, 2.4vw, 20px); color: var(--text-dim); max-width: 560px; line-height: 1.6; margin-bottom: 34px; }
.home-hero .hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; margin-top: 56px; }
.hero-stats .stat { display: flex; flex-direction: column; align-items: center; }
.hero-stats .stat b { font-size: 32px; font-weight: 900; line-height: 1; }
.hero-stats .stat span { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 8px; font-weight: 700; }

/* App grid */
.apps-section h2 { text-align: center; font-size: clamp(28px, 5vw, 44px); font-weight: 900; margin-bottom: 10px; letter-spacing: -0.02em; }
.apps-section .section-sub { text-align: center; color: var(--text-dim); font-size: 17px; max-width: 520px; margin: 0 auto 26px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 44px; }
.filter-btn {
  background: var(--surface); border: 1px solid var(--line); color: var(--text-dim);
  border-radius: 22px; padding: 8px 18px; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: all .16s;
}
.filter-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px;
  text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s;
}
.app-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .18s;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--card-accent, rgba(51,128,255,0.14)), transparent);
  pointer-events: none;
}
.app-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.22); box-shadow: 0 18px 50px rgba(0,0,0,0.45); }
.app-card:hover::before { opacity: 1; }
.app-card-top { display: flex; align-items: center; gap: 15px; }
.app-icon {
  width: 62px; height: 62px; border-radius: 15px; flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08); background: #1a1a26;
}
.app-card-headings { min-width: 0; }
.app-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.app-card .app-tagline { color: var(--text-dim); font-size: 14.5px; margin-top: 3px; }
.app-card .app-desc { color: var(--text-dim); font-size: 14.5px; line-height: 1.5; }
.app-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-chip {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--card-chip, #9fb6ff); background: var(--card-chip-bg, rgba(51,128,255,0.12));
  padding: 5px 11px; border-radius: 20px;
}
.app-arrow { font-weight: 800; font-size: 14px; color: var(--text-faint); transition: transform .18s, color .18s; }
.app-card:hover .app-arrow { transform: translateX(3px); color: var(--text); }
.app-card .app-store-tag { font-size: 12.5px; color: var(--text-faint); font-weight: 700; }

/* Featured (PitchInDish) band */
.featured-band { padding: 0 24px 30px; }
.featured-inner {
  max-width: var(--maxw); margin: 0 auto; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(224,122,95,0.18), transparent),
    linear-gradient(135deg, #1c1822, #15131c);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
}
.featured-text { padding: 46px 44px; }
.featured-text .eyebrow { color: #e8a87c; }
.featured-text h3 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 12px; }
.featured-text p { color: var(--text-dim); font-size: 16px; line-height: 1.6; margin-bottom: 24px; max-width: 440px; }
.featured-visual { background: linear-gradient(135deg, #2a2230, #1a1620); display: flex; align-items: center; justify-content: center; padding: 30px; }
.featured-visual .emoji-stack { font-size: clamp(60px, 9vw, 104px); line-height: 1; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)); }
@media (max-width: 760px){ .featured-inner { grid-template-columns: 1fr; } .featured-visual { order: -1; padding: 40px; } }

/* --- Footer --- */
footer.site-footer {
  padding: 56px 24px 48px; border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-2);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 17px; }
.footer-brand .logo-dot { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-weight: 700; font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; max-width: var(--maxw); margin: 28px auto 0; color: var(--text-faint); font-size: 13px; }

/* ==========================================================================
   APP DETAIL PAGE
   ========================================================================== */
.app-hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 130px 24px 70px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-glow, rgba(51,128,255,0.18)), transparent),
    radial-gradient(ellipse 60% 50% at 80% 85%, var(--accent-2-glow, rgba(107,92,231,0.12)), transparent),
    var(--bg);
}
.app-hero .app-hero-icon {
  width: 108px; height: 108px; border-radius: 26px; margin-bottom: 26px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.10);
}
.app-hero .hero-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 6px 16px; font-size: 14px; font-weight: 700; color: var(--text-dim); margin-bottom: 22px;
}
.app-hero h1 { font-size: clamp(36px, 7vw, 64px); font-weight: 900; line-height: 1.08; max-width: 760px; margin-bottom: 18px; letter-spacing: -0.02em; }
.app-hero .lede { font-size: clamp(17px, 2.4vw, 19px); color: var(--text-dim); max-width: 560px; line-height: 1.6; margin-bottom: 32px; }
.app-hero .hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.app-meta { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; margin-top: 40px; color: var(--text-faint); font-size: 13px; font-weight: 700; }
.app-meta .app-meta-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.app-meta .app-meta-item b { color: var(--text); font-size: 16px; font-weight: 800; }

.features-section h2, .steps-section h2, .cta-section h2 { text-align: center; font-size: clamp(28px, 5vw, 40px); font-weight: 900; margin-bottom: 14px; letter-spacing: -0.02em; }
.features-section .section-sub { text-align: center; color: var(--text-dim); font-size: 17px; max-width: 520px; margin: 0 auto 48px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: var(--maxw); margin: 0 auto; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: transform .18s, border-color .18s; }
.feature-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }
.feature-icon { font-size: 34px; margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 15px; line-height: 1.55; }

.steps-section { background: radial-gradient(ellipse 70% 50% at 20% 50%, var(--accent-2-glow, rgba(107,92,231,0.08)), transparent), var(--bg); }
.steps { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.step { display: flex; align-items: flex-start; gap: 20px; }
.step-number { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; color: #fff; }
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.step p { color: var(--text-dim); font-size: 15px; line-height: 1.55; }

.pills-section { text-align: center; }
.pills-section h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 900; margin-bottom: 24px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 640px; margin: 0 auto; }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 8px 18px; font-size: 15px; font-weight: 700; }

.cta-section { text-align: center; background: radial-gradient(ellipse 60% 50% at 50% 100%, var(--accent-glow, rgba(51,128,255,0.14)), transparent), var(--bg); }
.cta-section p { color: var(--text-dim); font-size: 17px; max-width: 480px; margin: 0 auto 32px; line-height: 1.55; }

.app-footer { padding: 34px 24px; text-align: center; font-size: 13px; color: var(--text-dim); border-top: 1px solid rgba(255,255,255,0.06); }
.app-footer a { color: var(--text-dim); text-decoration: none; }
.app-footer a:hover { color: var(--text); }
.app-footer .back-link { display: inline-block; margin-bottom: 10px; font-weight: 700; }

@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
