/* Ronnie Relay — relay.ronniesamuel.com */
:root {
  --bg: #0b0f14;
  --bg-elev: #111820;
  --bg-card: #141d27;
  --border: #223141;
  --text: #e6edf3;
  --muted: #93a4b3;
  --teal: #17b8a6;
  --teal-2: #0f8f82;
  --gold: #d9a441;
  --accent: #2ee6cf;
  --danger: #e5533c;
  --radius: 14px;
  --maxw: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,20,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text); }
.brand img { width: 38px; height: 38px; border-radius: 8px; }
.brand span { font-size: 1.05rem; letter-spacing: .3px; }
.nav-links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: .93rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* Layout */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 80px; }
.hero {
  text-align: center; padding: 72px 20px 48px; max-width: var(--maxw); margin: 0 auto;
}
.hero img.logo { width: 148px; height: 148px; border-radius: 20px; box-shadow: 0 8px 40px rgba(23,184,166,0.15); }
.hero h1 { font-size: 2.3rem; margin: 22px 0 10px; letter-spacing: -0.5px; }
.hero p.tagline { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 8px; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.badge {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--teal);
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
}

h2 { font-size: 1.55rem; margin: 44px 0 14px; letter-spacing: -0.3px; }
h3 { font-size: 1.15rem; margin: 26px 0 8px; color: var(--text); }
p, li { color: #cdd8e2; }
.muted { color: var(--muted); }
hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

.lead { font-size: 1.12rem; color: var(--muted); }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; margin: 18px 0;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.grid .card { margin: 0; }
.card h3 { margin-top: 0; }
.icon { font-size: 1.6rem; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: #04120f; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

.callout {
  border-left: 3px solid var(--gold); background: rgba(217,164,65,0.06);
  padding: 14px 18px; border-radius: 8px; margin: 20px 0;
}
.callout.teal { border-left-color: var(--teal); background: rgba(23,184,166,0.06); }

table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

code { background: #0d141b; border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; font-size: .88em; color: var(--accent); }
pre { background: #0d141b; border: 1px solid var(--border); border-radius: 10px; padding: 16px; overflow-x: auto; }
pre code { border: none; background: none; padding: 0; }

.flow {
  display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin: 22px 0; justify-content: center;
}
.flow .node {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; min-width: 130px; text-align: center; flex: 1 1 130px;
}
.flow .node b { display: block; color: var(--teal); font-size: .95rem; }
.flow .node small { color: var(--muted); }
.flow .arrow { align-self: center; color: var(--muted); font-size: 1.4rem; }

.btn {
  display: inline-block; background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: #04120f; font-weight: 700; padding: 12px 22px; border-radius: 10px; margin-top: 8px;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }

/* Legal doc pages */
.doc h1 { font-size: 1.9rem; margin: 40px 0 6px; }
.doc .updated { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.doc h2 { font-size: 1.25rem; }

footer.site {
  border-top: 1px solid var(--border); background: var(--bg-elev);
  padding: 34px 20px; color: var(--muted); font-size: .9rem;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .nav-links { gap: 12px; }
}
