/* Vibe Code Projects marketing site
   Single stylesheet, no build step. Tokens live in :root:
   change --accent / --accent-2 and the whole site recolors. */

:root {
  --bg:        #0b0d10;
  --bg-alt:    #101318;
  --surface:   #14181e;
  --surface-2: #1a1f27;
  --line:      rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);

  --text:      #e8eaee;
  --text-mute: #98a2b0;
  --text-dim:  #6e7885;

  --accent:      #7b5cfa;
  --accent-soft: #a794ff;
  --accent-2:    #22d3ee;
  --accent-glow: rgba(123, 92, 250, 0.20);
  --accent-tint: rgba(123, 92, 250, 0.07);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1080px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 0.5em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p  { margin: 0 0 1rem; }

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

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff;
  padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

.small { font-size: 0.9rem; }
.muted { color: var(--text-mute); }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 13px; height: 13px; border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px var(--accent-glow);
  flex: none;
}
.brand-name { font-weight: 650; letter-spacing: -0.02em; }
.brand-name span { color: var(--text-mute); font-weight: 500; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-mute); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 1rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #8b6fff; border-color: #8b6fff; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.2); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(72px, 12vw, 132px) 0 clamp(64px, 9vw, 104px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero::before {
  content: "";
  position: absolute; inset: -40% 0 auto -10%;
  height: 620px;
  background: radial-gradient(50% 50% at 30% 50%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 16ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-soft);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.35rem 0.75rem; border-radius: 999px;
  margin-bottom: 1.4rem;
}

.lede {
  max-width: 62ch;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-mute);
  margin-top: 1.2rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 2.4rem; }

.trust {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  list-style: none; margin: 0; padding: 0;
  font-size: 0.92rem; color: var(--text-dim);
}
.trust li { position: relative; padding-left: 18px; }
.trust li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section-title { margin-bottom: 0.4rem; }
.section-sub { color: var(--text-mute); max-width: 62ch; margin-bottom: 2.6rem; }

/* ---------- symptoms ---------- */

.symptoms {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.symptoms li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: var(--text-mute);
  font-size: 0.98rem;
}

/* ---------- glossary tooltips ---------- */

.tip-hint {
  margin: -1.8rem 0 1.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.tip {
  position: relative;
  color: var(--text);
  border-bottom: 1px dashed var(--accent-soft);
  cursor: help;
}
.tip:focus { outline: none; }
.tip:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

.tip-body {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 20;
  width: max-content;
  max-width: min(300px, 66vw);
  padding: 11px 13px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.8);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
  cursor: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
/* Arrow */
.tip-body::after {
  content: "";
  position: absolute; top: 100%; left: 18px;
  border: 6px solid transparent;
  border-top-color: var(--line);
}
.tip:hover .tip-body,
.tip:focus .tip-body,
.tip:focus-within .tip-body {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Cards in the last grid column would push a left-aligned tooltip off screen. */
@media (max-width: 560px) {
  .tip-body { left: auto; right: 0; }
  .tip-body::after { left: auto; right: 18px; }
}

/* ---------- who we work with ---------- */

.who { border-top: 1px solid var(--line-soft); }

.who-grid {
  display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.who-card {
  background: var(--surface);
  padding: 22px 22px 20px;
}
.who-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.45rem;
  color: var(--accent-soft);
}
.who-card p {
  margin: 0;
  color: var(--text-mute);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- service cards ---------- */

.cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: rgba(255,255,255,0.18); transform: translateY(-2px); }
.card-num {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--accent-soft); letter-spacing: 0.08em;
  display: block; margin-bottom: 0.8rem;
}
.card p { color: var(--text-mute); font-size: 0.97rem; }
.card .deliverable {
  margin: 1.1rem 0 0; padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--text); font-size: 0.93rem;
}
.card .deliverable strong { color: var(--accent-soft); }

/* ---------- credentials ---------- */

