:root {
  --red: #b4232c;
  --red-dark: #86141c;
  --red-soft: #f8e9e9;
  --ink: #171719;
  --muted: #66666d;
  --line: #d9d9dd;
  --paper: #ffffff;
  --paper-soft: #f5f5f6;
  --charcoal: #1d1d20;
  --font: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body, button, input, textarea, select { letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; border-bottom: 1px solid rgba(255,255,255,.22); color: #fff; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.site-header.is-scrolled { background: rgba(255,255,255,.97); border-color: var(--line); color: var(--ink); }
.header-inner { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; background: #fff; color: var(--red); font-size: 16px; font-weight: 800; }
.brand-name { font-size: 18px; font-weight: 750; }
.site-header.is-scrolled .brand-mark, .footer-brand .brand-mark { background: var(--red); color: #fff; }
.header-nav { display: flex; align-items: center; justify-content: center; gap: 32px; font-size: 13px; font-weight: 600; }
.header-nav a { opacity: .8; }
.header-nav a:hover { opacity: 1; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 16px; }
.header-login { font-size: 13px; font-weight: 600; }
.menu-toggle { display: none; width: 38px; height: 38px; padding: 9px; border: 1px solid currentColor; background: transparent; color: inherit; }
.menu-toggle span { display: block; height: 1px; margin: 4px 0; background: currentColor; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--red); background: var(--red); color: #fff; font-size: 13px; font-weight: 700; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button-small { min-height: 36px; padding: 0 15px; background: #fff; border-color: #fff; color: var(--red); }
.site-header.is-scrolled .button-small { background: var(--red); border-color: var(--red); color: #fff; }
.button-light { background: #fff; border-color: #fff; color: var(--red-dark); }
.button-light:hover { background: var(--paper-soft); border-color: var(--paper-soft); }
.button-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.button-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.hero { position: relative; min-height: 760px; overflow: hidden; background: var(--red); }
.hero-red-field { position: absolute; inset: 0; background: var(--red); }
.hero-red-field::after { content: ""; position: absolute; inset: 0; opacity: .16; background: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px); background-size: 72px 72px; }
.hero-inner { position: relative; z-index: 2; min-height: 760px; display: flex; align-items: center; justify-content: center; padding: 112px 0 56px; }
.hero-copy { width: min(920px, 100%); color: #fff; text-align: center; }
.eyebrow, .section-index { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.eyebrow { width: fit-content; display: flex; align-items: center; gap: 10px; margin: 0 auto 30px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.82); }
.eyebrow span { width: 7px; height: 7px; background: #fff; }
.hero h1 { margin: 0; font-size: clamp(50px, 7vw, 82px); line-height: .98; font-weight: 800; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: #fff; font-style: italic; font-weight: 700; }
.hero-lead { max-width: 620px; margin: 28px auto 0; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.hero-actions .button { gap: 22px; min-width: 184px; }
.hero-stats { width: min(620px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 32px auto 0; border: 1px solid rgba(255,255,255,.34); background: rgba(134,20,28,.2); }
.hero-stats div { min-height: 88px; display: grid; place-items: center; align-content: center; gap: 7px; border-right: 1px solid rgba(255,255,255,.25); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { font-size: 25px; font-style: italic; }
.hero-stats span { color: rgba(255,255,255,.68); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.hero-ticker { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.62); font-size: 10px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.hero-ticker i { width: 5px; height: 5px; flex: 0 0 auto; background: #fff; }

.tool-directory { padding: 110px 0 120px; background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; margin-bottom: 54px; }
.section-index { color: var(--red); }
.section-heading h2, .workflow h2, .access-band h2, .faq h2 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; font-weight: 700; }
.section-heading > div > p { margin: 14px 0 0; color: var(--muted); font-size: 16px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card { min-width: 0; min-height: 300px; display: flex; flex-direction: column; overflow: hidden; padding: 24px; border: 1px solid var(--line); background: #fff; transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
.tool-card:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; }
.tool-number { color: var(--red); font-size: 12px; font-weight: 700; }
.tool-card:hover .tool-number, .tool-card:hover .tool-type, .tool-card:hover p { color: rgba(255,255,255,.75); }
.tool-type { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.tool-image { width: 48px; height: 48px; margin: 24px 0 22px; object-fit: cover; filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; }
.tool-card:hover .tool-image { filter: grayscale(1) contrast(1.2) brightness(.78); mix-blend-mode: normal; opacity: 1; }
.tool-image-check { object-position: center; }
.tool-card h3 { margin: 0; font-size: 21px; font-weight: 700; }
.tool-card p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.tool-launch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; color: var(--red); font-size: 12px; font-weight: 700; }
.tool-card:hover .tool-launch { color: #fff; }

.workflow { padding: 108px 0 116px; background: var(--charcoal); color: #fff; }
.workflow-inner { display: block; }
.workflow-heading { grid-template-columns: 1fr; gap: 18px; margin: 0 auto 54px; max-width: 760px; text-align: center; }
.workflow-heading .section-index { color: #f27076; }
.workflow-heading h2 { margin: 0; }
.workflow-heading h2 em { color: #f27076; font-style: normal; }
.workflow-heading > div > p { color: #a9a9b0; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid rgba(255,255,255,.18); }
.workflow-step { min-height: 276px; display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border-right: 1px solid rgba(255,255,255,.18); }
.workflow-step:last-child { border-right: 0; }
.workflow-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(242,112,118,.6); color: #f27076; font-size: 13px; font-weight: 700; }
.workflow-step h3 { margin: 30px 0 0; font-size: 19px; }
.workflow-step p { margin: 12px 0 0; color: #a9a9b0; line-height: 1.65; }

.access-band { padding: 72px 0; background: var(--red); color: #fff; }
.access-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.access-band .section-index { color: rgba(255,255,255,.68); margin-bottom: 14px; }
.access-band h2 { font-size: clamp(32px, 4vw, 50px); }
.access-actions { display: flex; align-items: center; gap: 24px; flex: 0 0 auto; }
.access-actions .button { background: #fff; border-color: #fff; color: var(--red-dark); }
.text-link { font-size: 13px; font-weight: 700; }
.text-link span { margin-left: 8px; }

.faq { padding: 110px 0 120px; background: #fff; color: var(--ink); }
.faq-layout { display: grid; grid-template-columns: 320px 1fr; gap: 90px; }
.faq-heading h2 { margin-top: 22px; color: var(--ink); }
.faq-heading .section-index { color: var(--red); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { min-height: 84px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 24px; align-items: center; gap: 20px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-number { color: var(--red); font-size: 13px; font-weight: 700; }
.faq-item .faq-question { min-width: 0; }
.faq-item .faq-toggle { color: var(--red); font-size: 26px; font-weight: 400; line-height: 1; transition: transform .18s ease; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-item p { margin: -6px 44px 28px 68px; color: var(--muted); font-style: italic; line-height: 1.75; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.footer-inner > p { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.footer-links { justify-self: end; display: flex; gap: 22px; color: var(--muted); font-size: 12px; font-weight: 600; }

/* Content must remain available if the observer script is delayed or cached. */
.reveal { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-nav, .header-actions { display: none; }
  .menu-toggle { display: block; justify-self: end; }
  .site-header.menu-open { height: auto; background: #fff; color: var(--ink); border-color: var(--line); }
  .site-header.menu-open .header-inner { height: auto; min-height: 72px; }
  .site-header.menu-open .header-nav { grid-column: 1 / -1; display: flex; width: 100%; padding: 6px 0 20px; justify-content: flex-start; }
  .site-header.menu-open .brand-mark { background: var(--red); color: #fff; }
  .hero-copy { width: 100%; }
  .faq-layout { grid-template-columns: 1fr; gap: 54px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > p { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 32px, 1180px); }
  .hero, .hero-inner { min-height: 720px; }
  .hero-product { object-position: 61% top; opacity: .42; }
  .hero-red-field { width: 100%; clip-path: none; background: rgba(137,20,28,.92); }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: 48px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-stats div { min-height: 76px; }
  .hero-stats strong { font-size: 20px; }
  .hero-ticker { justify-content: flex-start; overflow: hidden; }
  .tool-directory, .faq { padding: 82px 0; }
  .tool-directory .section-heading { opacity: 1; transform: none; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 250px; }
  .workflow { padding: 82px 0; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-step { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .workflow-step:last-child { border-bottom: 0; }
  .access-inner { align-items: flex-start; flex-direction: column; }
  .access-actions { width: 100%; justify-content: space-between; }
  .faq-item summary { grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 12px; font-size: 15px; }
  .faq-item p { margin-left: 46px; margin-right: 28px; }
  .footer-inner { grid-template-columns: 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* RBTools public red-night theme. */
:root {
  --red: #e12b35;
  --red-dark: #a91722;
  --red-soft: #321014;
  --ink: #fff1f1;
  --muted: #b49a9f;
  --line: rgba(239, 112, 120, .26);
  --paper: #120305;
  --paper-soft: #160609;
  --charcoal: #17171b;
}

html,
body {
  background: #0d0204;
  color: var(--ink);
}

body {
  position: relative;
  font-family: "Inter", Arial, sans-serif;
}

.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.site-header {
  height: 72px;
  border-bottom-color: rgba(239, 112, 120, .28);
  background: rgba(13, 2, 4, .78);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  background: rgba(13, 2, 4, .96);
  border-bottom-color: rgba(239, 112, 120, .42);
  color: var(--ink);
}

.brand-mark,
.site-header.is-scrolled .brand-mark,
.footer-brand .brand-mark {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 24px rgba(225, 43, 53, .28);
}

.brand-name {
  color: var(--ink);
  font-weight: 800;
}

.header-nav a,
.header-login {
  color: var(--muted);
}

.header-nav a:hover,
.header-login:hover {
  color: #fff;
}

.hero {
  height: calc(100svh - 72px);
  min-height: 660px;
  background: #260608;
}

.hero-red-field {
  background:
    radial-gradient(circle at 50% 45%, rgba(225, 43, 53, .24), transparent 38%),
    linear-gradient(135deg, #210507, #0f0203 72%);
  animation: publicGlow 10s ease-in-out infinite alternate;
}

.hero-red-field::after {
  opacity: .2;
  background-size: 64px 64px;
  animation: gridDrift 18s linear infinite;
}

.hero-inner {
  min-height: calc(100svh - 72px);
  padding: 94px 0 44px;
}

.hero h1 {
  font-size: clamp(48px, 6.5vw, 86px);
}

.hero h1 em {
  color: #ffadb1;
}

.hero-lead,
.hero-stats span,
.hero-ticker {
  color: var(--muted);
}

.eyebrow {
  border-color: rgba(239, 112, 120, .38);
  background: rgba(225, 43, 53, .08);
}

.eyebrow span,
.hero-ticker i {
  background: #ff7e86;
  box-shadow: 0 0 14px rgba(255, 126, 134, .7);
}

.button {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 12px 30px rgba(225, 43, 53, .18);
}

.button:hover {
  border-color: #ff515a;
  background: #ff515a;
}

.button-light {
  border-color: #ffb8bb;
  background: #ffb8bb;
  color: #270608;
}

.button-light:hover {
  border-color: #fff0f0;
  background: #fff0f0;
}

.button-outline {
  border-color: rgba(255, 184, 187, .4);
  background: transparent;
  color: #ffdfe0;
}

.button-outline:hover {
  border-color: #ffb8bb;
  background: rgba(255, 184, 187, .08);
}

.hero-stats {
  border-color: rgba(239, 112, 120, .34);
  background: rgba(33, 5, 7, .58);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .24);
}

.hero-stats div {
  border-right-color: rgba(239, 112, 120, .24);
}

.hero-stats strong {
  color: #ff9da3;
}

.hero-ticker {
  border-top-color: rgba(239, 112, 120, .24);
}

.tool-directory,
.workflow,
.faq,
.site-footer {
  background: #0d0204;
  color: var(--ink);
}

.tool-directory,
.workflow,
.faq {
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.tool-directory {
  padding: 72px 0;
  background:
    linear-gradient(rgba(225, 43, 53, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 43, 53, .045) 1px, transparent 1px),
    #0d0204;
  background-size: 64px 64px;
  animation: gridDrift 24s linear infinite;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2,
.workflow h2,
.faq h2 {
  color: var(--ink);
}

.section-heading > div > p,
.workflow-heading > div > p {
  color: var(--muted);
}

.section-index,
.workflow-heading .section-index {
  color: #ff7e86;
}

.tool-grid {
  gap: 10px;
}

.tool-card {
  min-height: 226px;
  padding: 22px;
  border-color: var(--line);
  background: rgba(24, 5, 8, .86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
}

.tool-card:hover {
  border-color: var(--red);
  background: #a91722;
  box-shadow: 0 18px 42px rgba(225, 43, 53, .18);
}

.tool-number,
.tool-launch,
.tool-card:hover .tool-launch {
  color: #ff8d94;
}

.tool-card:hover .tool-number,
.tool-card:hover .tool-type,
.tool-card:hover p,
.tool-card:hover .tool-launch {
  color: rgba(255, 246, 246, .82);
}

.tool-type,
.tool-card p {
  color: var(--muted);
}

.tool-image {
  filter: grayscale(1) contrast(1.15) brightness(.8);
  mix-blend-mode: screen;
  opacity: .82;
}

.tool-card:hover .tool-image {
  filter: grayscale(1) contrast(1.2) brightness(1.45);
  mix-blend-mode: screen;
}

.workflow {
  padding: 72px 0;
  background: #17171b;
}

.workflow-grid {
  border-color: rgba(255, 184, 187, .24);
}

.workflow-step {
  min-height: 222px;
  padding: 28px;
  border-right-color: rgba(255, 184, 187, .24);
}

.workflow-icon {
  border-color: rgba(255, 126, 134, .72);
  color: #ff7e86;
}

.workflow-step p {
  color: #b7aeb1;
}

.faq {
  padding: 72px 0;
  background: #fff;
  color: #1b1416;
}

.faq-heading h2 {
  color: #1b1416;
}

.faq-heading .section-index,
.faq-item .faq-number,
.faq-item .faq-toggle {
  color: var(--red);
}

.faq-list {
  border-top-color: #31171a;
}

.faq-item {
  border-bottom-color: #e1d4d6;
}

.faq-item .faq-question {
  color: #21171a;
}

.faq-item p {
  color: #75666a;
}

.site-footer {
  min-height: 84px;
  padding: 26px 0;
  border-top-color: rgba(239, 112, 120, .26);
}

.footer-inner > p,
.footer-links {
  color: var(--muted);
}

@keyframes publicGlow {
  from { filter: saturate(.92) brightness(.9); }
  to { filter: saturate(1.1) brightness(1.08); }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 64px, -64px -64px; }
}

@media (max-width: 900px) {
  .tool-directory,
  .workflow,
  .faq {
    min-height: auto;
  }
}

/* JS enables entrance transitions; without JS the fallback above stays visible. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 680px) {
  .hero,
  .hero-inner {
    min-height: calc(100svh - 60px);
    height: auto;
  }

  .hero-inner {
    padding: 92px 0 42px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-ticker {
    justify-content: flex-start;
  }
}

/* Keep the entire landing page on one continuous canvas. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(225, 43, 53, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 43, 53, .055) 1px, transparent 1px),
    #0d0204;
  background-size: 64px 64px;
  animation: gridDrift 24s linear infinite;
}

.landing-main,
.site-footer {
  background: transparent;
}

.landing-main {
  position: relative;
  z-index: 2;
}

.tool-directory,
.workflow,
.faq {
  background: transparent;
}

.tool-directory {
  animation: none;
}

.workflow {
  background: rgba(23, 23, 27, .72);
}

.faq {
  min-height: auto;
  padding: 86px 0 96px;
  background: rgba(13, 2, 4, .74);
  color: var(--ink);
}

.faq-heading h2 {
  color: var(--ink);
}

.faq-item .faq-question {
  color: var(--ink);
}

.faq-item p {
  color: var(--muted);
}

.site-footer {
  position: relative;
  z-index: 2;
  background: rgba(13, 2, 4, .94);
}

@media (max-width: 900px) {
  .workflow {
    background: rgba(23, 23, 27, .72);
  }

  .faq {
    min-height: auto;
  }
}

/* One uniform background from hero through footer. */
html,
body {
  background: #160406;
}

body {
  background:
    linear-gradient(rgba(225, 43, 53, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 43, 53, .055) 1px, transparent 1px),
    #160406;
  background-size: 64px 64px;
  animation: gridDrift 24s linear infinite;
}

body::before {
  display: none;
}

.hero,
.hero-red-field,
.tool-directory,
.workflow,
.faq,
.site-footer {
  background: transparent;
}

.hero-red-field {
  animation: none;
}

.hero-red-field::after {
  display: none;
}

@media (max-width: 900px) {
  .workflow,
  .faq {
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .reveal-ready .reveal,
  .reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
}
