/* ============================================================
   EasyApps Ecommerce — Shared CSS v2
   Design: dark-mode, purple/pink gradient brand
   ============================================================ */

:root {
  --bg: #0f1222;
  --bg-soft: #141732;
  --card: #181c3a;
  --text: #eef2ff;
  --muted: #c7c9d9;
  --brandA: #9C27B0;
  --brandB: #E91E63;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(233,30,99,.15), transparent 60%),
    radial-gradient(1000px 700px at -10% 10%, rgba(156,39,176,.20), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin-top: 0; }

/* ---- Container ---- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(16px, 3vw, 28px); }

/* ---- Header ---- */
.header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(140%) blur(8px);
  background: linear-gradient(90deg, #141732, #1e213d);
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; }
.brand img { width: 42px; height: 42px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.nav-links { display: flex; gap: 18px; align-items: center; font-weight: 600; }
.nav-links a { color: #ddd; }
.nav-links a:hover { color: #fff; }
.menu-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04); color: #fff;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.menu-toggle span:nth-child(2) { width: 14px; }
.menu-toggle span:nth-child(3) { width: 10px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.2rem; border-radius: 12px; font-weight: 700;
  border: 1px solid transparent; transition: transform .15s ease, opacity .15s ease;
  cursor: pointer; font-size: .95rem;
}
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--brandA), var(--brandB)); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.btn.secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: var(--text); }

/* ---- Breadcrumb ---- */
.breadcrumb { padding: 14px 0; color: var(--muted); font-size: .88rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 6px; opacity: .5; }

