/* =========================================================
   ROSTER RHYTHM — site styles
   Brand mirrors spindlecode.com/roster-rhythm.html
   ========================================================= */

:root {
  /* Brand */
  --rr-brand:        #FF5A1F;
  --rr-brand-hover:  #E64D15;
  --rr-brand-soft:   rgba(255, 90, 31, 0.18);
  --rr-brand-line:   rgba(255, 90, 31, 0.35);
  --rr-brand-glow:   rgba(255, 90, 31, 0.10);

  --rr-ink:          #0B1220;
  --rr-ink-2:        #0E1116;
  --rr-ink-3:        #0B0D12;
  --rr-cream:        #F7F7F5;
  --rr-cream-2:      #EFEEE7;

  --rr-white:        #FAFAF7;
  --rr-text-on-dark: rgba(255, 255, 255, 0.72);
  --rr-text-dim:     rgba(255, 255, 255, 0.55);
  --rr-text-faint:   rgba(255, 255, 255, 0.40);

  --rr-prose-ink:    #1A1E24;
  --rr-prose-dim:    #454B55;
  --rr-prose-line:   #D8D5CB;
  --rr-prose-bg:     var(--rr-cream);

  --rr-success:      #22C55E;

  --rr-nav-h:        64px;
  --rr-container:    1200px;
  --rr-radius-lg:    20px;
  --rr-radius-pill:  999px;

  --rr-font-sans:    'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --rr-font-mono:    'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--rr-font-sans);
  background: var(--rr-ink-3);
  color: var(--rr-white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--rr-brand); color: #fff; }
:focus-visible { outline: 3px solid var(--rr-brand-line); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--rr-container); margin: 0 auto; padding: 0 2rem; }
.eyebrow {
  font-family: var(--rr-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rr-brand);
}

/* ---- Nav (shared Spindlecode chrome look) ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--rr-nav-h);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 0.4s ease;
}
.nav.scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05); }
.nav__inner {
  max-width: var(--rr-container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em;
  color: #fafafa;
}
.nav__logo svg { width: 26px; height: 26px; }
.nav__logo em {
  font-style: italic; font-weight: 500; color: var(--rr-brand);
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  font-size: 0.875rem; font-weight: 500;
  color: #9e9eab;
  position: relative;
  transition: color 0.3s ease;
}
.nav__links a:hover, .nav__links a.active { color: #fafafa; }
.nav__links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--rr-brand);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 1rem;
  background: var(--rr-brand); color: #fff !important;
  border-radius: var(--rr-radius-pill);
  font-weight: 600; font-size: 0.8125rem;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav__cta:hover { background: var(--rr-brand-hover); transform: translateY(-1px); }
.nav__cta::after { display: none !important; }

.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.5rem; z-index: 1001;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px;
  background: #fafafa; margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}
.nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav__links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 280px; background: #0a0a0a;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1001;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__toggle { display: block; }
}

/* ---- Hero ---- */
.rr-hero {
  position: relative;
  padding: calc(var(--rr-nav-h) + 5rem) 0 5rem;
  background:
    radial-gradient(1200px 500px at 10% 0%, var(--rr-brand-glow), transparent 60%),
    linear-gradient(180deg, var(--rr-ink-2) 0%, var(--rr-ink-3) 100%);
  overflow: hidden;
}
.rr-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .rr-hero__grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .rr-hero__tile { margin: 0 auto; }
}
.rr-hero__eyebrow {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: var(--rr-brand-soft);
  border: 1px solid var(--rr-brand-line);
  padding: .4rem .8rem;
  border-radius: var(--rr-radius-pill);
  margin-bottom: 1.5rem;
}
.rr-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.02;
  color: #fff;
  margin: 0 0 1.25rem;
}
.rr-hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--rr-brand);
}
.rr-hero__desc {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--rr-text-on-dark);
  max-width: 520px;
  margin: 0 0 2rem;
}
@media (max-width: 900px) {
  .rr-hero__desc { margin-left: auto; margin-right: auto; }
}
.rr-hero__meta {
  display: flex; gap: 1.5rem;
  align-items: center; flex-wrap: wrap;
  font-size: .85rem;
  color: var(--rr-text-dim);
}
@media (max-width: 900px) {
  .rr-hero__meta { justify-content: center; }
}
.rr-hero__meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rr-success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.rr-hero__tile {
  width: clamp(160px, 30vw, 460px);
  aspect-ratio: 1;
  border-radius: 22%;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(255, 90, 31, 0.5),
    0 20px 40px -10px rgba(0, 0, 0, 0.6);
  position: relative;
  flex-shrink: 1;
}
@media (max-width: 900px) { .rr-hero__tile { width: clamp(140px, 45vw, 320px); } }
@media (max-width: 500px) { .rr-hero__tile { width: clamp(120px, 55vw, 240px); } }
.rr-hero__tile svg { display: block; width: 100%; height: 100%; }

