/* Zone 7 Studios — the studio homepage above the app family.
   Dependency-free, self-hosted, same idiom as the three app sites:
   system fonts, thin wide-tracked type, soft cards, no frameworks. */

:root {
  --bg-0: #06070c;
  --bg-1: #0b0d16;
  --ink: #eef1f7;
  --muted: rgba(238, 241, 247, 0.58);
  --faint: rgba(238, 241, 247, 0.45);
  --line: rgba(255, 255, 255, 0.10);
  --card: rgba(255, 255, 255, 0.04);
  /* One accent per app — the studio's palette is its apps. */
  --ethereal-a: #7b9eff;
  --ethereal-b: #c77dff;
  --brume-a: #8fa7bd;
  --brume-b: #4a7aab;
  --sylph-a: #6f9fd0;
  --sylph-b: #9b8fd6;
  /* Studio accent: starlight blue -> lavender, sits between the three. */
  --grad: linear-gradient(135deg, #9fb8e8, #b49fe0);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

/* Never allow sideways scroll on small screens (clip keeps the sticky nav working). */
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: radial-gradient(120% 80% at 50% -10%, #10131f 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---- Nav ---- */
nav.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 7, 12, 0.55);
  border-bottom: 1px solid var(--line);
}
nav.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 300; letter-spacing: 4px; font-size: 1.02rem; }
.brand b { font-weight: 600; }
.brand-sub { font-weight: 400; letter-spacing: 3px; font-size: 0.62em; color: var(--faint); margin-left: 9px; }
.navlinks { display: flex; gap: 26px; font-size: 0.9rem; }
.navlinks a { color: var(--muted); transition: color 0.15s; }
.navlinks a:hover { color: var(--ink); }
@media (max-width: 640px) {
  /* Two centred rows instead of sideways scroll (family navfix pattern). */
  nav.site .wrap { height: auto; min-height: 56px; flex-wrap: wrap; justify-content: center; column-gap: 18px; padding-top: 6px; padding-bottom: 2px; }
  .navlinks { flex-wrap: wrap; justify-content: center; gap: 0 12px; font-size: 0.8rem; }
  html { scroll-padding-top: 116px; }
}

/* ---- Nav logo mark (the 7 with one satellite per app) ---- */
.logo-7 { width: 34px; height: 34px; flex: none; }
.logo-7 .sats { transform-box: view-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .logo-7 .sats { transition: transform 2.4s cubic-bezier(0.22, 1, 0.36, 1); }
  .brand:hover .logo-7 .sats { transform: rotate(1turn); }
}

