/* Firuworks — dreamy theme */
:root {
  --lavender: #c3b1e1;
  --lavender-2: #b29bdc;
  --peach:    #ffdab9;
  --peach-2:  #ffc4a3;
  --mint:     #b5ead7;
  --sky:      #aec6e4;
  --cream:    #fff8f0;
  --ink:      #3d3552;
  --ink-soft: #6b6283;
  --stardust: #f3ebff;
  --shadow-soft: 0 20px 40px -20px rgba(99, 77, 156, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --ease-soft: cubic-bezier(.23,1,.32,1);
  --font-head: 'Quicksand', 'Comfortaa', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; }
h3 { font-size: 1.25rem; }
p  { color: var(--ink-soft); margin: 0 0 1em; }
a  { color: var(--lavender-2); text-decoration: none; transition: color .2s var(--ease-soft); }
a:hover { color: #9572c9; }

/* Layout */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(255, 248, 240, 0.72);
  border-bottom: 1px solid rgba(195, 177, 225, 0.25);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--lavender), var(--peach), var(--mint), var(--sky), var(--lavender));
  box-shadow: 0 8px 24px -10px rgba(195,177,225,.8);
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { color: var(--ink); font-weight: 500; position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: linear-gradient(90deg, var(--lavender), var(--peach));
  border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-soft);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

/* Hero */
.hero { position: relative; padding: 96px 0 120px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(195,177,225,0.35);
  font-size: .85rem; color: var(--ink-soft); font-weight: 500;
  box-shadow: var(--shadow-soft);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 6px rgba(181,234,215,.4); animation: pulse 2.4s var(--ease-soft) infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: .6; } }

.hero h1 .word { display: inline-block; opacity: 0; transform: translateY(14px); animation: fadeUp .9s var(--ease-soft) forwards; }
.hero h1 .word:nth-child(1) { animation-delay: .05s; }
.hero h1 .word:nth-child(2) { animation-delay: .12s; }
.hero h1 .word:nth-child(3) { animation-delay: .19s; }
.hero h1 .word:nth-child(4) { animation-delay: .26s; }
.hero h1 .word:nth-child(5) { animation-delay: .33s; }
.hero h1 .word:nth-child(6) { animation-delay: .40s; }
.hero h1 .word:nth-child(7) { animation-delay: .47s; }
.hero h1 .word:nth-child(8) { animation-delay: .54s; }
.hero h1 .word:nth-child(n+9) { animation-delay: .6s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-subtitle { font-size: 1.15rem; max-width: 620px; color: var(--ink-soft); opacity: 0; animation: fadeUp 1s var(--ease-soft) .7s forwards; }

.cta-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s var(--ease-soft) .85s forwards; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-family: var(--font-head);
  border: 0; cursor: pointer;
  transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft), background .25s;
  text-decoration: none;
}
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--lavender-2), var(--peach-2));
  box-shadow: 0 14px 30px -12px rgba(178,155,220,.8), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary::after {
  content: ''; position: absolute;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(178,155,220,.9); }
.btn-primary:active { transform: translateY(0) scale(.97); }
.btn-ghost {
  color: var(--ink); background: rgba(255,255,255,.6);
  border: 1px solid rgba(195,177,225,.35);
}
.btn-ghost:hover { background: white; }

/* Floating blobs */
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; pointer-events: none; z-index: 1;
  mix-blend-mode: multiply;
}
.blob-1 { width: 520px; height: 520px; left: -140px; top: -120px; background: radial-gradient(circle, var(--lavender), transparent 65%); animation: drift 22s var(--ease-soft) infinite alternate; }
.blob-2 { width: 440px; height: 440px; right: -120px; top: 20px; background: radial-gradient(circle, var(--peach), transparent 65%); animation: drift2 26s var(--ease-soft) infinite alternate; }
.blob-3 { width: 380px; height: 380px; left: 35%; top: 180px; background: radial-gradient(circle, var(--mint), transparent 65%); animation: drift3 30s var(--ease-soft) infinite alternate; }
.blob-4 { width: 320px; height: 320px; right: 10%; bottom: -80px; background: radial-gradient(circle, var(--sky), transparent 65%); animation: drift 28s var(--ease-soft) infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.08); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-30px,50px) scale(1.1); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(20px,-40px) scale(1.05); } }

