/* remote-vibe-coder landing page — mirrors the app's tokens */

:root {
  --bg: #0a0a0a;
  --bg-1: #131316;
  --bg-2: #16161a;
  --bg-3: #1d1d23;
  --border: #26262d;
  --border-strong: #353541;
  --text: #e9e9ec;
  --text-dim: #8a8a93;
  --accent: #ff8a4c;
  --accent-strong: #ff7a32;
  --accent-soft: rgba(255, 138, 76, 0.14);
  --accent-ring: rgba(255, 138, 76, 0.3);
  --success: #6dd17a;
  --danger: #ff5d6c;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-ui:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 880px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  background: transparent;
  display: flex;
  flex-direction: column;
  position: relative;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
  filter: saturate(1.1) contrast(1.04);
}

/* Soft cool vignette — lets the holographic background carry the page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    120% 90% at 50% 40%,
    transparent 0%,
    rgba(8, 6, 22, 0.45) 75%,
    rgba(6, 4, 18, 0.75) 100%
  );
}

/* All content sits above the canvas + vignette */
.topbar,
main,
footer,
.toast {
  position: relative;
  z-index: 1;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  color: var(--text);
}

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

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

/* ───── Topbar ───── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 10, 24, 0.45);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.brand img {
  display: block;
}

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

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

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link .icon {
  width: 16px;
  height: 16px;
}

.btn .icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

@media (max-width: 520px) {
  .topbar {
    padding: 12px 16px;
  }
  .nav {
    gap: 14px;
    font-size: 13px;
  }
}

/* ───── Main ───── */
main {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 96px;
  flex: 1;
}

section + section {
  margin-top: 64px;
}

@media (max-width: 520px) {
  main {
    padding: 32px 16px 64px;
  }
  section + section {
    margin-top: 48px;
  }
}

/* ───── Hero ───── */
.hero {
  padding: 24px 0 8px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  font-weight: 700;
}

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

.lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 0 40px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 22, 26, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px 0 16px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    transform 80ms ease;
}

.install:hover {
  border-color: var(--accent-ring);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.install:active {
  transform: translateY(1px);
}

.install .prompt {
  color: var(--accent);
}

.install .copy-hint {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-left: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  line-height: 1;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--text);
  transition:
    border-color 120ms ease,
    background 120ms ease;
}

.btn:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.btn.ghost {
  background: transparent;
}

.micro {
  font-size: 13px;
  color: var(--text-dim);
  margin: 16px 0 0;
}

/* ───── Terminal frame ───── */
.frame {
  margin-top: 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(12, 10, 24, 0.55);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #131316;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-r {
  background: #ff5d6c;
}
.dot-y {
  background: #f5c34a;
}
.dot-g {
  background: #6dd17a;
}

.frame-title {
  margin-left: 8px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
}

.frame-body {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}

.frame-body .muted {
  color: var(--text-dim);
}

.frame-body .accent {
  color: var(--accent);
  font-weight: 600;
}

.frame-body .link {
  color: var(--accent);
}

/* ───── Features ───── */
h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 700;
}

.section-head {
  max-width: 600px;
  margin: 0 0 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  margin-bottom: 18px;
}

.section-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  position: relative;
  padding: 28px 26px 26px;
  background: rgba(19, 19, 22, 0.72);
  transition: background 200ms ease;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 50% 0%, var(--accent-soft), transparent 65%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
  z-index: -1;
}

.card:hover {
  background: rgba(22, 22, 26, 0.85);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  color: var(--accent);
  margin-bottom: 18px;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease;
}

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

.card:hover .card-icon {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 138, 76, 0.18);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

@media (max-width: 520px) {
  .card {
    padding: 22px 20px 20px;
  }
}

/* ───── Install section ───── */
.install-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 24px 0 8px;
}

.install-section h3:first-of-type {
  margin-top: 8px;
}

.block {
  margin: 0;
  padding: 14px 16px;
  background: rgba(22, 22, 26, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  overflow-x: auto;
  cursor: pointer;
  transition: border-color 120ms ease;
}

.block:hover {
  border-color: var(--accent-ring);
}

.block code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
}

/* ───── Trust ───── */
.trust p {
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 640px;
}

/* ───── Footer ───── */
footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  color: var(--text-dim);
  font-size: 13px;
}

.foot-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ───── Toast ───── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--accent);
  color: #1a1208;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill, 999px);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  box-shadow: 0 10px 30px rgba(255, 138, 76, 0.35);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
