/* ============================================================
   RunSignal – Block & Component Styles
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: #0B1220;
  color: #94A3B8;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

img { max-width: 100%; height: auto; }

/* --- Layout helpers --------------------------------------- */
.rs-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}

.rs-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

/* --- Badge ------------------------------------------------ */
.rs-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(24, 198, 200, .12);
  color: #18C6C8;
  border: 1px solid rgba(24, 198, 200, .3);
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  margin-bottom: 1.5rem;
}

/* --- Typography ------------------------------------------- */
.rs-hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #F8FAFC;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.rs-hero-headline span {
  color: #18C6C8;
}

.rs-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #94A3B8;
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.rs-section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.rs-section-sub {
  font-size: 1.1rem;
  color: #94A3B8;
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* --- Buttons ---------------------------------------------- */
.rs-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  padding: .75rem 1.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
  border: none;
}

.rs-btn:hover { transform: translateY(-1px); }

.rs-btn-primary {
  background: #18C6C8;
  color: #0B1220;
}
.rs-btn-primary:hover { background: #4ADE80; }

.rs-btn-secondary {
  background: transparent;
  color: #F8FAFC;
  border: 1px solid #1F2937;
}
.rs-btn-secondary:hover {
  border-color: #18C6C8;
  color: #18C6C8;
}

.rs-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.rs-btn-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  color: #94A3B8;
  border: 1px solid #1F2937;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  padding: .5rem 1.25rem;
  cursor: default;
  letter-spacing: .01em;
}

.rs-btn-coming-soon::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #18C6C8;
  opacity: .7;
}

/* Running logo icon */
.rs-logo-runner {
  flex-shrink: 0;
}

/* --- Header ----------------------------------------------- */
.rs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1F2937;
  padding-block: 1rem;
}

.rs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.rs-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: #F8FAFC;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}

.rs-logo img { height: 32px; width: auto; }

