/* ============ SmartStacks Hub Styles (FlipStack parity, standalone) ============ */

/* ---------------------- Brand tokens ---------------------- */
:root {
  --hub-primary:   #e8bddb;   /* hero gradient start */
  --hub-accent:    #0a97ff;   /* hero gradient end   */
  --hub-white:     #ffffff;

  --text:       #f6f7fb;
  --text-dim:   #cfd5e8;
  --panel-border: rgba(255,255,255,.16);

  /* Icon size (desktop default) */
  --icon-size: 320px;
}

/* ----------------------- Base / reset ---------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light dark; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(239,16,90,.25), transparent),
    linear-gradient(180deg, #0f1222 0%, #0b0e1a 100%);
  line-height: 1.5;
}

/* --------------------- Layout helpers ---------------------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.center    { text-align: center; }
.visually-hidden { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ======================== HERO ============================= */
.hero { position: relative; isolation: isolate; }

.hero-brand {
  background: linear-gradient(135deg, var(--hub-primary), var(--hub-accent));
  padding: 3.5rem 1rem 2.75rem;
}

.hero-inner {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  max-width: 1100px; margin: 0 auto; padding: 2rem 1rem;
}

.hero-icon img {
  width: var(--icon-size);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
  display: block;
}

.hero-text { max-width: 540px; }

/* Base hero text styles (apply to all p under .hero-text) */
.hero-text h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero-text p {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  opacity: .95;
  font-weight: 500;
}

@media (max-width: 480px) {
  .hero-text p { font-size: 1.6rem; }
}

/* Subline overrides (placed AFTER .hero-text p so it wins) */
.hero-text .hero-subline {
  margin: .1rem 0 1.2rem;
  font-size: .95rem;
  opacity: .92;
  font-weight: 400;
}

/* ======================= CTA link ========================= */
.cta-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.cta-link { color: #000; background: #fff; padding: .6rem .9rem; border-radius: 10px; font-weight: 600; text-decoration: none; }
.cta-link:hover { opacity: .9; }

/* ======================= APPS ========================= */
section { padding: 1.5rem 0; }
#apps-title { font-size: 1.6rem; margin: 0 0 .8rem; }

/* 2x2 grid */
.apps-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 720px) {
  .apps-grid { grid-template-columns: 1fr; }
}

/* Card layout: icon left, text right */
.app-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.app-card:hover { transform: translateY(-2px); }

.app-icon { width: 72px; height: 72px; border-radius: 16px; flex-shrink: 0; }
.app-info { display: flex; flex-direction: column; gap: .25rem; }
.app-name { font-weight: 700; font-size: 1.1rem; }
.app-tag  { font-size: .95rem; color: var(--text-dim); }
.app-status { font-size: .85rem; font-weight: 500; color: var(--hub-accent); }

/* ====================== SCREENSHOTS (optional) ======================== */
.screenshots {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  justify-items: center;
}
@media (max-width: 900px) { .screenshots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.screenshots img { width: 100%; max-width: 220px; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); }
.screenshots figure { margin: 0; text-align: center; }
.screenshots figcaption { margin-top: .4rem; font-size: 0.8rem; line-height: 1.2; color: var(--text-dim); }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Floating Back to top button */
#backToTop {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  background: #fff; color: #000; padding: .6rem .9rem; border-radius: 10px; font-size: .85rem; font-weight: 600;
  text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.35);
  display: none; opacity: 0; transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
}
#backToTop:hover { opacity: .9; }
body.scrolled #backToTop { display: inline-block; opacity: 1; transform: translateY(0); }
@media (max-width: 720px) { #backToTop { bottom: 1rem; right: 1rem; } }

/* ---------- FOOTER (parity with FlipStack) ---------- */
.site-footer { margin-top: 3rem; padding: 2.5rem 1.5rem; background: rgba(255,255,255,0.05); border-top: 1px solid rgba(255,255,255,0.12); border-radius: 16px 16px 0 0; color: var(--text-dim); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; max-width: 1100px; margin: 0 auto; }
.footer-brand h3 { margin: 0 0 .25rem; font-size: 1.25rem; color: var(--hub-white); }
.footer-brand .tagline { margin: 0 0 .75rem; font-size: 0.9rem; color: var(--text-dim); }
.footer-brand .byline { font-size: 0.85rem; color: var(--text-dim); }
.footer-brand .byline a { color: #fff; text-decoration: none; font-weight: 500; }
.footer-brand .byline a:hover { text-decoration: underline; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-nav a { color: var(--text); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }

/* Responsive footer */
@media (max-width: 720px) {
  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-nav ul { grid-template-columns: repeat(2, auto); gap: 0.6rem 1.2rem; }
}

/* === Mobile header stack (mirrors FlipStack behavior) === */
@media (max-width: 820px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text  { max-width: 640px; }
  .cta-row    { justify-content: center; }
  :root { --icon-size: 200px; } /* smaller icon on mobile */
}
