/* dsh-share landing page — palette mirrors the app (renderer/styles.css) */
:root {
  --bg: #0f1115;
  --card: #171a21;
  --border: #262b36;
  --text: #e6e9ef;
  --muted: #8b93a3;
  --accent: #4f8cff;
  --green: #3fb950;
  --red: #f85149;
  --amber: #d29922;
  --radius: 12px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Subtle ambient glow behind the hero */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 400px at 50% -10%, rgba(79, 140, 255, 0.14), transparent 70%),
    radial-gradient(500px 300px at 90% 20%, rgba(63, 185, 80, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-inner .logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.nav-inner .brand { font-weight: 700; font-size: 16px; color: var(--text); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .btn-ghost { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 72px 0 56px;
}
.hero .app-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(79, 140, 255, 0.25);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero h1 .accent { color: var(--accent); }
.hero .tagline {
  margin: 18px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 19px);
}
.hero .tagline strong { color: var(--text); font-weight: 600; }
.hero .version-note {
  margin: 14px auto 0;
  font-size: 13px;
  color: var(--muted);
}
.hero .version-note strong { color: var(--text); font-weight: 600; }

.downloads {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 10px;
  background: #1a1f2b;
  border: 1px solid #2e3544;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.dl-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.dl-btn .sub { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.dl-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: #1b2030;
  text-decoration: none;
}
.dl-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.dl-btn.primary .sub { color: rgba(255, 255, 255, 0.75); }
.dl-btn.primary:hover { background: #5f97ff; }

.hero-links {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}
.hero-links a { color: var(--muted); }
.hero-links a:hover { color: var(--text); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border); }

.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -0.01em; }
.sec-head p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- App screenshot ---------- */
.appshot {
  display: block;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.caption {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}
.caption code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--text);
}

/* ---------- How it works (architecture image) ---------- */
.howshot {
  display: block;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- iPad section ---------- */
.ipad-wrap { text-align: center; }
.ipadshot {
  display: block;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 140, 255, 0.12);
  color: var(--accent);
  margin-bottom: 14px;
}
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer .foot-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
footer .foot-links a { color: var(--muted); }
footer .foot-links a:hover { color: var(--text); }
footer .built { margin-top: 8px; font-size: 12px; opacity: 0.8; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .features { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn-ghost) { display: none; }
  .hero { padding: 48px 0 40px; }
  section { padding: 40px 0; }
}

