/* Shared structure for Terabyte Development app pages.
   Every colour, radius and typeface comes from custom properties that each
   page overrides so it reads like the app it is promoting. */

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

:root {
  --bg: #ffffff;
  --bg2: #f5f5f7;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.08);
  --text: #101014;
  --muted: #6b6b76;
  --accent: #007AFF;
  --accent2: #007AFF;
  --on-accent: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --display: var(--font);
  --display-weight: 800;
  --display-spacing: -0.03em;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px -12px rgba(0,0,0,0.14);
  --hero-glow: transparent;
  --nav-bg: rgba(255,255,255,0.82);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 58px;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.nav-brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-back {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.nav-back:hover { color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 4.5rem 0 3.5rem; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -20% auto -20%; height: 90%;
  background: var(--hero-glow); pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid; grid-template-columns: 1fr minmax(0, 300px);
  gap: 3.5rem; align-items: center;
}

.app-icon {
  width: 88px; height: 88px; border-radius: 21px;
  box-shadow: var(--shadow); margin-bottom: 1.6rem;
}

.eyebrow {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-spacing);
  line-height: 1.04;
  margin-bottom: 1.1rem;
}
h1 .accent { color: var(--accent); }

.tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 600; color: var(--text); opacity: 0.9;
  margin-bottom: 1.4rem; max-width: 26ch;
}

.synopsis { font-size: 1rem; color: var(--muted); max-width: 54ch; margin-bottom: 1.1rem; }
.synopsis + .synopsis { margin-bottom: 2rem; }

.hero-shot {
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 40px 80px -30px rgba(0,0,0,0.45);
  border: 1px solid var(--border);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font); font-size: 0.92rem; font-weight: 700;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 8px 24px -10px var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  padding: 0.65rem 1.15rem; border-radius: 999px;
  border: 1px dashed var(--border); background: var(--bg2);
}
.status-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.25; } }

/* ── Sections ────────────────────────────────────────────────────── */
section.band { padding: 4.5rem 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 2.75rem; max-width: 60ch; }
.section-head .kicker {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem;
}
h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-spacing);
  line-height: 1.15; margin-bottom: 0.7rem;
}
.section-head p { color: var(--muted); font-size: 0.98rem; }

/* ── Feature cards ───────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.feature .ficon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.feature p { font-size: 0.87rem; color: var(--muted); }

/* ── Screenshot gallery ──────────────────────────────────────────── */
.shots {
  display: flex; gap: 1.75rem; overflow-x: auto; padding: 0.5rem 0 2rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.shot { flex: 0 0 240px; scroll-snap-align: start; }
.shot img {
  width: 100%; border-radius: 26px; border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 24px 48px -24px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
  transition: transform .2s ease;
}
.shot img:hover { transform: translateY(-4px); }
.shot h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.shot p { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.scroll-hint { font-size: 0.75rem; color: var(--muted); }

/* ── Closing CTA ─────────────────────────────────────────────────── */
.closing { text-align: center; padding: 5rem 0; }
.closing h2 { margin-bottom: 0.9rem; }
.closing p { color: var(--muted); max-width: 48ch; margin: 0 auto 2rem; }
.closing .cta-row { justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  margin-top: auto; border-top: 1px solid var(--border);
  padding: 2rem 0; background: var(--bg2);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-links a { font-size: 0.78rem; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.foot-copy { font-size: 0.74rem; color: var(--muted); }
.disclaimer { font-size: 0.72rem; color: var(--muted); opacity: 0.8; max-width: 70ch; margin-top: 1.25rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-grid .hero-visual { max-width: 260px; margin: 0 auto; }
  .hero { padding: 3rem 0 2.5rem; }
  section.band { padding: 3.25rem 0; }
  .app-icon { width: 72px; height: 72px; }
}