/* ---- Badges / Tags ---- */
.badge { background: rgba(255,255,255,.10); border-radius: 999px; padding: 6px 12px; font-size: .85rem; color: #ddd; display: inline-block; }
.tag { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 4px 10px; font-size: .8rem; color: #ccc; display: inline-block; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-title { font-size: clamp(22px, 3.5vw, 32px); margin-bottom: 8px; }
.section-subtitle { color: var(--muted); font-size: 1.05rem; margin-bottom: 36px; max-width: 640px; }

/* ---- App Hero ---- */
.app-hero {
  padding: 64px 0 56px;
  background: linear-gradient(135deg, rgba(156,39,176,.14), rgba(233,30,99,.09));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.app-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.app-hero-icon { width: 80px; height: 80px; border-radius: 18px; object-fit: contain; margin-bottom: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.app-hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.app-hero h1 { font-size: clamp(26px, 4vw, 42px); margin-bottom: 16px; }
.app-hero-desc { color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; line-height: 1.65; }
.app-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.app-hero-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #0b0f1c; }
.app-hero-img img { width: 100%; height: auto; }

/* ---- Feature Grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border: 1px solid rgba(255,255,255,.06);
  transition: border-color .2s ease;
}
.feature-card:hover { border-color: rgba(156,39,176,.4); }
.feature-card-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.55; }

/* ---- Benefit List ---- */
.benefit-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.benefit-list li {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card); border-radius: 12px; padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.05);
}
.benefit-list li .check { color: #a855f7; font-weight: 700; flex-shrink: 0; margin-top: 2px; font-size: 1.1rem; }
.benefit-list li .benefit-text strong { display: block; margin-bottom: 2px; }
.benefit-list li .benefit-text span { color: var(--muted); font-size: .9rem; }

/* ---- Use Cases ---- */
.use-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.use-case-card {
  background: linear-gradient(135deg, rgba(156,39,176,.10), rgba(233,30,99,.07));
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 24px;
}
.use-case-card h3 { font-size: 1rem; margin-bottom: 8px; }
.use-case-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---- FAQ ---- */
.faq-item {
  background: var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  padding: 0; margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; list-style: none;
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; opacity: .6; font-size: 1.3rem; flex-shrink: 0; }
details[open] .faq-item summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 20px 16px; color: var(--muted); line-height: 1.65; }
.faq-item .faq-body a { color: #c084fc; text-decoration: underline; }

/* ---- Related Apps ---- */
.related-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.related-app-card {
  background: var(--card); border-radius: var(--radius); padding: 20px;
  border: 1px solid rgba(255,255,255,.06); display: flex; gap: 14px; align-items: flex-start;
  transition: border-color .2s ease;
}
.related-app-card:hover { border-color: rgba(233,30,99,.4); }
.related-app-card img { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; flex-shrink: 0; }
.related-app-card h4 { font-size: .95rem; margin: 0 0 4px; }
.related-app-card p { color: var(--muted); font-size: .83rem; margin: 0; }

/* ---- Article / Guide ---- */
.article-hero { padding: 56px 0 40px; }
.article-hero h1 { font-size: clamp(24px, 4vw, 40px); margin-bottom: 16px; max-width: 820px; }
.article-meta { color: var(--muted); font-size: .88rem; margin-bottom: 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-body { max-width: 820px; content-visibility: auto; contain-intrinsic-size: 0 1200px; }
.article-body h2 { font-size: clamp(20px, 3vw, 26px); margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.article-body h3 { font-size: clamp(17px, 2.5vw, 20px); margin: 28px 0 10px; }
.article-body p { color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.article-body ul, .article-body ol { color: var(--muted); padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 8px; line-height: 1.65; }
.article-body a { color: #c084fc; text-decoration: underline; }
.article-body strong { color: var(--text); }
.toc { background: var(--card); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 40px; border: 1px solid rgba(255,255,255,.08); max-width: 820px; }
.toc h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 12px; }
.toc ol { padding-left: 20px; margin: 0; }
.toc li { margin-bottom: 6px; font-size: .9rem; }
.toc a { color: #c084fc; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, rgba(156,39,176,.22), rgba(233,30,99,.17));
  border: 1px solid rgba(233,30,99,.22); border-radius: var(--radius);
  padding: 48px 32px; text-align: center;
}
.cta-banner h2 { font-size: clamp(20px, 3vw, 28px); margin-bottom: 10px; }
.cta-banner p { color: var(--muted); margin-bottom: 24px; }

/* ---- Stars / Testimonials ---- */
.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 8px; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.testi-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08); padding: 20px; border-radius: 18px;
}
.testi-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 0 0 10px; }
.testi-card cite { font-size: .85rem; color: #c084fc; font-style: normal; }

/* ---- Footer ---- */
.footer { padding: 40px 0 24px; color: var(--muted); background: #141732; border-top: 1px solid rgba(255,255,255,.07); content-visibility: auto; contain-intrinsic-size: 0 300px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.footer-tagline { font-size: .88rem; max-width: 260px; line-height: 1.5; }
.footer-col h4 { color: var(--text); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col li a { color: var(--muted); font-size: .88rem; }
.footer-col li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 20px; margin-top: 28px; font-size: .85rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ---- Utility ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.muted { color: var(--muted); }
.divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 48px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.highlight-box { background: var(--card); border-left: 3px solid var(--brandA); border-radius: 0 12px 12px 0; padding: 18px 20px; margin: 24px 0; }
.highlight-box p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---- Mobile ---- */
@media (max-width: 767px) {
  .header { padding: 12px 16px; }
  .nav-links {
    position: fixed; left: 12px; right: 12px; top: 64px;
    background: #151a32; border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px; padding: 12px;
    flex-direction: column; gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: .18s ease; z-index: 50;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 10px 12px; display: block; }
  .nav-links .nav-cta { width: 100%; text-align: center; }
  .menu-toggle { display: inline-flex; }
  .header .nav-links:not(.open) { display: none; }
  body.nav-open { overflow: hidden; }
  .app-hero-inner { grid-template-columns: 1fr; }
  .app-hero-img { display: none; }
  .section { padding: 40px 0; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 20px; }
}
@media (min-width: 768px) {
  .nav-cta { padding: .55rem .9rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
}

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