@keyframes rr-p1 { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes rr-p2 { 0%, 100% { transform: scaleY(1); }   50% { transform: scaleY(.35); } }
@keyframes rr-p3 { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(.9); } }
@keyframes rr-p4 { 0%, 100% { transform: scaleY(.8); }  50% { transform: scaleY(.45); } }
.rr-hero__tile rect.bar { transform-origin: 50% 100%; transform-box: fill-box; }
.rr-hero__tile .b1 { animation: rr-p1 1.1s ease-in-out infinite; }
.rr-hero__tile .b2 { animation: rr-p2  .9s ease-in-out infinite; }
.rr-hero__tile .b3 { animation: rr-p3 1.3s ease-in-out infinite; }
.rr-hero__tile .b4 { animation: rr-p4 1.0s ease-in-out infinite; }

/* ---- Features ---- */
.rr-features { background: var(--rr-ink-3); padding: 5rem 0; }
.rr-section__head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.rr-section__eyebrow {
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rr-brand); font-weight: 700; margin: 0 0 1rem;
}
.rr-section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -.02em;
  color: #fff; margin: 0 0 1rem;
}
.rr-section__sub {
  font-size: 1.1rem; line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.rr-feature-carousel { position: relative; overflow: hidden; padding: 0 2rem; }
.rr-feature-track {
  display: flex; gap: 1.25rem;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.rr-feature {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--rr-radius-lg);
  padding: 2rem 1.75rem;
  position: relative; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  width: calc(33.333% - 0.84rem);
  min-width: calc(33.333% - 0.84rem);
  max-width: calc(33.333% - 0.84rem);
  flex: 0 0 calc(33.333% - 0.84rem);
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .rr-feature {
    width: calc(50% - 0.625rem);
    min-width: calc(50% - 0.625rem);
    max-width: calc(50% - 0.625rem);
    flex: 0 0 calc(50% - 0.625rem);
  }
}
@media (max-width: 600px) {
  .rr-feature {
    width: 100%; min-width: 100%; max-width: 100%; flex: 0 0 100%;
  }
}
.rr-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 31, 0.4);
  background: rgba(255, 90, 31, 0.04);
}
.rr-feature__num {
  font-family: var(--rr-font-mono);
  font-size: .75rem;
  color: var(--rr-brand);
  letter-spacing: .1em;
  margin-bottom: 1.5rem;
}
.rr-feature__title {
  font-size: 1.35rem; font-weight: 700;
  color: #fff; margin: 0 0 .75rem;
  letter-spacing: -.01em;
}
.rr-feature__desc {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55; margin: 0;
  font-size: .95rem;
}

.rr-carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.rr-carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none; cursor: pointer; padding: 0;
  transition: background .3s;
}
.rr-carousel-dot.active { background: var(--rr-brand); }
.rr-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 90, 31, 0.15);
  border: 1px solid rgba(255, 90, 31, 0.3);
  color: #fff;
  width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s; z-index: 2;
}
.rr-carousel-nav:hover { background: rgba(255, 90, 31, 0.4); }
.rr-carousel-nav--prev { left: 0; }
.rr-carousel-nav--next { right: 0; }

/* ---- Lockup strip ---- */
.rr-lockup { background: var(--rr-cream); padding: 5rem 0; text-align: center; }
.rr-lockup__mark { max-width: 640px; width: 100%; height: auto; margin: 0 auto; display: block; }
.rr-lockup__tagline {
  margin-top: 1.5rem;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6B6A62;
  font-weight: 600;
}

