/* ============================================================
   vibeship.eu — landing + diagnose
   Dark devtool aesthetic. Hand-written. No framework.
   ============================================================ */

:root {
  --bg:        #0a0a0c;
  --bg-elev:   #111114;
  --bg-card:   #16161a;
  --border:    #232328;
  --border-2:  #2e2e36;
  --text:      #e7e7ea;
  --text-dim:  #9a9aa3;
  --text-mute: #6b6b75;
  --accent:    #7c5cff;        /* primary accent — purple */
  --accent-2:  #5b8def;        /* secondary — blue */
  --accent-glow: rgba(124, 92, 255, 0.18);
  --green:     #4ade80;
  --amber:     #f59e0b;
  --red:       #ef4444;
  --code-bg:   #0e0e12;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ---------- background grain + glow ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(800px 500px at 15% -10%, rgba(124,92,255,0.10), transparent 60%),
    radial-gradient(700px 400px at 90% 0%,   rgba(91,141,239,0.08), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

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

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10,10,12,0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand .logo { width: 22px; height: 22px; }
.brand .dot { color: var(--accent); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--border-2);
  background: var(--bg-elev);
  color: var(--text);
  transition: all .15s;
}
.btn:hover { border-color: var(--text-mute); background: var(--bg-card); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: #8b6dff;
  border-color: #8b6dff;
  box-shadow: 0 0 0 6px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-2);
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 80px;
  position: relative;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 18ch;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 60%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- code mock in hero ---------- */
.code-card {
  margin-top: 56px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.code-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #0c0c10;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
}
.code-card-head .dots { display: flex; gap: 6px; margin-right: 6px; }
.code-card-head .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a2a30;
}
.code-card-head .dots span:first-child { background: #ff5f57; }
.code-card-head .dots span:nth-child(2) { background: #febc2e; }
.code-card-head .dots span:nth-child(3) { background: #28c840; }
.code-card-head .file { margin-left: 10px; }

.code-card pre {
  margin: 0;
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
}
.tok-kw  { color: #c084fc; }
.tok-fn  { color: #5eead4; }
.tok-str { color: #fbbf24; }
.tok-com { color: #5c5c66; font-style: italic; }
.tok-var { color: #93c5fd; }
.tok-num { color: #f472b6; }

/* ---------- sections ---------- */
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section.tight { padding: 60px 0; }
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}
.section h2 .accent { color: var(--accent); }
.section .sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 60ch;
  margin: 0 0 48px;
}

/* ---------- problem grid ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.problem {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.problem .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.problem h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.problem p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ---------- how it works steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step h3 { margin: 14px 0 8px; font-size: 18px; font-weight: 600; }
.step p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ---------- packages ---------- */
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.pkg {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.pkg:hover { border-color: var(--border-2); }
.pkg.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 40px -10px var(--accent-glow);
}
.pkg .badge {
  position: absolute; top: -10px; right: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
}
.pkg .name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.pkg h3 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.pkg .tag { color: var(--text-dim); font-size: 14px; margin: 0 0 20px; }
.pkg .price {
  font-size: 32px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.pkg .price small { color: var(--text-mute); font-size: 14px; font-weight: 400; }
.pkg .price-note { color: var(--text-mute); font-size: 12px; margin: 0 0 20px; font-family: var(--mono); }
.pkg ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  flex: 1;
}
.pkg li {
  font-size: 14px; color: var(--text-dim);
  padding: 8px 0;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px;
}
.pkg li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--mono);
  flex-shrink: 0;
}
.pkg li:first-child { border-top: none; padding-top: 0; }

/* ---------- cta strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, rgba(124,92,255,0.08), rgba(91,141,239,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-strip h2 { margin-bottom: 12px; }
.cta-strip p { color: var(--text-dim); margin: 0 0 24px; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-mute);
  font-size: 13px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer a:hover { color: var(--text-dim); }

/* ---------- diagnose page ---------- */
.diagnose-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.diag-head { margin-bottom: 40px; }
.diag-head .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.diag-head h1 {
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.1;
}
.diag-head p { color: var(--text-dim); margin: 0; }

.progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .4s ease;
}

.q-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}
.q-card .qnum {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.q-card h2 { font-size: 22px; margin: 0 0 24px; font-weight: 600; }

.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.opt:hover { border-color: var(--text-mute); background: var(--bg-card); }
.opt input { display: none; }
.opt .check {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-2);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.opt input:checked + .check {
  background: var(--accent);
  border-color: var(--accent);
}
.opt input:checked + .check::after {
  content: "";
  width: 10px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.opt .label { font-size: 15px; }
.opt .label .sub {
  display: block; color: var(--text-mute);
  font-size: 12px; margin-top: 2px;
}

.q-nav { display: flex; justify-content: space-between; gap: 12px; }
.q-nav .btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* results */
.results {
  display: grid;
  gap: 20px;
}
.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.score-card .ring {
  width: 140px; height: 140px;
  margin: 0 auto 20px;
  position: relative;
}
.score-card .ring svg { transform: rotate(-90deg); }
.score-card .ring .score-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 600;
}
.score-card h2 { margin: 0 0 8px; }
.score-card p { color: var(--text-dim); margin: 0; }

.issues h3 {
  font-size: 18px; margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.issues h3 .count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
}
.issue {
  display: flex; gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.issue .sev {
  width: 8px; flex-shrink: 0;
  border-radius: 2px;
}
.issue.red .sev    { background: var(--red); }
.issue.amber .sev  { background: var(--amber); }
.issue.green .sev  { background: var(--green); }
.issue h4 { margin: 0 0 4px; font-size: 15px; }
.issue p { margin: 0; color: var(--text-dim); font-size: 13px; }

.rec-card {
  background: linear-gradient(135deg, rgba(124,92,255,0.10), rgba(91,141,239,0.05));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
}
.rec-card h3 { margin: 0 0 8px; }
.rec-card p { color: var(--text-dim); margin: 0 0 16px; }

/* small util */
.mono { font-family: var(--mono); }
.muted { color: var(--text-mute); }
