/* Qubitra — site stylesheet */

:root {
  --bg:        #080d19;
  --bg2:       #0d1525;
  --bg3:       #111b30;
  --border:    #1e2e4a;
  --blue:      #1b70f1;
  --blue-dim:  #10418b;
  --red:       #f74d14;
  --text:      #f8f7f2;
  --muted:     #8090a8;
  --code-bg:   #0a1020;
  --radius:    8px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── nav ─────────────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.nav-logo { display: block; }

.nav-link {
  font-size: 0.875rem;
  color: var(--muted);
}
.nav-link:hover { color: var(--text); text-decoration: none; }

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.hero-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-screenshot {
  display: block;
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── install ─────────────────────────────────────────────────────────────── */

.install {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.install-sub {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.code-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", Menlo, monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.code-prompt { color: var(--blue); user-select: none; }

.code-block code {
  flex: 1;
  color: var(--text);
  white-space: nowrap;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.copy-btn:hover { color: var(--text); border-color: var(--blue); }

.install-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.copy-note {
  display: none;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--blue);
}
.install-note code {
  font-family: "SF Mono", "Fira Code", Menlo, monospace;
  color: var(--text);
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  font-size: 0.85em;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem;
  margin-top: 2rem;
}

.usage-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.usage-cmd {
  font-family: "SF Mono", "Fira Code", Menlo, monospace;
  font-size: 0.825rem;
  color: var(--blue);
}

.usage-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── features ────────────────────────────────────────────────────────────── */

.features {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}

.features .section-title {
  max-width: 760px;
  margin: 0 auto 2rem;
}

.features-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.feature-card code {
  font-family: "SF Mono", "Fira Code", Menlo, monospace;
  font-size: 0.825em;
  color: var(--text);
  background: var(--code-bg);
  border-radius: 3px;
  padding: 0.1em 0.3em;
}

/* ── footer ──────────────────────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ── responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .hero { padding: 3.5rem 1.25rem 2.5rem; }
  .install, .features .section-title { padding-left: 1.25rem; padding-right: 1.25rem; }
  .code-block { font-size: 0.78rem; }
}
