/* RuckusX — shared styles, modeled on bringruckus.com
   Fonts: Prompt (stand-in for Metzler), Montserrat, Libre Baskerville (wordmark) */

:root {
  --black: #010101;
  --panel: #212127;
  --white: #ffffff;
  --pink: #f05098;
  --teal: #31baaa;
  --on-teal: #010101; /* bringruckus.com uses white here (2.4:1); near-black passes WCAG AA. Set to #fff to match exactly. */
  --lav: #aa94f8;
  --muted: rgba(255,255,255,0.88);
  --faint: rgba(255,255,255,0.7);
  --pink-text: #ff88be; /* lighter pink for small (12px) labels: 7:1 on the gray panels */
  --line: rgba(255,255,255,0.16);
  --font-head: 'Prompt', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-logo: 'Libre Baskerville', Georgia, serif;
}

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

html { background: var(--black); }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPE ─────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.12;
  color: var(--white);
}
.outline {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px var(--lav);
  font-weight: 300;
}
.text-link { color: var(--teal); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.opt { color: var(--faint); font-weight: 400; font-size: 14px; text-transform: none; letter-spacing: 0.02em; }

.label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-text);
  margin-bottom: 20px;
}
.label::before {
  content: '';
  width: 14px;
  height: 14px;
  background: url(/assets/star.svg) center / contain no-repeat;
}

.network h2, .pricing h2, .faq-header h2, .footer-cta h2,
.case-header h2, .hiw-header h2, .why-header h2 {
  font-size: clamp(28px, 4.4vw, 54px);
  margin-bottom: 20px;
}

/* ── NAV ──────────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  position: sticky;
  top: 0;
  background: rgba(1,1,1,0.92);
  backdrop-filter: blur(12px);
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--pink);
  text-decoration: none;
}
.logo .x { color: var(--teal); }
.nav-right { display: flex; gap: 24px; align-items: center; }
.nav-btn {
  background: var(--teal);
  color: var(--on-teal);
  padding: 13px 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-btn:hover { opacity: 0.8; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn, .submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--on-teal);
  padding: 22px 30px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  box-shadow: -8px -8px 0 var(--lav);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover, .submit-btn:hover { transform: translate(-4px, -4px); box-shadow: -4px -4px 0 var(--lav); }
.btn-white { background: var(--white); color: var(--black); }
.btn-row { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 44px; padding: 8px 0 0 8px; }
.submit-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ── HERO ─────────────────────────────────────────────── */
.hero { max-width: 1120px; margin: 0 auto; padding: 88px 48px 104px; }
.hero .burst { display: block; width: 84px; height: 84px; margin-bottom: 30px; }
.hero h1 { font-size: clamp(30px, 6vw, 82px); letter-spacing: 0.03em; margin-bottom: 28px; }
.hero h1 .h1-line { display: block; }
.hero h1 .outline { white-space: nowrap; }
/* Home hero: two fixed lines on tablet/desktop. Font scales so the longer line (~16em) fits the content width. */
@media (min-width: 721px) {
  .hero h1:has(.h1-line) { font-size: min(62px, calc((100vw - 96px) / 16.6)); }
}
.hero p { max-width: 640px; font-size: clamp(17px, 1.5vw, 20px); color: var(--white); }

/* ── COMPANY TICKER ───────────────────────────────────── */
.ticker-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.ticker-label {
  text-align: center;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 28px;
}
.ticker-viewport {
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}
.ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-list { display: flex; align-items: center; gap: 56px; padding: 0 28px; flex-shrink: 0; }
.ticker-logo { height: 22px; width: auto; opacity: 0.55; filter: grayscale(1) brightness(0) invert(1); flex-shrink: 0; transition: opacity 0.2s; }
.ticker-logo:hover { opacity: 0.9; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ── NETWORK ──────────────────────────────────────────── */
.network { text-align: center; padding: 100px 48px; background: var(--panel); }
.network-inner { max-width: 720px; margin: 0 auto; }
.network p { color: var(--muted); margin-bottom: 20px; }
.network p:last-of-type { margin-bottom: 44px; }

/* ── ROLES (typewriter) ───────────────────────────────── */
.roles { text-align: center; padding: 100px 48px; }
.roles-inner { max-width: 960px; margin: 0 auto; }
.roles-eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-text);
  margin-bottom: 28px;
}
.role-rotator {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 0.3em;
  font-family: var(--font-head);
  font-size: clamp(26px, 5.2vw, 62px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--white);
}
.rotator-line { display: inline-block; text-align: left; padding: 0 0.08em; border-bottom: 2px solid var(--teal); white-space: nowrap; }
.rotator-caret {
  display: inline-block;
  width: 2px;
  height: 0.8em;
  margin-left: 2px;
  background: var(--teal);
  vertical-align: -0.05em;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rotator-caret { animation: none; } }

