/* ============================================================
   fr0sty's mini apps — purple theme matching the Notchify logo
   Brand: #7C5CFF -> #5B34E8, deep ink #2B1C66
   ============================================================ */

:root {
  --purple-300: #b9a8ff;
  --purple-400: #9b80ff;
  --purple-500: #7c5cff;
  --purple-600: #5b34e8;
  --purple-700: #4422b8;
  --ink: #0c0820;
  --ink-2: #120c2e;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(155, 128, 255, 0.18);
  --text: #ece9ff;
  --text-dim: #a79fce;
  --text-faint: #7a6fb0;
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1120px;
  --grad: linear-gradient(110deg, #b9a8ff 0%, #7c5cff 45%, #5b34e8 100%);
  --shadow: 0 24px 60px -18px rgba(91, 52, 232, 0.5);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(91, 52, 232, 0.14), transparent 55%),
    var(--ink);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.blob-1 { width: 460px; height: 460px; background: #7c5cff; top: -120px; left: -80px; animation: drift 22s ease-in-out infinite; }
.blob-2 { width: 520px; height: 520px; background: #5b34e8; top: 30%; right: -160px; animation: drift 28s ease-in-out infinite reverse; }
.blob-3 { width: 380px; height: 380px; background: #9b80ff; bottom: -140px; left: 30%; animation: drift 25s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 28px;
  backdrop-filter: blur(14px);
}
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 8, 32, 0.55);
  border-bottom: 1px solid rgba(155, 128, 255, 0.1);
}
.brand { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 1.35rem; }
.brand-mark { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 8px 22px -6px rgba(124, 92, 255, 0.85); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.94rem; font-weight: 500; }
.nav-links a { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 8px 22px -8px rgba(124, 92, 255, 0.9);
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid var(--card-border);
  color: var(--purple-300);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #46e6b0; box-shadow: 0 0 10px #46e6b0; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.02em; }
.hero-sub { margin: 22px auto 0; max-width: 620px; font-size: 1.18rem; color: var(--text-dim); }
.hero-sub strong { color: var(--text); }

.notch-demo { margin: 40px auto 8px; max-width: 720px; }
.notch-demo img { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(124, 92, 255, 0.35)); }

.hero-cta {
  --hero-cta-height: 51px;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}
.hero-cta > .btn { min-height: var(--hero-cta-height); box-sizing: border-box; }
.kofi-cta { display: inline-flex; align-items: center; height: var(--hero-cta-height); }
.kofi-cta iframe,
.kofi-cta img,
.kofi-cta a {
  transform: scale(1.3);
  transform-origin: center;
}
.hero-fineprint { margin-top: 18px; font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 0;
  background-clip: padding-box;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 28px 70px -18px rgba(124, 92, 255, 0.75); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border: 1px solid var(--card-border); }
.btn-ghost:hover { background: rgba(124, 92, 255, 0.14); transform: translateY(-2px); }
.btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn-meta { font-size: 0.75rem; font-weight: 600; opacity: 0.8; margin-top: 3px; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-download { padding: 15px 28px; font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 70px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { margin-top: 14px; color: var(--text-dim); font-size: 1.08rem; }

/* ---------- App grid ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.app-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease, border-color 0.22s, box-shadow 0.22s;
}
.app-card:hover { transform: translateY(-4px); border-color: rgba(155, 128, 255, 0.4); box-shadow: var(--shadow); }
.app-card.featured { background: linear-gradient(160deg, rgba(124, 92, 255, 0.12), rgba(91, 52, 232, 0.04)); }
.app-card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.card-notch {
  margin: 0 0 18px;
  padding: 18px 10px 14px;
  border-radius: 16px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(124, 92, 255, 0.16), rgba(10, 7, 18, 0.6) 70%);
  border: 1px solid rgba(155, 128, 255, 0.14);
  display: flex;
  justify-content: center;
}
.card-notch img, .card-notch video { width: 100%; max-width: 360px; height: auto; display: block; border-radius: 10px; filter: drop-shadow(0 12px 26px rgba(124, 92, 255, 0.4)); }
.app-icon { border-radius: 20px; box-shadow: 0 12px 30px -10px rgba(124, 92, 255, 0.7); }
.app-icon.placeholder {
  display: grid; place-items: center;
  width: 84px; height: 84px;
  font-size: 2.2rem; font-weight: 800;
  color: var(--purple-300);
  background: rgba(124, 92, 255, 0.1);
  border: 1px dashed var(--card-border);
}
.app-card h3 { font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.app-tagline { color: var(--text-dim); font-size: 0.98rem; margin-top: 2px; }
.tag { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(124, 92, 255, 0.2); color: var(--purple-300); }
.app-desc { color: var(--text-dim); margin-bottom: 18px; }
.app-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.app-tags li { font-size: 0.8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(155, 128, 255, 0.14); color: var(--purple-300); }
.app-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.app-card.coming { display: flex; flex-direction: column; }
.app-card.coming .app-desc { flex: 1; }
.coming-badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); color: var(--text-faint);
  border: 1px solid var(--card-border);
}

/* ---------- Screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.shot { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); background: var(--card); transition: transform 0.22s, box-shadow 0.22s; }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.shot img, .shot-media { width: 100%; height: auto; display: block; background: #0a0712; }
.shot figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(155, 128, 255, 0.12);
}
.shot-title { font-size: 1.02rem; font-weight: 800; color: var(--text); }
.shot-desc { font-size: 0.9rem; font-weight: 500; line-height: 1.5; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--card); overflow: hidden; transition: border-color 0.2s; }
.faq-item[open] { border-color: rgba(155, 128, 255, 0.4); }
.faq-item summary {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px; cursor: pointer; font-weight: 700; font-size: 1.05rem;
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; margin-left: auto; font-size: 1.5rem; font-weight: 400;
  color: var(--purple-300); transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.q-num {
  display: grid; place-items: center;
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%; background: var(--grad); color: #fff;
  font-size: 0.85rem; font-weight: 800;
}
.faq-body { padding: 0 22px 22px 64px; color: var(--text-dim); }
.faq-body p + p, .faq-body p + ol { margin-top: 10px; }
.faq-body ol, .faq-body ul { margin: 8px 0 0 18px; }
.faq-body li { margin-bottom: 6px; }
.faq-body code { background: rgba(124, 92, 255, 0.16); padding: 2px 7px; border-radius: 6px; font-size: 0.88em; color: var(--purple-300); }
.faq-body strong { color: var(--text); }
.faq-body a {
  color: var(--purple-300);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-body a:hover { color: var(--text); }

/* ---------- Report a bug ---------- */
#report { max-width: 760px; }
.report-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.14), rgba(91, 52, 232, 0.05));
  border: 1px solid var(--card-border);
}
.report-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(124, 92, 255, 0.16); color: var(--purple-300); margin-bottom: 18px; }
.report-card h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; }
.report-card > p { color: var(--text-dim); max-width: 480px; margin: 14px auto 0; }
.discord-cta { margin-top: 28px; }
.discord-box {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 28px auto 0; padding: 10px 12px 10px 18px;
  border-radius: 999px; background: rgba(12, 8, 32, 0.6);
  border: 1px solid var(--card-border);
}
.discord-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.discord-box code { font-size: 1.02rem; font-weight: 700; color: var(--text); }
.copy-btn {
  border: 0; cursor: pointer;
  padding: 8px 18px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 0.85rem;
  transition: transform 0.15s, opacity 0.15s;
}
.copy-btn:hover { transform: translateY(-1px); }
.copy-btn.copied { background: #2bb673; }
.report-alt { margin-top: 24px; font-size: 0.95rem; color: var(--text-faint); }
.report-alt a { color: var(--purple-300); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(155, 128, 255, 0.12); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-brand img { border-radius: 8px; }
.footer-links { display: flex; gap: 22px; font-size: 0.92rem; }
.footer-links a { color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-note { width: 100%; text-align: center; color: var(--text-faint); font-size: 0.88rem; padding-top: 10px; }

/* ---------- Reveal on scroll ---------- */
.section, .hero { opacity: 1; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 100%; right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: 14px; border-radius: 18px;
    background: rgba(18, 12, 46, 0.96);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(14px);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 10px 12px; border-radius: 10px; }
  .nav-links a:hover { background: rgba(124, 92, 255, 0.12); }
  .nav-cta { text-align: center; }
  .nav-toggle { display: flex; }
  .discord-box { flex-wrap: wrap; justify-content: center; border-radius: 18px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