/* ---- Early-access banner (family idiom) ---- */
.earlybar {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 24px; text-align: center; font-size: 0.9rem; color: var(--ink);
  background: linear-gradient(135deg, rgba(123, 158, 255, 0.14), rgba(155, 143, 214, 0.14));
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.earlybar:hover { background: linear-gradient(135deg, rgba(123, 158, 255, 0.24), rgba(155, 143, 214, 0.24)); }
.earlybar-tag { font-weight: 700; letter-spacing: 1px; font-size: 0.7rem; text-transform: uppercase; color: var(--sylph-b); }
.earlybar-cta { font-weight: 700; color: var(--ink); }
.earlybar:hover .earlybar-cta { text-decoration: underline; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 0.95rem 1.5rem; border-radius: 14px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--grad); color: #06070c; box-shadow: 0 10px 40px rgba(140, 150, 230, 0.30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 50px rgba(140, 150, 230, 0.45); }
.btn-ghost { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 104px; text-align: center; }
.hero h1 {
  font-weight: 200; font-size: clamp(2.8rem, 10vw, 5.4rem);
  letter-spacing: clamp(6px, 3vw, 16px); line-height: 1.1;
}
/* Brand device: the 7 carries the weight (family: ETHE|REAL split). */
.hero h1 b { font-weight: 500; }
.studios {
  color: var(--muted); font-weight: 300; font-size: clamp(0.85rem, 2.6vw, 1.05rem);
  letter-spacing: clamp(8px, 3.4vw, 18px); text-indent: clamp(8px, 3.4vw, 18px);
  margin: 0.2rem 0 1.6rem;
}
.hero .tag { color: var(--muted); font-size: clamp(1rem, 3.5vw, 1.25rem); font-weight: 300; max-width: 640px; margin: 0 auto 1.6rem; }
.hero .btn-row { justify-content: center; }
.kicker { color: var(--faint); letter-spacing: 5px; font-size: 0.75rem; text-transform: uppercase; margin-bottom: 1.2rem; }
.trustline { color: var(--faint); font-size: 0.9rem; letter-spacing: 0.6px; margin-bottom: 2rem; }

/* Three soft glows drifting behind the hero — one per app. */
.glow { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.glow-e { width: 560px; height: 560px; top: -180px; left: 4%;
  background: radial-gradient(circle, rgba(123, 158, 255, 0.16), transparent 70%); }
.glow-b { width: 520px; height: 520px; top: -60px; right: -6%;
  background: radial-gradient(circle, rgba(143, 167, 189, 0.14), transparent 70%); }
.glow-s { width: 480px; height: 480px; bottom: -220px; left: 34%;
  background: radial-gradient(circle, rgba(155, 143, 214, 0.14), transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  .glow-e { animation: drift 26s ease-in-out infinite alternate; }
  .glow-b { animation: drift 32s ease-in-out infinite alternate-reverse; }
  .glow-s { animation: drift 38s ease-in-out infinite alternate; }
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(40px, 26px); }
}

/* ---- Sections ---- */
section { padding: 78px 0; }
section h2 { font-weight: 300; font-size: clamp(1.6rem, 5vw, 2.4rem); letter-spacing: 1px; margin-bottom: 0.6rem; text-align: center; }
section .sub { color: var(--muted); text-align: center; max-width: 600px; margin: 0 auto 3rem; font-weight: 300; }

/* ---- App cards ---- */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; }
.app-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 28px 26px; overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.app-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--app-grad);
}
.app-card:hover { transform: translateY(-4px); border-color: var(--app-line); box-shadow: 0 18px 60px var(--app-glow); }
.card-ethereal { --app-grad: linear-gradient(90deg, #7b9eff, #c77dff); --app-line: rgba(123, 158, 255, 0.45); --app-glow: rgba(123, 158, 255, 0.14); }
.card-brume { --app-grad: linear-gradient(90deg, #8fa7bd, #4a7aab); --app-line: rgba(143, 167, 189, 0.45); --app-glow: rgba(143, 167, 189, 0.12); }
.card-sylph { --app-grad: linear-gradient(90deg, #6f9fd0, #9b8fd6); --app-line: rgba(155, 143, 214, 0.45); --app-glow: rgba(155, 143, 214, 0.14); }
.card-lore { --app-grad: linear-gradient(90deg, #5eead4, #a78bfa); --app-line: rgba(94, 234, 212, 0.45); --app-glow: rgba(94, 234, 212, 0.14); }
.card-pier { --app-grad: linear-gradient(90deg, #67e8f9, #38bdf8); --app-line: rgba(103, 232, 249, 0.45); --app-glow: rgba(103, 232, 249, 0.14); }
.app-card .mark { width: 46px; height: 46px; margin-bottom: 16px; }
.app-card .name { font-weight: 300; letter-spacing: 4px; font-size: 1.3rem; color: var(--ink); }
.app-card .name b { font-weight: 600; }
.app-card .kind { color: var(--faint); font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; margin: 4px 0 14px; }
.app-card p { color: var(--muted); font-size: 0.92rem; font-weight: 300; margin-bottom: 18px; }
.app-card .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.app-card .ea {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 7px;
  background: rgba(255, 255, 255, 0.10); color: var(--ink);
}
.app-card .go { font-size: 0.85rem; font-weight: 600; color: var(--muted); transition: color 0.15s; }
.app-card:hover .go { color: var(--ink); }

/* ---- Principles ---- */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.principle {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 24px 22px;
}
.principle h3 { font-weight: 500; font-size: 1.05rem; letter-spacing: 0.5px; margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 0.92rem; font-weight: 300; }

/* ---- About the studio ---- */
#studio .about { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 2.2rem; font-weight: 300; font-size: 1.02rem; }
#studio .btn-row { justify-content: center; }

/* ---- Article (privacy) ---- */
.article { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.article h1 { font-weight: 300; font-size: 2.2rem; margin-bottom: 0.3rem; letter-spacing: 1px; }
.article .updated { color: var(--faint); font-size: 0.85rem; margin-bottom: 2.4rem; }
.article h2 { text-align: left; font-size: 1.25rem; font-weight: 500; margin: 2rem 0 0.6rem; }
.article p, .article li { color: var(--muted); margin-bottom: 0.9rem; }
.article ul { padding-left: 1.3rem; }
.article a { color: var(--ethereal-a); }
.article a:hover { text-decoration: underline; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--faint); font-size: 0.85rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
.footlinks { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- Hidden-until-hover visitor counter (page views, no cookies/IDs) ---- */
.viewcount {
  position: fixed; right: 12px; bottom: 10px; z-index: 60;
  font-size: 11px; letter-spacing: 0.02em; color: var(--faint);
  padding: 4px 8px; border-radius: 8px;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: auto; user-select: none; cursor: default;
}
.viewcount:hover, .viewcount:focus, .viewcount:active { opacity: 0.85; }
.viewcount:empty { display: none; }

/* ---- Accessibility (family bar: WCAG 2.2 AA) ---- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.earlybar:focus-visible {
  outline: 2px solid var(--ethereal-a);
  outline-offset: 3px;
}
.navlinks a,
.footlinks a { display: inline-block; padding: 8px 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Slate / utility-shelf card (v103) */
.card-slate { --app-grad: linear-gradient(90deg, #aeb8c2, #7f95a8); --app-line: rgba(174, 184, 194, 0.45); --app-glow: rgba(174, 184, 194, 0.12); }
.card-baton { --app-grad: linear-gradient(90deg, #e8c25b, #d4a94f); --app-line: rgba(212, 169, 79, 0.45); --app-glow: rgba(212, 169, 79, 0.14); }
.card-bevel { --app-grad: linear-gradient(90deg, #6fb2e6, #3f7fae); --app-line: rgba(111, 178, 230, 0.45); --app-glow: rgba(111, 178, 230, 0.14); }
.app-card.static { cursor: default; }
.app-card.static:hover { transform: none; box-shadow: none; }
.app-card .price { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