.rs-logo-teal { color: #18C6C8; }

.rs-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rs-nav a {
  color: #94A3B8;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.rs-nav a:hover { color: #F8FAFC; }

.rs-header-ctas {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.rs-btn-login {
  background: transparent;
  color: #94A3B8;
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.rs-btn-login:hover { color: #F8FAFC; border-color: #1F2937; }

.rs-btn-cta-sm {
  background: #18C6C8;
  color: #0B1220;
  font-size: .9rem;
  font-weight: 700;
  padding: .5rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s;
}
.rs-btn-cta-sm:hover { background: #4ADE80; }

/* Mobile nav toggle */
.rs-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #F8FAFC;
  cursor: pointer;
  padding: .25rem;
}

@media (max-width: 768px) {
  .rs-nav-toggle { display: block; }
  .rs-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111827;
    border-bottom: 1px solid #1F2937;
    padding: 1.5rem;
  }
  .rs-nav-wrap.open { display: block; }
  .rs-nav { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .rs-header-ctas { flex-direction: column; align-items: flex-start; }
}

/* --- Hero ------------------------------------------------- */
.rs-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 8rem);
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(24,198,200,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(74,222,128,.06) 0%, transparent 60%),
    #0B1220;
}

.rs-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .rs-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .rs-hero-sub, .rs-trust-note { margin-inline: auto; }
  .rs-btn-group { justify-content: center; }
}

.rs-trust-note {
  font-size: .85rem;
  color: #94A3B8;
  margin-top: .75rem;
}

/* Phone mockup */
.rs-phone-mockup {
  position: relative;
  max-width: 320px;
  margin-inline: auto;
}

.rs-phone-frame {
  background: #111827;
  border: 2px solid #1F2937;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(24,198,200,.15),
    0 40px 80px rgba(0,0,0,.6),
    0 0 60px rgba(24,198,200,.08);
}

.rs-phone-screen {
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  background: #0B1220;
}

.rs-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Placeholder app UI when no screenshot */
.rs-app-placeholder {
  width: 100%;
  height: 100%;
  background: #0B1220;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.rs-app-placeholder .rs-ph-bar {
  height: 8px;
  border-radius: 4px;
  background: #1F2937;
}
.rs-app-placeholder .rs-ph-bar.teal { background: rgba(24,198,200,.4); width: 60%; }
.rs-app-placeholder .rs-ph-card {
  background: #111827;
  border: 1px solid #1F2937;
  border-radius: 10px;
  padding: .75rem;
  flex: 1;
}
.rs-app-placeholder .rs-ph-metric {
  color: #4ADE80;
  font-size: .75rem;
  font-weight: 700;
}
.rs-app-placeholder .rs-ph-val {
  color: #F8FAFC;
  font-size: 1.5rem;
  font-weight: 800;
}

/* --- Integration Strip ------------------------------------ */
.rs-integrations {
  background: #111827;
  border-block: 1px solid #1F2937;
  padding-block: 3rem;
}

.rs-integrations-heading {
  text-align: center;
  color: #94A3B8;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.rs-integration-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.rs-integration-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #0B1220;
  border: 1px solid #1F2937;
  border-radius: 9999px;
  padding: .5rem 1.25rem;
  color: #94A3B8;
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .2s, color .2s;
}
.rs-integration-item:hover { border-color: #18C6C8; color: #F8FAFC; }

.rs-integration-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18C6C8;
  flex-shrink: 0;
}

/* --- Feature Cards ---------------------------------------- */
.rs-features { background: #0B1220; }

.rs-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.rs-feature-card {
  background: #111827;
  border: 1px solid #1F2937;
  border-radius: 16px;
  padding: 2rem;
  transition: border-color .2s, transform .2s;
}
.rs-feature-card:hover {
  border-color: rgba(24,198,200,.4);
  transform: translateY(-3px);
}

.rs-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(24,198,200,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.rs-feature-icon svg { width: 22px; height: 22px; color: #18C6C8; }

.rs-feature-title {
  color: #F8FAFC;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 .75rem;
}

.rs-feature-body {
  color: #94A3B8;
  font-size: .95rem;
  line-height: 1.7;
  margin: 0;
}

/* --- More Than Data --------------------------------------- */
.rs-more-than-data {
  background: linear-gradient(180deg, #0B1220 0%, #111827 50%, #0B1220 100%);
  text-align: center;
}

.rs-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 3.5rem;
  position: relative;
}

.rs-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1F2937 20%, #18C6C8 50%, #1F2937 80%, transparent);
}

.rs-step {
  position: relative;
  background: #111827;
  border: 1px solid #1F2937;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.rs-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(24,198,200,.15);
  border: 1px solid rgba(24,198,200,.4);
  color: #18C6C8;
  font-size: .8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.rs-step-title {
  color: #F8FAFC;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}

.rs-step-body {
  color: #94A3B8;
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Race Analysis Example -------------------------------- */
.rs-race-analysis { background: #111827; }

.rs-insight-card {
  background: #0B1220;
  border: 1px solid #1F2937;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  max-width: 760px;
  margin-inline: auto;
}

.rs-insight-race-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1F2937;
}

.rs-insight-race-name {
  color: #F8FAFC;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 .25rem;
}

.rs-insight-race-meta {
  color: #94A3B8;
  font-size: .85rem;
}

.rs-insight-stat {
  text-align: right;
}
.rs-insight-stat-val {
  color: #18C6C8;
  font-size: 1.75rem;
  font-weight: 800;
  display: block;
}
.rs-insight-stat-label {
  color: #94A3B8;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.rs-insight-findings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.rs-insight-finding {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: #94A3B8;
  line-height: 1.6;
}

.rs-insight-finding::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
  margin-top: .45rem;
}

/* --- CTA Banner ------------------------------------------- */
.rs-cta-banner {
  background:
    radial-gradient(ellipse 50% 80% at 50% 50%, rgba(24,198,200,.1) 0%, transparent 70%),
    #0B1220;
  text-align: center;
  border-top: 1px solid #1F2937;
}

.rs-cta-banner .rs-section-heading { font-size: clamp(2rem, 4vw, 3rem); }

/* --- Footer ----------------------------------------------- */
.rs-footer {
  background: #111827;
  border-top: 1px solid #1F2937;
  padding-block: 3rem;
  color: #94A3B8;
  font-size: .85rem;
}

.rs-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.rs-footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rs-footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: color .2s;
}
.rs-footer-links a:hover { color: #18C6C8; }

/* --- 404 -------------------------------------------------- */
.rs-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.rs-404-code {
  font-size: 7rem;
  font-weight: 800;
  color: rgba(24,198,200,.2);
  line-height: 1;
  display: block;
}

/* --- About Page ------------------------------------------- */
.rs-founder-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .rs-founder-layout {
    grid-template-columns: 1fr;
  }
}

.rs-founder-photo-wrap {
  position: sticky;
  top: 100px;
}

.rs-founder-photo-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #1F2937;
  aspect-ratio: 3/4;
  background: #0B1220;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(24,198,200,.1);
}

.rs-founder-photo-caption {
  margin-top: .75rem;
  padding: .75rem 1rem;
  background: #0B1220;
  border: 1px solid #1F2937;
  border-radius: 10px;
  line-height: 1.5;
}

.rs-prose p {
  color: #94A3B8;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 1.25rem;
}

.rs-prose p:last-child { margin-bottom: 0; }

.rs-blockquote {
  border-left: 3px solid #18C6C8;
  margin: 1.75rem 0;
  padding: .75rem 1.5rem;
  background: rgba(24,198,200,.05);
  border-radius: 0 8px 8px 0;
  color: #F8FAFC;
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.6;
}

/* --- Utilities -------------------------------------------- */
.rs-text-teal  { color: #18C6C8; }
.rs-text-green { color: #4ADE80; }
.rs-text-muted { color: #94A3B8; }
.rs-text-white { color: #F8FAFC; }
.rs-text-center { text-align: center; }