.creds {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
}
.cred {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  display: flex; flex-direction: column;
}
.cred-id {
  align-self: flex-start;
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent-soft);
  background: var(--accent-tint);
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem; border-radius: 6px;
  margin-bottom: 0.9rem;
}
.cred-repo .cred-id {
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
}
.cred h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.cred-meta {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--text-dim); margin-bottom: 0.9rem;
}
.cred p { color: var(--text-mute); font-size: 0.95rem; }
.cred-what {
  font-size: 0.85rem !important;
  color: var(--text-dim) !important;
  margin-bottom: 0.9rem;
}
.cred-link {
  margin-top: auto; padding-top: 1rem;
  font-size: 0.9rem; font-weight: 550;
}
.cred-link::after { content: " \2197"; }
.cred-note {
  margin: 1.6rem 0 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---------- process ---------- */

.steps {
  list-style: none; counter-reset: step;
  margin: 0; padding: 0;
  display: grid; gap: 4px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 0 22px 66px;
  border-top: 1px solid var(--line-soft);
}
.steps li:last-child { border-bottom: 1px solid var(--line-soft); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 22px;
  font-family: var(--mono); font-size: 0.95rem;
  color: var(--accent);
  border: 1px solid var(--line);
  background: var(--surface);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { color: var(--text-mute); margin: 0; font-size: 0.97rem; }

/* ---------- tiers ---------- */

/* Four tiers need explicit breakpoints: auto-fit would leave a lone
   orphan card on a third row at mid widths. Default stretch keeps
   every card in a row the same height. */
.tiers {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .tiers { grid-template-columns: repeat(4, 1fr); }
  .tier { padding: 26px 20px; }
  .price { font-size: 1.75rem; }
  .tier li { font-size: 0.92rem; padding-left: 24px; }
}
.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 2px;
}
.tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-tint), transparent 45%), var(--surface);
  box-shadow: 0 18px 50px -28px var(--accent);
}
/* Sits on the top border so it costs no vertical space, which keeps the
   headings, prices and bullet lists aligned across all three cards. */
.tag {
  position: absolute;
  top: -10px; right: 22px;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: #fff; background: var(--accent);
  padding: 0.25rem 0.6rem; border-radius: 999px;
  box-shadow: 0 0 0 4px var(--bg); /* matches #pricing background */
}
.price { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin: 0.3rem 0 0; }
.price span { font-size: 0.95rem; font-weight: 500; color: var(--text-dim); }
.tier-meta { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.2rem; }
.tier ul { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 10px; }
.tier li {
  position: relative; padding-left: 26px;
  color: var(--text-mute); font-size: 0.95rem;
}
.tier li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--accent-soft);
  border-bottom: 2px solid var(--accent-soft);
  transform: rotate(-45deg);
}
.tier .btn { margin-top: auto; }
.tier-note {
  margin: 1.6rem 0 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 70ch;
}

/* ---------- faq ---------- */

details {
  border-bottom: 1px solid var(--line-soft);
  padding: 4px 0;
}
details summary {
  cursor: pointer; list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 600; position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent-soft); font-size: 1.3rem; font-weight: 400;
}
details[open] summary::after { content: "\2212"; }
details p { color: var(--text-mute); margin: 0 0 18px; padding-right: 32px; font-size: 0.97rem; }

/* ---------- contact ---------- */

.contact { border-top: 1px solid var(--line-soft); }

.book {
  background: linear-gradient(180deg, var(--accent-tint), transparent 60%), var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 18px 50px -30px var(--accent);
}
.book-note {
  margin: 0.8rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.or-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 28px 0 20px;
  color: var(--text-dim); font-size: 0.85rem;
}
.or-divider::before, .or-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.or { margin-top: 1.4rem; color: var(--text-mute); font-size: 0.95rem; text-align: center; }

.form { display: grid; gap: 16px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 550; color: var(--text-mute); }
.field .opt { color: var(--text-dim); font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 0.97rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-alt);
  padding: 32px 0;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  align-items: center; justify-content: space-between;
}
.footer p { margin: 0; }
.footer .brand-name { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- responsive ---------- */

/* Sticky header must not cover the section a nav link jumps to. */
main section[id] { scroll-margin-top: 84px; }

@media (max-width: 720px) {
  main section[id] { scroll-margin-top: 104px; }

  /* Header becomes two rows: brand + CTA, then a swipeable link strip.
     A hamburger would need JS to close after a jump, so the strip wins. */
  .nav-inner {
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 11px;
    padding-bottom: 7px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; font-size: 0.9rem; }
  .nav .btn-sm { margin-left: auto; }

  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }

  .steps li { padding-left: 0; padding-top: 64px; }
  .steps li::before { top: 18px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 400px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .card, .cred, .tier { padding-left: 20px; padding-right: 20px; }
}
