/* RB Ventures — minimal techy static site styles */

:root {
  --bg: #0a0a0b;
  --bg-raised: #111113;
  --border: #232326;
  --text: #ededed;
  --text-dim: #9a9a9f;
  --text-faint: #86868c;
  --accent: #6ee7c9;
  --max-width: 1080px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --bg-raised: #ffffff;
    --border: #e2e2e4;
    --text: #131315;
    --text-dim: #55555c;
    --text-faint: #6e6e74;
    --accent: #0a7a5f;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

a {
  color: inherit;
}

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

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.logo-mark {
  width: 21px;
  height: 21px;
  color: var(--text);
  flex-shrink: 0;
}

.logo-mark-accent {
  stroke: var(--accent);
}

.logo-word {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo-dim {
  color: var(--text-dim);
  font-weight: 400;
}

.primary-nav {
  display: flex;
  gap: var(--space-4);
}

.primary-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--text-faint);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 1px;
  margin: 0 8px;
  background: var(--text);
}

/* Hero */

.hero {
  padding: var(--space-6) var(--space-3) var(--space-5);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-5);
}

.eyebrow {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  max-width: 21ch;
}

.hero-lede {
  margin-top: var(--space-3);
  max-width: 52ch;
  font-size: 1.15rem;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

/* Hero visual: a decorative, aria-hidden node graph. Purely presentational
   (see index.html), so it's fine that it conveys no information on its own
   and is hidden below the desktop breakpoint where a two-column hero would
   otherwise cramp the copy. */

.hero-visual {
  display: none;
}

.node-graph {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
}

.ng-line {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  opacity: 0.4;
  animation: ng-flow 2.6s linear infinite;
}

.ng-line-2 {
  animation-delay: 0.3s;
}

.ng-line-3 {
  animation-delay: 0.6s;
}

.ng-dot {
  fill: var(--text-faint);
  opacity: 0.35;
}

.ng-node {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: ng-pulse 2.8s ease-in-out infinite;
}

.ng-node-core {
  fill: var(--text);
  animation: none;
}

.ng-node-b {
  animation-delay: 0.5s;
}

.ng-node-c {
  animation-delay: 1s;
}

@keyframes ng-flow {
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes ng-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  opacity: 0.85;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--text-dim);
}

/* Sections */

.section {
  padding: var(--space-5) var(--space-3);
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-lede {
  margin-top: var(--space-2);
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* Pillars */

.pillars {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.pillar {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
}

.pillar-index {
  display: block;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: var(--space-2);
}

.pillar h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-1);
}

.pillar p {
  color: var(--text-dim);
  font-size: 0.97rem;
}

/* Approach */

.approach-grid {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.approach-item h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-1);
}

.approach-item p {
  color: var(--text-dim);
  font-size: 0.97rem;
}

/* Contact */

.contact-section {
  text-align: left;
}

.contact-email {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-1);
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-domain {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
}

/* Responsive */

@media (max-width: 800px) {
  .pillars,
  .approach-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .primary-nav.is-open {
    max-height: 240px;
  }

  .primary-nav a {
    padding: var(--space-2) var(--space-3);
    border-top: 1px solid var(--border);
  }

  .hero {
    padding-top: var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
  .ng-line,
  .ng-node {
    animation: none !important;
    opacity: 0.6 !important;
  }
}
