/* APPNEST TV — appnest.tv
   Solid colours only; no gradient fills anywhere. Dark by default because the
   app is dark and the page should feel like the same product. */

:root {
  --bg: #0c0f16;
  --surface: #141925;
  --surface-2: #1b2130;
  --border: #252c3d;
  --text: #e8ecf4;
  --muted: #98a2b8;
  --accent: #a855f7;
  --accent-soft: #2a1b3d;
  --teal: #1abc9c;
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* A 16px gutter on phones is the difference between "designed" and "cramped". */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 15, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { color: var(--accent); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.header-nav a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-2px); opacity: 0.94; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-sm { padding: 10px 18px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 64px;
  text-align: center;
}

.hero-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  margin-bottom: 26px;
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(32px, 6.5vw, 54px);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero h1 em { color: var(--accent); font-style: normal; }

.hero p.lead {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 8px 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta span { white-space: nowrap; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: clamp(25px, 4.2vw, 34px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p { color: var(--muted); margin: 0; }

/* ---------- features ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.section-alt .card { background: var(--bg); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.section-alt .step { background: var(--bg); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- closing call to action ---------- */
.cta {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 46px 28px;
  text-align: center;
}

.cta h2 { margin: 0 0 12px; font-size: clamp(24px, 4vw, 32px); }
.cta p { color: var(--muted); margin: 0 0 26px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 30px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- long-form pages (privacy) ---------- */
.doc {
  max-width: 780px;
  margin: 0 auto;
}

.doc-hero {
  text-align: center;
  padding: 58px 0 34px;
}

.doc-hero h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 12px; }
.doc-hero p { color: var(--muted); margin: 0 auto; max-width: 560px; }

.doc-stamp {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.doc-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  margin-bottom: 18px;
}

.doc-block h2 {
  font-size: 19px;
  margin: 0 0 12px;
  color: var(--accent);
}

.doc-block p { margin: 0 0 12px; }
.doc-block p:last-child { margin-bottom: 0; }
.doc-block ul { margin: 0 0 12px; padding-left: 20px; }
.doc-block li { margin-bottom: 8px; color: var(--muted); }
.doc-block li strong { color: var(--text); }

.callout {
  background: var(--accent-soft);
  border: 1px solid #3b2a52;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 18px;
}

.callout p { margin: 0; }

/* ---------- phones ---------- */
@media (max-width: 720px) {
  .hero { padding: 52px 0 48px; }
  .section { padding: 48px 0; }
  .header-nav { gap: 16px; }
  .header-nav .nav-hide-sm { display: none; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-inner { flex-direction: column; text-align: center; }
  .doc-block { padding: 22px 18px 18px; }
}

/* Someone whose system asks for less motion should not be made to watch any. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
