/* Vibra View — industrial, mobile-first, no frameworks */

:root {
  --bg: #101317;
  --bg-elev: #171c22;
  --bg-soft: #1e252d;
  --ink: #ece8e1;
  --muted: #a39e94;
  --line: #2c343d;
  --accent: #c9a227;
  --accent-ink: #16140c;
  --focus: #e8c547;
  --danger: #c45c3a;
  --radius: 6px;
  --max: 68rem;
  --nav-h: 4rem;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "Segoe UI Mono", ui-monospace, monospace;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--focus);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 1.75rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}

.brand .name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand .tag {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.15rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

#nav-menu:target,
.nav.is-open {
  display: flex;
}

.nav-panel {
  display: none;
}

#nav-menu:target {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--nav-h);
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0.875rem 1.25rem;
  gap: 0.85rem;
}

.nav-close {
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 650;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.92rem;
}

.btn:hover {
  color: var(--accent-ink);
  filter: brightness(1.08);
}

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

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.header-cta {
  display: none;
}

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 650;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.fine {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Layout */
main {
  min-height: 60vh;
}

section {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type {
  border-bottom: 0;
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.15rem 1.2rem;
}

.card ol,
.card ul,
section ul,
section ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.card li + li,
section li + li {
  margin-top: 0.35rem;
}

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

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.15rem 1.2rem 1.15rem 3.4rem;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.flow {
  font-family: var(--mono);
  font-size: 0.88rem;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  padding: 1rem 1.1rem;
  border-radius: 8px;
  overflow-x: auto;
  color: var(--ink);
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev);
}

.note {
  border-left: 3px solid var(--accent);
  padding: 0.15rem 0 0.15rem 0.9rem;
  color: var(--muted);
}

.warning {
  border-left: 3px solid var(--danger);
  padding: 0.9rem 1rem;
  background: color-mix(in srgb, var(--danger) 10%, var(--bg-elev));
  border-radius: 0 8px 8px 0;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style-position: outside;
}

.faq details p {
  margin: 0.6rem 0 0.2rem;
  color: var(--muted);
}

.cta-band {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.3rem;
}

.cta-band h2 {
  margin-top: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.legal {
  margin-top: 0.9rem;
}

/* 404 */
.not-found {
  padding: 4rem 0 5rem;
  text-align: left;
}

@media (min-width: 800px) {
  .nav-toggle,
  .nav-close {
    display: none;
  }

  .nav,
  .nav-panel,
  #nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    border: 0;
    padding: 0;
    gap: 1.2rem;
  }

  .header-cta {
    display: inline-flex;
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 3.5rem 0 2.75rem;
  }

  section {
    padding: 2.75rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