/* ── CASE STUDY (home) ────────────────────────────────── */
.case { background: var(--panel); padding: 100px 48px; }
.case-inner { max-width: 900px; margin: 0 auto; }
.case-header { text-align: center; margin-bottom: 48px; }
.case-header p:not(.label) { max-width: 580px; margin: 0 auto; color: var(--muted); }
.who-row { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 36px 0; border-top: 1px solid var(--line); align-items: baseline; }
.who-row:last-child { border-bottom: 1px solid var(--line); }
.case .who-row:last-child { border-bottom: 0; }
.who-row h3 { font-size: 18px; letter-spacing: 0.08em; }
.who-row p { color: var(--muted); }

/* ── PRICING / START CTA ──────────────────────────────── */
.pricing { text-align: center; padding: 120px 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing h2 { max-width: 760px; margin: 0 auto 16px; }
.pricing p:not(.label) { color: var(--muted); margin-bottom: 44px; }

/* ── FAQ ──────────────────────────────────────────────── */
.faq { background: var(--panel); padding: 100px 48px; }
.faq-inner { max-width: 700px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 40px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; cursor: pointer; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; font-weight: 500; color: var(--white); }
.faq-chevron { color: var(--teal); font-size: 13px; flex-shrink: 0; transition: transform 0.25s; }
.faq-a { font-size: 15px; color: var(--muted); margin-top: 14px; line-height: 1.6; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ── FOOTER CTA ───────────────────────────────────────── */
.footer-cta { text-align: center; padding: 120px 48px; }
.footer-cta h2 { max-width: 720px; margin-left: auto; margin-right: auto; text-wrap: balance; }
.footer-cta p:not(.label) { color: var(--muted); margin-bottom: 44px; }

/* ── CXO PAGE ─────────────────────────────────────────── */
.how-it-works { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hiw-inner { max-width: 840px; margin: 0 auto; padding: 100px 48px; }
.hiw-header { text-align: center; }
.hiw-header p:not(.label), .why-header p:not(.label) { max-width: 520px; margin: 0 auto 40px; color: var(--muted); }
.hiw-item { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); align-items: start; }
.hiw-num {
  font-family: var(--font-head);
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px var(--lav);
}
.hiw-content h3 { font-size: 18px; letter-spacing: 0.08em; margin-bottom: 10px; }
.hiw-content p { color: var(--muted); max-width: 540px; }

.why { padding: 100px 48px; }
.why-inner { max-width: 940px; margin: 0 auto; }
.why-header { text-align: center; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why-card { background: var(--panel); padding: 48px 40px; }
.why-card h3 { font-size: 18px; letter-spacing: 0.08em; margin-bottom: 14px; }
.why-card p { color: var(--muted); font-size: 16px; }

/* ── FORM PAGES (hire / apply) ────────────────────────── */
.page { max-width: 700px; margin: 0 auto; padding: 96px 48px 120px; }
.page h1 { font-size: clamp(34px, 5.4vw, 62px); margin-bottom: 24px; }
.page-sub { color: var(--muted); margin-bottom: 64px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-group { margin-bottom: 40px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.form-group input, .form-group textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.55);
  border-radius: 0;
  padding: 10px 0;
  font-size: 15px;
  font-family: inherit;
  font-weight: 400;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.78); font-size: 15px; }
.form-group input:focus, .form-group textarea:focus { border-bottom-color: var(--teal); }
.form-group textarea { resize: none; height: 110px; line-height: 1.6; border: 1px solid rgba(255,255,255,0.45); padding: 12px 14px; }
.form-group textarea:focus { border-color: var(--teal); }

.form-question-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.form-question-subtitle { display: block; font-size: 14px; color: var(--faint); margin-bottom: 20px; }
.checkbox-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; }
.checkbox-list-item { display: flex; align-items: center; gap: 12px; }
.checkbox-list-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; flex-shrink: 0; }
.checkbox-list-item label { font-size: 15px; font-weight: 400; color: var(--white); cursor: pointer; user-select: none; }

