/* Miravill Landing Page Theme & Layout Styles */
:root {
  --bg: #0b0d11;
  --bg-header: rgba(11, 13, 17, 0.88);
  --surface: #131720;
  --surface-hover: #1a202c;
  --card-bg: #151923;
  --border: #222836;
  --border-accent: rgba(212, 175, 55, 0.35);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --gold: #D4AF37;
  --gold-hover: #e5c158;
  --gold-subtle: rgba(212, 175, 55, 0.12);
  --green: #10b981;
  --blue: #38bdf8;
  --purple: #a855f7;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg: #FAF9F6;
  --bg-header: rgba(250, 249, 246, 0.92);
  --surface: #ffffff;
  --surface-hover: #f1f0eb;
  --card-bg: #ffffff;
  --border: #E5E3DC;
  --border-accent: rgba(212, 175, 55, 0.45);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --gold: #c29d27;
  --gold-hover: #a8841a;
  --gold-subtle: rgba(212, 175, 55, 0.14);
  --green: #059669;
  --blue: #0284c7;
  --purple: #9333ea;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; font-size: 16px; background-color: var(--bg); color: var(--text); }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6; min-height: 100vh; overflow-x: hidden; display: flex; flex-direction: column;
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
input, textarea { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }
h1, h2, h3, h4, .brand-text { font-family: 'Outfit', sans-serif; font-weight: 700; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Sticky Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-header); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); transition: var(--transition);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0.85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold) 0%, #9a781b 100%);
  color: #000; font-weight: 800; font-size: 1.25rem; font-family: 'Outfit';
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand:hover .brand-icon { transform: scale(1.08) rotate(6deg); }
.brand-title { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.05em; color: var(--text); }
.brand-title span { color: var(--gold); }
.header-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-link {
  font-weight: 600; font-size: 0.95rem; color: var(--text-muted);
  transition: var(--transition); position: relative; padding: 0.25rem 0;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-theme {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 1.25rem; transition: var(--transition);
}
.btn-theme:hover { border-color: var(--gold); transform: rotate(15deg); }
.btn-store {
  padding: 0.55rem 1.25rem; border-radius: var(--radius-full);
  background: var(--gold); color: #111; font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--transition);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}
.btn-store:hover { background: var(--gold-hover); transform: translateY(-1px); }

/* Hero Section */
.hero {
  padding: 4.5rem 1.5rem 3rem; text-align: center;
  background: 
    radial-gradient(circle at 18% 18%, rgba(168, 85, 247, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 50% 12%, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
}
.hero-container { max-width: 900px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem; border-radius: var(--radius-full);
  background: var(--gold-subtle); border: 1px solid var(--border-accent);
  color: var(--gold); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; margin-bottom: 1.25rem; }
.hero-title .gradient-games {
  background: linear-gradient(135deg, #c084fc 20%, #f472b6 90%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-title .gradient-learning {
  background: linear-gradient(135deg, #10b981 20%, #38bdf8 90%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-title .gradient-tools {
  background: linear-gradient(135deg, var(--gold) 20%, #f59e0b 90%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted);
  margin-bottom: 2rem; max-width: 720px; margin-left: auto; margin-right: auto;
}

/* Search & Filters */
.filter-wrapper { max-width: 1240px; margin: 2.5rem auto 2.5rem; padding: 0 1.5rem; }
.search-box { max-width: 580px; margin: 1.5rem auto 1.5rem; position: relative; }
.search-input {
  width: 100%; padding: 0.95rem 1.25rem 0.95rem 3rem; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 1rem; font-family: inherit; transition: var(--transition);
  box-shadow: var(--shadow-sm); outline: none;
}
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-subtle); }
.search-icon {
  position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%);
  font-size: 1.15rem; color: var(--text-dim); pointer-events: none;
}
.filter-pills { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.6rem; }
.filter-pill {
  padding: 0.5rem 1.15rem; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.9rem; font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.filter-pill:hover { color: var(--text); border-color: var(--border-accent); transform: translateY(-2px); }
.filter-pill.active {
  background: var(--gold); color: #111; border-color: var(--gold); font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

/* Grid & Cards */
.apps-section { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem 5rem; flex: 1; width: 100%; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.section-title { font-size: 1.75rem; color: var(--text); }
.apps-count { color: var(--gold); font-size: 1rem; font-weight: 700; }
.apps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.75rem;
}

.app-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem; display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.app-card:hover {
  transform: translateY(-6px); border-color: var(--border-accent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 0 24px rgba(212, 175, 55, 0.1);
}
[data-theme="dark"] .app-card:hover {
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.65), 0 0 26px rgba(212, 175, 55, 0.12);
}
.app-card:hover .app-icon-wrap { transform: scale(1.08) rotate(3deg); }
.app-card.featured {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, var(--gold-subtle) 0%, var(--card-bg) 35%);
}
.card-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem;
}
.app-icon-wrap {
  width: 58px; height: 58px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); flex-shrink: 0; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.app-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.badge {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  padding: 0.25rem 0.65rem; border-radius: var(--radius-full); letter-spacing: 0.04em;
}
.badge-primary { background: var(--gold-subtle); color: var(--gold); border: 1px solid var(--border-accent); }
.badge-live { background: rgba(16, 185, 129, 0.12); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-store { background: rgba(56, 189, 248, 0.12); color: var(--blue); border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-cat-3d-games { background: rgba(168, 85, 247, 0.12); color: var(--purple); border: 1px solid rgba(168, 85, 247, 0.35); }
.badge-cat-learning { background: rgba(16, 185, 129, 0.12); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-cat-utilities { background: rgba(56, 189, 248, 0.12); color: var(--blue); border: 1px solid rgba(56, 189, 248, 0.35); }
.badge-cat-store { background: var(--gold-subtle); color: var(--gold); border: 1px solid var(--border-accent); }

.app-title { font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--text); }
.app-desc {
  font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.25rem; flex-grow: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.app-features { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.app-features li {
  font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm); background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--border);
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.btn-launch {
  flex: 1; padding: 0.75rem 1.25rem; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: var(--transition); text-align: center;
}
.btn-launch:hover {
  background: var(--gold); color: #111; border-color: var(--gold);
  transform: translateY(-2px) scale(1.02); box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}
.btn-launch-primary { background: var(--gold); color: #111; border-color: var(--gold); }
.btn-launch-primary:hover { background: var(--gold-hover); }
.btn-playstore {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 1.15rem; transition: var(--transition); flex-shrink: 0;
}
.btn-playstore:hover { color: var(--green); border-color: var(--green); transform: translateY(-2px) scale(1.12); }

/* Highlights Section */
.highlights {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem;
}
.highlights-inner {
  max-width: 1240px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem;
}
.highlight-card {
  display: flex; align-items: flex-start; gap: 1rem; padding: 0.75rem; border-radius: var(--radius-md);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
.highlight-card:hover { transform: translateY(-4px); background: var(--card-bg); }
.highlight-card:hover .highlight-icon { transform: scale(1.12) rotate(5deg); }
.highlight-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--gold-subtle); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.highlight-icon.icon-amber { background: rgba(245, 158, 11, 0.14); color: #f59e0b; }
.highlight-icon.icon-blue { background: rgba(56, 189, 248, 0.14); color: var(--blue); }
.highlight-icon.icon-emerald { background: rgba(16, 185, 129, 0.14); color: var(--green); }
.highlight-icon.icon-purple { background: rgba(168, 85, 247, 0.14); color: var(--purple); }
.highlight-title { font-size: 1.15rem; margin-bottom: 0.35rem; color: var(--text); }
.highlight-desc { font-size: 0.9rem; color: var(--text-muted); }

/* Contact Section */
.contact-section {
  padding: 4.5rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--border);
}
.contact-inner { max-width: 1240px; margin: 0 auto; text-align: center; }
.contact-header { max-width: 680px; margin: 0 auto 2.5rem; }
.contact-badge {
  display: inline-block; padding: 0.3rem 0.9rem; border-radius: var(--radius-full);
  background: var(--gold-subtle); border: 1px solid var(--border-accent);
  color: var(--gold); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem;
}
.contact-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--text); margin-bottom: 0.75rem; }
.contact-desc { font-size: 1rem; color: var(--text-muted); }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; text-align: left; margin-bottom: 2.5rem;
}
.contact-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; display: flex;
  align-items: flex-start; gap: 1rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.contact-card:hover {
  border-color: var(--border-accent); transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12), 0 0 20px rgba(212, 175, 55, 0.08);
}
.contact-card:hover .contact-icon { transform: scale(1.12) rotate(4deg); }
.contact-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-icon.icon-blue { background: rgba(56, 189, 248, 0.14); color: var(--blue); }
.contact-icon.icon-amber { background: rgba(245, 158, 11, 0.14); color: #f59e0b; }
.contact-info h4 { font-size: 1.05rem; color: var(--text); margin-bottom: 0.25rem; }
.contact-info p { font-size: 0.95rem; color: var(--text); font-weight: 600; margin-bottom: 0.25rem; }
.contact-link { color: var(--gold); transition: var(--transition); }
.contact-link:hover { text-decoration: underline; }
.contact-meta { font-size: 0.8rem; color: var(--text-dim); }
.contact-cta { margin-top: 1rem; }
.btn-contact {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-weight: 700; font-size: 0.95rem;
  transition: var(--transition);
}
.btn-contact:hover {
  background: var(--gold); color: #111; border-color: var(--gold);
  transform: translateY(-2px); box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}
.footer-contact {
  margin-top: 1rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem;
}
.footer-contact a { color: var(--gold); }

/* Footer */
.site-footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2rem; color: var(--text-muted);
}
.footer-inner {
  max-width: 1240px; margin: 0 auto; display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem;
}
.footer-brand-desc { font-size: 0.9rem; margin-top: 0.75rem; max-width: 320px; line-height: 1.6; }
.footer-col h4 {
  font-size: 1rem; color: var(--text); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1240px; margin: 0 auto; padding-top: 1.5rem;
  border-top: 1px solid var(--border); display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem;
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hero { padding: 3rem 1rem 2rem; }
  .apps-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .btn-store span { display: none; }
  .btn-store { padding: 0.55rem 0.85rem; }
}
