/* CapRust landing page.
 *
 * Vanilla CSS, dark theme, no build step. Matches the app's palette:
 * panel fill #12121a-ish, accent green, muted grays.
 */

:root {
  --bg:           #0f0f12;
  --bg-elevated:  #16161a;
  --bg-card:      #1c1c22;
  --border:       #2a2a32;
  --border-hover: #3a3a44;
  --text:         #e5e5e8;
  --text-muted:   #9a9aa2;
  --text-dim:     #6a6a72;
  --accent:       #4ade80;
  --accent-dim:   #2a8a4a;
  --accent-glow:  rgba(74, 222, 128, 0.15);
  --danger:       #ef4444;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --max-width:    1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav ---------------------------------------------------------------- */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

nav .brand img { width: 32px; height: 32px; border-radius: 8px; }
nav .brand:hover { text-decoration: none; }

nav .links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

nav .links a { color: var(--text-muted); }
nav .links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover {
  background: #5eeb90;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }

/* --- Hero --------------------------------------------------------------- */

.hero {
  padding: 96px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero .buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero .meta {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .meta span { display: inline-flex; align-items: center; gap: 6px; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

/* --- Screenshot --------------------------------------------------------- */

.screenshot {
  padding: 32px 0 96px;
  text-align: center;
}

.screenshot img {
  width: 100%;
  max-width: 1100px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(74, 222, 128, 0.05);
}

.screenshot .caption {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* --- Section heading ---------------------------------------------------- */

section { padding: 64px 0; }

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
}

/* --- Features grid ------------------------------------------------------ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.15s ease;
}

.feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- Tech row ----------------------------------------------------------- */

.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.tech span {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
}

/* --- Download ----------------------------------------------------------- */

.download {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}

.download h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px;
}

.download p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.download .btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.download .verify {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  word-break: break-all;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.download .verify code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 11px;
}

/* --- FAQ ---------------------------------------------------------------- */

.faq { max-width: 720px; margin: 0 auto; }

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}

.faq details:hover { border-color: var(--border-hover); }
.faq details[open] { border-color: var(--accent-dim); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { content: "−"; }

.faq .answer {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* --- Footer ------------------------------------------------------------- */

footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

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

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

/* --- Mobile ------------------------------------------------------------- */

@media (max-width: 720px) {
  nav .links a:not(.btn) { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 48px 0; }
  .section-head h2 { font-size: 26px; }
  .download h2 { font-size: 26px; }
  .download .btn-lg { padding: 14px 24px; font-size: 15px; }
}