.form-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 40px; border-top: 1px solid var(--line); }
.form-fine { font-size: 14px; color: var(--faint); margin: 0; }
.form-fine a { color: var(--faint); }

.success-msg { display: none; text-align: center; padding: 80px 0; }
.success-msg h3 { font-size: 32px; margin-bottom: 14px; }
.success-msg p { color: var(--muted); }

/* ── TEAM PAGE ────────────────────────────────────────── */
.team { max-width: 1120px; margin: 0 auto; padding: 0 48px 96px; }
.team-group { margin-top: 56px; }
.team-group:first-child { margin-top: 0; }
.team-group h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 28px; }
.team-group h2 img { width: 22px; height: 22px; flex-shrink: 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.member:hover, .member:focus-visible { border-color: var(--teal); background: var(--panel); }
.member img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--panel); }
.member-info { display: block; min-width: 0; }
.member strong { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.25; }
.member .role { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--lav); }
.member .in { width: 18px; height: 18px; margin-left: auto; flex-shrink: 0; fill: var(--faint); transition: fill 0.2s; }
.member:hover .in, .member:focus-visible .in { fill: var(--teal); }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .team { padding: 0 24px 72px; }
  .team-grid { grid-template-columns: 1fr; }
  .member img { width: 76px; height: 76px; }
}

/* ── FOOTER ───────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 72px 48px 40px; }
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .logo { display: inline-block; margin-bottom: 20px; }
.footer-brand p { font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.9); max-width: 340px; margin-bottom: 14px; }
.footer-brand .footer-email { font-size: 15px; font-weight: 500; color: #4fd3c3; text-decoration: none; }
.footer-brand .footer-email:hover { text-decoration: underline; }
.footer-parent { font-size: 14px !important; font-weight: 400 !important; color: rgba(255,255,255,0.82) !important; margin-bottom: 12px !important; }
.footer-parent a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-parent a:hover { color: var(--teal); }
.footer-nav { display: flex; justify-content: flex-end; gap: 56px; padding-top: 6px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 210px; }
.footer-col:first-child a { white-space: nowrap; }
.footer-col a .ext { color: var(--teal); white-space: nowrap; }
.footer-col a:hover .ext { text-decoration: underline; text-underline-offset: 3px; }
.footer-col-title { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pink-text); margin-bottom: 2px; }
.footer-nav a { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--teal); }
.footer-bottom { max-width: 960px; margin: 32px auto 0; font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.7); }
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 720px) {
  body { font-size: 16px; }
  nav { padding: 16px 20px; gap: 16px; }
  .logo { font-size: 26px; }
  .nav-btn { padding: 11px 14px; font-size: 11px; max-width: 168px; text-align: center; line-height: 1.35; }
  .hero { padding: 56px 24px 72px; }
  .hero .burst { width: 64px; height: 64px; }
  .btn, .submit-btn { padding: 20px 24px; font-size: 13px; }
  .btn-row { gap: 24px; }
  .network, .case, .faq { padding: 72px 24px; }
  .roles { padding: 64px 24px; }
  .pricing, .footer-cta { padding: 80px 24px; }
  .who-row { grid-template-columns: 1fr; gap: 12px; }
  .hiw-inner { padding: 72px 24px; }
  .hiw-item { grid-template-columns: 64px 1fr; gap: 16px; }
  .hiw-num { font-size: 48px; }
  .why { padding: 72px 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 36px 28px; }
  .page { padding: 56px 24px 96px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  footer { padding: 48px 24px 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { justify-content: flex-start; flex-wrap: wrap; gap: 36px; }
  .footer-bottom { margin-top: 24px; }
}
