/* ============================================
   ANOMALY SIGNAL CO.
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1440px) { html { font-size: 0.93vw; } }
@media (min-width: 1920px) { html { font-size: 0.83vw; } }

body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0d0d0d;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* Container */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (min-width: 768px) { .container { padding: 0 3rem; } }
@media (min-width: 1200px) { .container { padding: 0 4rem; } }

/* ── Preloader ── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-count {
  font-family: 'Inter Tight', sans-serif;
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
}

.preloader-bar {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.preloader-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.8);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .nav-inner { padding: 0 3rem; } }
@media (min-width: 1200px) { .nav-inner { padding: 0 4rem; } }

.nav-spacer {
  flex: 1;
}

.nav-links {
  display: none;
  gap: 2.5rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}
.nav-link:hover { color: #fff; }

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
@media (min-width: 768px) { .nav-burger { display: none; } }

.nav-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-burger.active span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.active { opacity: 1; pointer-events: all; }

.mobile-menu-inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; }

.mobile-menu-link {
  font-family: 'Inter Tight', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}
.mobile-menu-link:hover { color: #fff; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 8rem 3rem 4rem; } }
@media (min-width: 1200px) {
  .hero { padding: 8rem 4rem 0; max-width: 1400px; margin: 0 auto; width: 100%; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.95) 0%,
    rgba(13, 13, 13, 0.6) 30%,
    rgba(13, 13, 13, 0.1) 55%,
    rgba(13, 13, 13, 0.4) 80%,
    rgba(13, 13, 13, 1) 100%
  );
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  opacity: 0.5;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

/* Two-phase hero */
.hero-phrase--first {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-phrase--second {
  opacity: 0;
}

.hero-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.hero-line {
  display: block;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  opacity: 0;
  transform: translateY(30px);
}

.hero-sub {
  font-size: clamp(0.85rem, 1.3vw, 1.1rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.22em;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── Section Tag ── */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

/* ── About ── */
.about {
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
}

.about-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.6) 60%, rgba(13,13,13,0.3) 100%);
  z-index: 1;
}

.about-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.about > .container { position: relative; z-index: 2; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 200px 1fr; gap: 4rem; }
}

.about-paragraph {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}
.about-paragraph:last-child { margin-bottom: 0; }

.about-product {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

/* ── Ventures (shared) ── */
.ventures {
  padding: 6rem 0 4rem;
}

.ventures--sf {
  padding: 8rem 0 6rem;
}

.ventures-header { margin-bottom: 4rem; }

.ventures-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── Venture Block (used for both BioAlpha and SignalForce, equal sizing) ── */
.venture-block {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3rem;
}

.venture-block-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.venture-number {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

.venture-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.venture-block-image {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border-radius: 2px;
  position: relative;
}

.venture-block-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.4) 0%, transparent 40%);
}

.venture-block-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  opacity: 0.85;
}

.venture-block:hover .venture-block-img {
  transform: scale(1.02);
}

.venture-tagline {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
}

.venture-block-copy {
  max-width: 800px;
  margin-bottom: 2.5rem;
}

.venture-description {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.25rem;
}
.venture-description:last-child { margin-bottom: 0; }

/* ── Use Cases ── */
.venture-usecases {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .venture-usecases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .venture-usecase--primary { grid-column: 1 / -1; }
}

.venture-usecase {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  transition: border-color 0.3s ease;
}
.venture-usecase:hover { border-color: rgba(255, 255, 255, 0.18); }

.venture-usecase--primary {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.venture-usecase-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
}

.venture-usecase-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.venture-usecase-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
}
.venture-usecase-desc:last-child { margin-bottom: 0; }

.venture-usecase-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Service rows */
.venture-service {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
@media (min-width: 768px) {
  .venture-service { grid-template-columns: 160px 1fr; }
}

.venture-service-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.venture-service-desc {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

/* Stats */
.venture-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.venture-stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.venture-stat-value {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.venture-stat-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.4;
}

/* Scoreboard variant (6 stats) */
.venture-stats--scoreboard {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .venture-stats--scoreboard {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* ── Signal Monitor (visually distinct section) ── */
.signal-monitor {
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

/* Ticker */
.signal-ticker {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0;
  overflow: hidden;
  position: relative;
}

.signal-ticker::before,
.signal-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.signal-ticker::before { left: 0; background: linear-gradient(to right, #111111, transparent); }
.signal-ticker::after { right: 0; background: linear-gradient(to left, #111111, transparent); }

.signal-ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: tickerScroll 60s linear infinite;
}

.signal-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.signal-ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.signal-ticker-dot--insider { background: rgba(255, 120, 80, 0.7); }
.signal-ticker-dot--volume { background: rgba(80, 160, 255, 0.7); }
.signal-ticker-dot--dilution { background: rgba(255, 200, 60, 0.7); }
.signal-ticker-dot--informed { background: rgba(160, 80, 255, 0.7); }

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Signal body */
.signal-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 3rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}
@media (min-width: 768px) { .signal-body { padding: 3rem; } }
@media (min-width: 1024px) {
  .signal-body { grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4rem 3rem; }
}

.signal-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signal-grid-sub {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.5rem;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(39, 1fr);
  gap: 2px;
}

.signal-dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

.signal-dot--insider { background: rgba(255, 120, 80, 0.6); box-shadow: 0 0 6px rgba(255, 120, 80, 0.3); }
.signal-dot--volume { background: rgba(80, 160, 255, 0.6); box-shadow: 0 0 6px rgba(80, 160, 255, 0.3); }
.signal-dot--dilution { background: rgba(255, 200, 60, 0.6); box-shadow: 0 0 6px rgba(255, 200, 60, 0.3); }
.signal-dot--informed { background: rgba(160, 80, 255, 0.6); box-shadow: 0 0 6px rgba(160, 80, 255, 0.3); }

/* Time gaps */
.signal-gaps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.signal-gap {
  opacity: 0;
  transform: translateX(20px);
}

.signal-gap-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.signal-gap-type {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.signal-gap-ticker {
  font-family: 'Inter Tight', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.08em;
}

.signal-gap-bar {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.5rem 0;
}

.signal-gap-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.signal-gap-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.signal-gap-dot--detect {
  right: -4px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.signal-gap-dot--announce {
  right: -4px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.signal-gap-footer {
  display: flex;
  justify-content: space-between;
}

.signal-gap-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
}

.signal-gap-days {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Divider (diagonal) ── */
.divider {
  padding: 12rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.divider-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.divider-text {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(1.2rem, 2.8vw, 2.8rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  transform: rotate(-6deg);
  transform-origin: center center;
  text-align: center;
}

/* ── Footer ── */
.footer {
  padding: 6rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,13,0.6) 0%, rgba(13,13,13,0.35) 50%, rgba(13,13,13,0.7) 100%);
  z-index: 1;
}

.footer-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.footer > .container { position: relative; z-index: 2; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-left { display: flex; flex-direction: column; }

.footer-email {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  transition: opacity 0.3s ease;
  margin-top: 1rem;
}
.footer-email:hover { opacity: 0.6; }

.footer-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
@media (min-width: 768px) { .footer-right { justify-content: flex-end; } }

.footer-nav { display: flex; gap: 2rem; }

.footer-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}
.footer-link:hover { color: #fff; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ── Reveal animation ── */
.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
}
