/* ============================================================
   Salvara — landing page styles
   Dark, minimal, typographic. Retheme by editing the tokens below.
   ============================================================ */

:root {
  /* Palette */
  --bg:           #0b0c0e;
  --bg-elev:      #131418;
  --bg-band:      #0f1013;
  --line:         #23252b;
  --text:         #e9e9ec;
  --text-muted:   #9b9da6;
  --text-dim:     #6b6d76;

  /* Single accent — change this one value to re-skin the site */
  --accent:       #8b7dff;
  --accent-soft:  rgba(139, 125, 255, 0.14);
  --accent-line:  rgba(139, 125, 255, 0.35);

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --container: 1080px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;
  --section-y: clamp(4.5rem, 11vw, 9rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 70% -10%, rgba(139,125,255,0.10), transparent 60%),
    radial-gradient(50rem 40rem at -10% 10%, rgba(139,125,255,0.05), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #0b0c0e; padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0; font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 0; }

:where(a, button).btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 14, 0.72);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark {
  font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em;
}
.wordmark::after { content: ""; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.18s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem; border-radius: 999px;
}
.nav-cta:hover { border-color: var(--accent-line); background: var(--accent-soft); }
@media (max-width: 540px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.98rem; font-weight: 600; line-height: 1;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary {
  background: var(--accent); color: #0b0c0e;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 10px 30px -12px var(--accent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 16px 34px -12px var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(4rem, 12vw, 8rem);
  padding-bottom: var(--section-y);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.74rem; font-weight: 600; color: var(--text-dim);
  margin-bottom: 1.4rem;
}
.hero-wordmark {
  font-size: clamp(3.5rem, 14vw, 8.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(180deg, #ffffff 0%, #c9cad2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lede {
  max-width: 36ch;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.5; color: var(--text-muted);
  margin-top: 1.8rem;
}
.hero-founder { margin-top: 1.6rem; color: var(--text-dim); font-size: 0.98rem; }
.founder-name { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 46ch; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section-sub { margin-top: 1rem; color: var(--text-muted); font-size: 1.08rem; }

/* ---------- Cards ---------- */
.cards {
  list-style: none;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.card {
  position: relative;
  padding: 1.8rem 1.6rem 1.6rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.card-index {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.15em;
  color: var(--accent);
}
.card h3 { font-size: 1.3rem; margin-top: 0.9rem; }
.card p { margin-top: 0.6rem; color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Consulting band ---------- */
.section-band {
  background: var(--bg-band);
  border-block: 1px solid var(--line);
}
.band-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.band-copy { max-width: 52ch; }
.band-copy h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.band-copy p { margin-top: 1rem; color: var(--text-muted); }
.band-cta { flex-shrink: 0; }

/* ---------- Portfolio / stealth ---------- */
.portfolio {
  list-style: none;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.portfolio-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1.4rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.portfolio-item.is-stealth { background: linear-gradient(180deg, var(--bg-elev), transparent); }
.stealth-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-line); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.portfolio-label { color: var(--text); font-weight: 600; }
.portfolio-note { margin-left: auto; font-size: 0.85rem; color: var(--text-dim); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 8vw, 6rem) 2.5rem;
  background:
    radial-gradient(40rem 24rem at 50% 120%, rgba(139,125,255,0.10), transparent 60%),
    var(--bg);
}
.footer-inner { display: flex; flex-direction: column; gap: 2.5rem; }
.footer-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.footer-heading { font-size: clamp(2rem, 6vw, 3.2rem); }
.footer-meta {
  display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between;
  padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.footer-meta a { color: var(--text-muted); font-size: 0.95rem; }
.footer-meta a:hover { color: var(--text); }
.footer-legal { color: var(--text-dim); font-size: 0.88rem; }
