/* ---------------------------------------------------------
   ExrHive — Apple-inspired minimal design system
   Clean type, generous whitespace, subtle motion & polish
   --------------------------------------------------------- */

:root{
  --bg:#ffffff;
  --bg-alt:#f5f5f7; /* Apple light gray */
  --ink:#1d1d1f;
  --ink-dim:#6e6e73;
  --brand:#0071e3; /* Apple link blue */
  --border:rgba(0,0,0,.08);
  --radius:14px;

  --w-container:980px;
  --w-container-wide:1100px;

  --space-1:8px;
  --space-2:12px;
  --space-3:16px;
  --space-4:24px;
  --space-5:32px;
  --space-6:48px;
  --space-7:64px;
  --space-8:96px;
}

/* System font stack — matches Apple platforms */
html,body{
  font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin:0;
  padding:0;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

*,*::before,*::after{ box-sizing:border-box; }

/* -----------------------------
   Global type scale & rhythm
   ----------------------------- */
h1,h2,h3,h4{ margin:0 0 var(--space-3); font-weight:700; letter-spacing:-.02em; }
p{ margin:0 0 var(--space-3); line-height:1.6; color:var(--ink); }
ul{ margin:0 0 var(--space-3) var(--space-5); }
a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* Fluid responsive headings */
h1{ font-size:clamp(40px, 6vw, 64px); line-height:1.05; }
h2{ font-size:clamp(28px, 3.5vw, 40px); line-height:1.12; }
h3{ font-size:clamp(20px, 2vw, 24px); font-weight:600; }

/* High-contrast body copy */
.content-section p, .features-section p{ color:var(--ink); }
.muted{ color:var(--ink-dim); }

/* -----------------------------
   Containers
   ----------------------------- */
.container,
.footer-container,
.content-container{
  max-width:var(--w-container);
  margin:0 auto;
  padding:0 var(--space-4);
}

/* Full-bleed header/footer if they have .container */
.header.container{ max-width:none; margin:0; padding:0; }
footer.container{ max-width:none; margin:0; padding:24px 0; }

/* Wider hero container */
.hero-section .container{ max-width:var(--w-container-wide); }

main{ min-height:60vh; display:block; }

/* -----------------------------
   Top navigation (Apple style)
   ----------------------------- */
.header{
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter:saturate(180%) blur(20px);
  background:rgba(255,255,255,0.7);
  border-bottom:1px solid var(--border);
  width:100%;
}

.header-container{
  max-width:none;
  margin:0;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:auto;
  gap:16px;
  flex-wrap:wrap; /* allows stacking on small screens */
}

.header .logo{
  font-weight:700;
  font-size:16px;
  letter-spacing:-.01em;
  color:var(--ink);
  flex-shrink:0;
}

.nav{
  display:flex;
  align-items:center;
  gap:22px;
  flex:1 1 auto;
  min-width:0;
}

.nav a{
  color:var(--ink);
  font-size:13px;
  font-weight:500;
  opacity:.95;
  transition:opacity .15s ease, transform .15s ease;
  padding:6px 0;
  white-space:nowrap;
}

.nav a:hover{ opacity:1; }
.nav a.active{ opacity:1; }
.nav a:focus-visible{
  outline:none;
  box-shadow:0 2px 0 0 currentColor;
}

/* -----------------------------
   Mobile adjustments
   ----------------------------- */
@media (max-width: 768px){
  .header-container{
    flex-direction:column;
    align-items:flex-start;
    padding:8px 12px;
  }
  .nav{
    gap:12px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    width:100%;
    padding-bottom:4px;
  }
  .nav::-webkit-scrollbar{ display:none; }
  .nav a{ flex:0 0 auto; font-size:13px; }
  .header .logo{ font-size:15px; }
}

/* -----------------------------
   Hero
   ----------------------------- */
.hero-section{
  background:#000;
  color:#fff;
  padding:var(--space-8) 0 var(--space-7);
  text-align:center;
  width:100%;
}

.hero-section h1{ color:#fff; }
.hero-section p{
  color:rgba(255,255,255,.9);
  font-size:clamp(16px, 1.6vw, 18px);
  max-width:760px;
  margin:var(--space-3) auto var(--space-5);
}

.store-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}
.store-links a{
  display:inline-block;
  padding:12px 18px;
  background:#fff;
  color:#000;
  border-radius:999px;
  font-weight:600;
  border:1px solid rgba(0,0,0,.08);
  transition:transform .08s ease, box-shadow .2s ease;
}
.store-links a:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}

/* -----------------------------
   Feature section
   ----------------------------- */
.features-section{
  background:var(--bg);
  padding:var(--space-7) 0;
  width:100%;
}

.features-section h2{
  text-align:center;
  margin-bottom:var(--space-6);
}

.features-section .feature{
  max-width:820px;
  margin:0 auto var(--space-5);
  padding:var(--space-5);
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  text-align:left;
  box-shadow:0 1px 0 rgba(0,0,0,.03);
}

.features-section .feature h3{ margin-bottom:6px; }
.features-section .feature p{ margin:0; }

/* -----------------------------
   Content pages
   ----------------------------- */
.content-container{ padding-top:var(--space-7); padding-bottom:var(--space-7); }
.content-section{
  max-width:820px;
  margin:0 auto;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:var(--space-6);
}
.content-section h1{ margin-bottom:var(--space-4); }
.content-section h2{ margin-top:var(--space-5); }

/* -----------------------------
   Footer
   ----------------------------- */
footer{
  background:#000;
  color:#fff;
  text-align:center;
  padding:24px 0;
  margin-top:var(--space-7);
  width:100%;
}
footer a{ color:#a1caff; }
footer p{ color:#d2d2d7; margin-bottom:6px; }

/* -----------------------------
   Responsive tweaks
   ----------------------------- */
@media (max-width: 768px){
  .features-section .feature{ padding:var(--space-4); }
  .content-section{ padding:var(--space-5); }
}

/* Dark mode */
@media (prefers-color-scheme: dark){
  :root{
    --bg:#000;
    --bg-alt:#0b0b0c;
    --ink:#f5f5f7;
    --ink-dim:#a1a1a6;
    --border:rgba(255,255,255,.12);
  }
  .header{
    background:rgba(22,22,23,.7);
    border-bottom:1px solid var(--border);
  }
  .features-section .feature{ background:#111; }
  .store-links a{ background:#1c1c1e; color:#fff; border-color:rgba(255,255,255,.08); }
}