/* ============================================================
   AppStorrent New — Dark + Cyan  (mirrors appstorrent.click palette)
   cyan #00d9ff · bg #141414 · panel #1f1f1f · border #2c2c2c
   ============================================================ */
:root {
  --cyan:       #00d9ff;
  --cyan-dark:  #00b8e6;
  --cyan-deep:  #0098cc;
  --cyan-s:     rgba(0, 217, 255, .12);
  --cyan-glow:  rgba(0, 217, 255, .28);
  --ink:        #0d0d0d;
  --bg:         #141414;
  --bg-2:       #1a1a1a;
  --panel:      #1f1f1f;
  --panel-2:    #262626;
  --border:     #2c2c2c;
  --brd-s:      #3a3a3a;
  --text:       #e8e8e8;
  --soft:       #b8b8b8;
  --muted:      #888;
  --good:       #4cd97a;
  --good-s:     rgba(76, 217, 122, .13);
  --warn:       #ffb84d;
  --warn-s:     rgba(255, 184, 77, .13);
  --red:        #ff5c52;
  --grad:       linear-gradient(135deg, #00d9ff 0%, #00b8e6 55%, #0098cc 100%);
  --shadow:     0 8px 32px rgba(0,0,0,.6);
  --shadow-lg:  0 24px 80px rgba(0,0,0,.75);
  --glow-card:  0 0 28px -6px rgba(0, 217, 255, .22);
  --rad:        14px;
  --rad-sm:     8px;
  --rad-lg:     20px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --disp: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
section[id], h2[id] { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 88% -8%,  rgba(0,217,255,.07), transparent 60%),
    radial-gradient(700px 400px at -8% 30%,  rgba(0,152,204,.05), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; transition: color .15s; }
a:hover { color: var(--cyan-dark); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1,h2,h3,h4 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 800; color: #fff; font-family: var(--disp); }
p { margin: 0 0 1em; color: var(--soft); }
strong { color: #fff; font-weight: 700; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--cyan); color: var(--ink); padding: .75rem 1rem; z-index: 1000; font-weight: 700; }
.skip:focus { left: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─── NAV ───────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: 62px;
  background: rgba(20,20,20,.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.nav.scrolled { background: rgba(13,13,13,.97); }
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; gap: 1.25rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: #fff; font-weight: 700; font-size: 1.06rem;
  font-family: var(--disp); letter-spacing: -.01em;
  flex-shrink: 0; text-decoration: none;
}
.brand:hover { color: #fff; }
.brand img { width: 36px; height: 36px; border-radius: 0; }
.brand em { color: var(--soft); font-style: normal; font-weight: 400; }


.nav-links { display: none; gap: .1rem; margin-left: auto; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-link {
  color: var(--soft); font-size: .83rem; font-weight: 600;
  padding: .38rem .8rem; border-radius: 7px;
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }

.nav-burger {
  display: flex; margin-left: auto;
  background: transparent; border: 0; padding: 10px;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav-burger span {
  display: block; width: 22px; height: 2px; background: #fff;
  border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 860px) { .nav-burger { display: none; } }

.mobile-nav {
  display: none;
  position: fixed; inset: 64px 0 auto 0;
  background: rgba(10,12,18,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.25rem;
  flex-direction: column; gap: .25rem;
  z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  padding: .85rem 0; color: var(--soft); font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid var(--border); text-decoration: none;
}
.mobile-nav-link:hover { color: #fff; }
@media (min-width: 860px) { .mobile-nav, .mobile-nav.open { display: none; } }

/* ─── HERO ──────────────────────────────────── */
.hero { padding: 6rem 0 5rem; text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--cyan-s); border: 1px solid rgba(0,217,255,.25);
  color: var(--cyan); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .32rem .85rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); margin-bottom: .55rem; letter-spacing: -.04em; }
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 1.05rem; color: var(--soft); max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.6; }

.hero-search {
  display: flex; align-items: center;
  max-width: 600px; margin: 0 auto 3.5rem;
  background: var(--panel); border: 1px solid var(--brd-s);
  border-radius: 50px; padding: .3rem .3rem .3rem 1.4rem; gap: .7rem;
  transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-s); }
.hero-search input { flex: 1; background: none; border: none; outline: none; font: inherit; font-size: .96rem; color: var(--text); min-width: 0; }
.hero-search input::placeholder { color: var(--muted); }
.hero-search button {
  background: var(--grad); color: var(--ink);
  font-weight: 700; font-size: .86rem; padding: .65rem 1.5rem;
  border-radius: 40px; flex-shrink: 0;
  transition: opacity .15s, transform .12s;
}
.hero-search button:hover { opacity: .88; transform: scale(1.02); }

.hero-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.hstat { text-align: center; }
.hstat-n { display: block; font-size: 1.9rem; font-weight: 800; font-family: var(--disp); color: var(--cyan); letter-spacing: -.04em; line-height: 1; margin-bottom: .15rem; }
.hstat-l { font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }

/* ─── INTRO BAND ────────────────────────────── */
.intro-band {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}
.intro-band .wrap-narrow p { font-size: 1.05rem; line-height: 1.75; color: var(--soft); }
.intro-band .wrap-narrow p + p { margin-top: -.2em; }
.intro-band h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 1rem; }

/* ─── CATEGORY SECTIONS ─────────────────────── */
.cat-section { padding: 4.5rem 0 5rem; border-top: 1px solid var(--border); }
.cat-section.alt { background: var(--bg-2); }
.cat-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.cat-head h2 { font-size: clamp(1.35rem, 2.8vw, 1.8rem); margin: 0; }
.cat-emoji { font-size: 1.4rem; line-height: 1; }
.see-all {
  margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--cyan);
  padding: .36rem .85rem; border: 1px solid rgba(0,217,255,.22); border-radius: 20px;
  transition: background .15s, border-color .15s, color .15s;
}
.see-all:hover { background: var(--cyan-s); border-color: var(--cyan); color: #fff; }

/* ─── APP CARDS — 5 columns → 2 rows × 5 = 10 ── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 1000px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .app-grid { grid-template-columns: 1fr; } }

.app-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .55rem; padding: 1.35rem 1rem 1.1rem;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; cursor: pointer; position: relative;
  transition: background .18s, border-color .18s, transform .2s, box-shadow .2s;
  text-decoration: none;
}
.cat-section.alt .app-card { background: var(--bg-2); }
.app-card:hover {
  background: var(--panel-2); border-color: var(--brd-s);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 0 1px rgba(0,217,255,.08);
}
.app-icon {
  width: 68px; height: 68px; border-radius: 16px;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.app-info { width: 100%; }
.app-name {
  font-size: .88rem; font-weight: 700; color: #fff; line-height: 1.3;
  margin-bottom: .2rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.app-meta {
  display: flex; align-items: center; justify-content: center;
  gap: .15rem; font-size: .7rem; flex-wrap: wrap;
}
.app-ver { color: var(--cyan); font-weight: 600; }
.app-os { color: var(--muted); }
.app-os::before { content: "·"; padding: 0 .2rem; color: var(--brd-s); }
.app-right {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; margin-top: .35rem;
}
.app-btn {
  background: var(--cyan-s); color: var(--cyan);
  border: 1px solid rgba(0,217,255,.3); font-size: .72rem; font-weight: 800;
  letter-spacing: .04em; padding: .32rem .9rem; border-radius: 20px;
  cursor: pointer; transition: background .15s, color .15s, box-shadow .15s;
  text-decoration: none; display: inline-block; white-space: nowrap;
}
.app-btn:hover {
  background: var(--cyan); color: var(--ink); border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0,217,255,.35);
}
.app-sz { font-size: .68rem; color: var(--muted); }

.badge {
  position: absolute; top: .6rem; right: .6rem;
  font-size: .56rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: .13rem .42rem; border-radius: 5px; line-height: 1.4;
}
.badge-new { background: var(--cyan); color: var(--ink); }
.badge-upd { background: var(--warn-s); color: var(--warn); border: 1px solid rgba(255,184,77,.3); }
.badge-hot { background: rgba(255,92,82,.13); color: var(--red); border: 1px solid rgba(255,92,82,.28); }

/* ─── FEATURES SECTION ──────────────────────── */
.features-section { padding: 5rem 0; border-top: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.section-head p { color: var(--soft); max-width: 500px; margin: .5rem auto 0; }
.eyebrow {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
  background: var(--cyan-s); border: 1px solid rgba(0,217,255,.2);
  padding: .28rem .82rem; border-radius: 999px; margin-bottom: .75rem;
}
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 720px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--rad);
  padding: 1.75rem 1.5rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feat-card:hover { border-color: var(--brd-s); transform: translateY(-3px); box-shadow: var(--glow-card); }
.feat-icon { font-size: 2rem; margin-bottom: 1rem; line-height: 1; }
.feat-card h3 { font-size: 1rem; color: #fff; margin-bottom: .5rem; }
.feat-card p { font-size: .88rem; line-height: 1.65; color: var(--soft); margin: 0; }

/* ─── SPLIT SECTION ─────────────────────────── */
.split-section { padding: 5rem 0; background: var(--bg-2); border-top: 1px solid var(--border); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 720px) { .split-grid { grid-template-columns: 1fr; } }
.split-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--rad);
  padding: 2rem;
}
.split-label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .75rem; border-radius: 999px; margin-bottom: 1rem;
}
.split-label.mac { background: var(--cyan-s); color: var(--cyan); border: 1px solid rgba(0,217,255,.2); }
.split-label.win { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--border); }
.split-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: .75rem; }
.split-card p { font-size: .9rem; color: var(--soft); line-height: 1.7; margin-bottom: .75rem; }
.split-card p:last-child { margin-bottom: 0; }

/* ─── ARTICLE SECTION ───────────────────────── */
.article-section { padding: 5.5rem 0; border-top: 1px solid var(--border); }
.article { color: var(--soft); }
.article p { font-size: .96rem; line-height: 1.78; margin-bottom: 1rem; }
.article h2 { font-size: 1.2rem; color: #fff; margin: 2.25rem 0 .75rem; letter-spacing: -.01em; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.02rem; color: #fff; margin: 1.5rem 0 .55rem; font-weight: 700; letter-spacing: -.01em; }
.article ul { margin: 0 0 1.1rem; padding-left: 1.2rem; color: var(--soft); }
.article ul li { font-size: .96rem; line-height: 1.7; margin-bottom: .35rem; }
.article ul li::marker { color: var(--cyan); }
.article strong { color: var(--text); font-weight: 600; }
.article em { font-style: italic; color: var(--text); }
.article a { color: var(--cyan); }
.article a:hover { color: var(--cyan-dark); }

/* ─── OS GRID ────────────────────────────────── */
.os-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem; }
@media (max-width: 900px) { .os-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px)  { .os-grid { grid-template-columns: repeat(2, 1fr); } }

.os-card {
  display: flex; flex-direction: column; align-items: center; gap: .65rem;
  padding: 1.4rem 1rem 1.1rem;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--rad);
  text-align: center;
  transition: background .18s, border-color .18s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.os-card:hover { background: var(--panel-2); border-color: var(--brd-s); transform: translateY(-3px); box-shadow: var(--shadow); }
.os-img { width: 58px; height: 58px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.os-name { font-size: .85rem; font-weight: 700; color: #fff; line-height: 1.2; }
.os-year { font-size: .68rem; color: var(--muted); margin-top: .08rem; }
.os-tag { font-size: .6rem; font-weight: 700; padding: .16rem .5rem; border-radius: 999px; }
.os-latest { background: var(--good-s); color: var(--good); }
.os-stable  { background: var(--cyan-s); color: var(--cyan); }
.os-legacy  { background: rgba(255,255,255,.05); color: var(--muted); }

/* ─── STATS BAND ────────────────────────────── */
.stats-band {
  padding: 5rem 0; background: var(--bg-2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stats-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 4rem; }
.stat { text-align: center; }
.stat-n {
  font-size: 2.8rem; font-weight: 800; font-family: var(--disp);
  letter-spacing: -.04em; line-height: 1; margin-bottom: .3rem; color: var(--cyan);
}
.stat-l { font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }

/* ─── FAQ ───────────────────────────────────── */
.faq-section { padding: 5.5rem 0; border-top: 1px solid var(--border); }
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: .45rem; }
.faq-item { background: var(--panel); border: 1px solid var(--border); border-radius: var(--rad); overflow: hidden; transition: border-color .18s; }
.faq-item[open] { border-color: var(--brd-s); }
.faq-item summary {
  list-style: none; padding: 1rem 1.35rem;
  font-weight: 700; color: #fff; font-size: .92rem; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background .15s; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--panel-2); }
.faq-item summary::after { content: "+"; font-size: 1.15rem; color: var(--cyan); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-body { padding: 0 1.35rem 1.1rem; color: var(--soft); font-size: .88rem; line-height: 1.7; border-top: 1px solid var(--border); }

/* ─── FOOTER ────────────────────────────────── */
footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.foot-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.foot-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; font-family: var(--disp); }
.foot-brand:hover { color: #fff; }
.foot-brand img { width: 32px; height: 32px; border-radius: 0; }
.foot-brand em { color: var(--soft); font-style: normal; font-weight: 400; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem; }
.foot-links a { color: var(--soft); font-size: .8rem; padding: .3rem .72rem; border-radius: 20px; transition: color .15s, background .15s; }
.foot-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.foot-copy { font-size: .73rem; color: var(--muted); margin: 0; }

/* Cookie */
.cookie {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--brd-s); border-radius: var(--rad);
  padding: .8rem 1.2rem; display: flex; align-items: center; gap: 1rem;
  font-size: .8rem; color: var(--soft); z-index: 999;
  max-width: calc(100vw - 2rem); box-shadow: var(--shadow-lg); backdrop-filter: blur(14px);
}
.cookie p { margin: 0; }
.cookie button { background: var(--cyan); color: var(--ink); font-weight: 700; font-size: .76rem; padding: .38rem .85rem; border-radius: 6px; flex-shrink: 0; }
.cookie.hidden { display: none; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 720px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero-stats { gap: 1.5rem; }
  .stats-inner { gap: 2rem; }
}
@media (max-width: 480px) {
  .cat-section { padding: 3rem 0 3.5rem; }
  .hero h1 { font-size: 2.1rem; }
}