/* Sparkles */
.sparkle-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.sparkle { position: absolute; width: 14px; height: 14px; opacity: 0; animation: twinkle 5s var(--ease-soft) infinite; }
.sparkle:nth-child(1) { top: 20%; left: 15%; animation-delay: .2s; }
.sparkle:nth-child(2) { top: 70%; left: 25%; animation-delay: 1.4s; }
.sparkle:nth-child(3) { top: 40%; left: 75%; animation-delay: 2.6s; }
.sparkle:nth-child(4) { top: 15%; left: 85%; animation-delay: 3.3s; }
.sparkle:nth-child(5) { top: 60%; left: 60%; animation-delay: 4.1s; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(180deg); } }

/* Section */
.section { padding: 80px 0; position: relative; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title small { display: block; color: var(--lavender-2); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px; }

/* App grid */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.app-card {
  position: relative;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(195,177,225,.25);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.app-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(195,177,225,.4), rgba(255,218,185,.3), rgba(181,234,215,.3));
  z-index: -1; opacity: 0; transition: opacity .4s;
}
.app-card:hover { transform: translateY(-6px) rotate(-.3deg); box-shadow: 0 30px 50px -24px rgba(99,77,156,.4); }
.app-card:hover::before { opacity: 1; }
.app-card .icon {
  width: 72px; height: 72px; border-radius: 20px; object-fit: cover;
  box-shadow: 0 12px 28px -12px rgba(195,177,225,.8);
  margin-bottom: 18px;
}
.app-card .icon-placeholder {
  width: 72px; height: 72px; border-radius: 20px;
  background: linear-gradient(135deg, var(--lavender), var(--peach));
  margin-bottom: 18px;
}
.app-card h3 { margin: 0 0 6px; }
.app-card .tagline { color: var(--ink-soft); font-size: .95rem; flex-grow: 1; }
.app-card .meta { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: .78rem;
  background: rgba(195,177,225,.2); color: var(--ink);
}
.pill-featured { background: linear-gradient(135deg, var(--peach), var(--lavender)); color: white; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* About */
.about {
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(243,235,255,.6));
  border-radius: var(--radius-xl);
  padding: 56px;
  border: 1px solid rgba(195,177,225,.25);
  position: relative; overflow: hidden;
}
.about::before {
  content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--mint), transparent 65%);
  top: -80px; right: -80px; filter: blur(40px); opacity: .5;
}

/* App detail */
.app-hero { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; margin-bottom: 40px; }
.app-hero .icon-lg { width: 120px; height: 120px; border-radius: 28px; object-fit: cover; box-shadow: 0 20px 40px -16px rgba(195,177,225,.8); }
.app-hero .icon-lg-placeholder { width: 120px; height: 120px; border-radius: 28px; background: linear-gradient(135deg, var(--lavender), var(--peach)); }
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.store-buttons .btn { padding: 12px 20px; }

.screenshots { display: flex; gap: 18px; overflow-x: auto; padding: 12px 4px 24px; scroll-snap-type: x mandatory; }
.screenshots img {
  flex: 0 0 auto; width: 220px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); scroll-snap-align: start;
  transition: transform .4s var(--ease-soft);
}
.screenshots img:hover { transform: translateY(-4px) scale(1.02); }

/* Prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.25em; }
.prose code { background: rgba(195,177,225,.18); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.prose blockquote { border-left: 4px solid var(--lavender); padding: 6px 16px; color: var(--ink-soft); font-style: italic; background: rgba(195,177,225,.08); border-radius: 0 var(--radius-md) var(--radius-md) 0; }

/* Legal */
.legal-meta { color: var(--ink-soft); font-size: .92rem; margin-bottom: 28px; }
.legal-meta span { margin-right: 16px; }

/* Footer */
.site-footer {
  margin-top: 80px; padding: 48px 0 28px;
  background: linear-gradient(180deg, transparent, rgba(243,235,255,.6));
  text-align: center; color: var(--ink-soft); font-size: .92rem;
}
.site-footer .socials { display: flex; justify-content: center; gap: 18px; margin-bottom: 16px; }
.site-footer .socials a { color: var(--ink-soft); }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound h1 { font-size: 6rem; background: linear-gradient(135deg, var(--lavender-2), var(--peach-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Cursor sparkle trail (desktop only) */
.cursor-dot { position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, var(--lavender), transparent 70%); pointer-events: none; mix-blend-mode: multiply; opacity: 0; z-index: 9999; transition: opacity .3s; }

@media (max-width: 720px) {
  .nav ul { display: none; }
  .about { padding: 32px 22px; }
  .app-hero { grid-template-columns: 1fr; text-align: center; }
  .app-hero .icon-lg, .app-hero .icon-lg-placeholder { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .blob { animation: none !important; }
}