/* ---- Platforms ---- */
.rr-platforms { background: var(--rr-ink-2); padding: 5rem 0; }
.rr-platforms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 3rem auto 0;
}
@media (max-width: 700px) { .rr-platforms__grid { grid-template-columns: 1fr; } }
.rr-platform {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}
.rr-platform__name { font-size: 1.1rem; font-weight: 700; color: #fff; margin: .5rem 0 .25rem; }
.rr-platform__desc { font-size: .85rem; color: rgba(255, 255, 255, 0.55); margin: 0; }
.rr-platform__icon svg { width: 40px; height: 40px; fill: var(--rr-brand); margin: 0 auto; }

/* ---- Notify CTA ---- */
.rr-notify { padding: 5rem 0; background: var(--rr-ink-3); }
.rr-notify__card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.12), rgba(255, 90, 31, 0.03));
  border: 1px solid rgba(255, 90, 31, 0.2);
  border-radius: 24px;
  padding: 3rem 2rem;
}
.rr-notify__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800; color: #fff; margin: 0 0 .75rem;
  letter-spacing: -.02em;
}
.rr-notify__desc { color: rgba(255, 255, 255, 0.65); margin: 0 0 2rem; }
.rr-notify__form {
  display: flex; gap: .5rem;
  max-width: 440px; margin: 0 auto;
  flex-wrap: wrap;
}
.rr-notify__form input {
  flex: 1 1 240px;
  padding: .9rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem; font-family: inherit;
}
.rr-notify__form input:focus {
  outline: none;
  border-color: var(--rr-brand);
  background: rgba(255, 255, 255, 0.08);
}
.rr-notify__form input::placeholder { color: rgba(255, 255, 255, 0.4); }
.rr-notify__form button {
  padding: .9rem 1.5rem;
  border-radius: 10px; border: none;
  background: var(--rr-brand); color: #fff;
  font-weight: 700; font-size: 1rem;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
  font-family: inherit;
}
.rr-notify__form button:hover { background: var(--rr-brand-hover); transform: translateY(-1px); }
.rr-notify__form button:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- Buttons (generic) ---- */
.rr-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.5rem;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.rr-btn--primary { background: var(--rr-brand); color: #fff; }
.rr-btn--primary:hover { background: var(--rr-brand-hover); transform: translateY(-1px); }
.rr-btn--ghost {
  background: transparent;
  color: var(--rr-prose-ink);
  border-color: var(--rr-prose-line);
}
.rr-btn--ghost:hover { background: var(--rr-cream-2); }

/* ---- Footer ---- */
.footer {
  padding: 4rem 0;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: #9e9eab;
}
.footer__inner {
  max-width: var(--rr-container);
  margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer__logo {
  font-weight: 700; font-size: 1rem;
  color: #6e6e7a; letter-spacing: -0.01em;
}
.footer__logo em { font-style: italic; font-weight: 500; color: var(--rr-brand); }
.footer__links {
  display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0;
  flex-wrap: wrap;
}
.footer__links a { font-size: 0.875rem; color: #6e6e7a; transition: color 0.3s ease; }
.footer__links a:hover { color: #fafafa; }
.footer__copy { font-size: 0.8125rem; color: #6e6e7a; }
@media (max-width: 768px) {
  .footer__inner { flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* =========================================================
   ROSTER RHYTHM — Prose / legal-page layout
   Cream background, dark ink — readable for long-form text.
   ========================================================= */

.rr-page--prose {
  background: var(--rr-prose-bg);
  color: var(--rr-prose-ink);
  min-height: 100vh;
}
.rr-page--prose .rr-prose-section {
  padding: calc(var(--rr-nav-h) + 4rem) 0 5rem;
}
.rr-page--prose .container--prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.rr-page--prose .rr-prose-head { margin: 0 0 3rem; }
.rr-page--prose .rr-prose-head .eyebrow {
  display: block;
  color: var(--rr-brand);
  margin-bottom: 0.75rem;
}
.rr-page--prose .rr-prose-head h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--rr-prose-ink);
  margin: 0;
}
.rr-page--prose .rr-prose-head h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--rr-brand);
}

.rr-prose {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--rr-prose-ink);
}
.rr-prose p { margin: 0 0 1.25rem; }
.rr-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 1rem;
  color: var(--rr-prose-ink);
}
.rr-prose h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: var(--rr-prose-ink);
}
.rr-prose ul, .rr-prose ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.rr-prose li { margin: 0 0 0.5rem; }
.rr-prose a {
  color: var(--rr-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
.rr-prose a:hover { color: var(--rr-brand-hover); }
.rr-prose code {
  font-family: var(--rr-font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: var(--rr-cream-2);
  border-radius: 4px;
}
.rr-prose kbd {
  font-family: var(--rr-font-mono);
  font-size: 0.85em;
  padding: 0.15em 0.45em;
  background: #fff;
  border: 1px solid var(--rr-prose-line);
  border-bottom-width: 2px;
  border-radius: 4px;
}
.rr-prose strong { font-weight: 700; }
.rr-prose em { font-style: italic; }

.rr-page--prose .footer { background: var(--rr-prose-bg); color: #6B6A62; border-top: 1px solid var(--rr-prose-line); }
.rr-page--prose .footer__logo { color: var(--rr-prose-ink); }
.rr-page--prose .footer__links a { color: #6B6A62; }
.rr-page--prose .footer__links a:hover { color: var(--rr-prose-ink); }
.rr-page--prose .footer__copy { color: #6B6A62; }

/* 404 page sits on cream background too, centered. */
.rr-page--prose .rr-prose-404 {
  text-align: center;
  padding: calc(var(--rr-nav-h) + 6rem) 0 6rem;
}
