/* ============================================
   RxLoop — Investor-Grade Light Theme
   "Specimen Label" design system
   ============================================ */

:root {
  /* Core palette */
  --paper: #FAFAF7;
  --paper-raised: #FFFFFF;
  --ink: #0F1A17;
  --ink-soft: #3D4D48;
  --ink-mute: #5A6B65;

  --teal-deep: #0D7A6E;
  --teal-deeper: #075E54;
  --teal-pale: #E7F5F2;
  --teal-line: #BFE3DC;

  --emerald: #1F9D6B;
  --emerald-pale: #E8F6EE;

  --amber: #B6791A;
  --amber-pale: #FBF1DF;

  --line: #DDE5E2;
  --line-strong: #C2CDC9;

  --shadow-soft: 0 1px 2px rgba(15, 26, 23, 0.04), 0 8px 24px -8px rgba(15, 26, 23, 0.08);
  --shadow-raised: 0 4px 8px rgba(15, 26, 23, 0.05), 0 16px 40px -12px rgba(15, 26, 23, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============== Typography ============== */

.font-display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
}

.font-mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  letter-spacing: 0;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
}

.section-title {
  font-size: clamp(2.25rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

/* ============== Verification Strip (signature element) ============== */

.verify-strip {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}

.verify-strip__track {
  display: inline-flex;
  align-items: center;
  animation: ticker 32s linear infinite;
  will-change: transform;
}

.verify-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: #D8E8E3;
}

.verify-strip__item .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34D399;
  flex-shrink: 0;
}

.verify-strip__item b {
  color: #FFFFFF;
  font-weight: 600;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .verify-strip__track {
    animation: none;
  }
}

/* ============== Specimen Cards (replaces glass-card) ============== */

.specimen {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.specimen:hover {
  border-color: var(--teal-line);
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}

.specimen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: var(--line);
}

.specimen-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Stat readout numbers */
.readout {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
  color: var(--ink);
}

.readout-accent {
  color: var(--teal-deep);
}

/* ============== Buttons ============== */

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background: var(--teal-deeper);
  border-color: var(--teal-deeper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-raised);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-secondary:hover {
  background-color: var(--teal-pale);
  border-color: var(--teal-deep);
  color: var(--teal-deeper);
}

/* ============== Feature / Capability Cards ============== */

.capability-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  transition: all 0.3s cubic-bezier(0.23, 1.0, 0.32, 1);
}

.capability-card:hover {
  border-color: var(--teal-deep);
  box-shadow: var(--shadow-raised);
}

.capability-icon {
  background: var(--teal-pale);
  color: var(--teal-deep);
  transition: transform 0.3s cubic-bezier(0.23, 1.0, 0.32, 1);
}

.capability-card:hover .capability-icon {
  transform: scale(1.06);
}

/* ============== Forms ============== */

.input-clean {
  background-color: var(--paper-raised);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.input-clean:focus {
  outline: none;
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 3px var(--teal-pale);
}

.input-clean::placeholder {
  color: var(--ink-mute);
}

select.input-clean {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24' stroke='%236B7B76'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1em;
  padding-right: 2.75rem;
}

/* ============== Success / Modal animations ============== */

.success-state {
  animation: fadeInScale 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============== Scroll reveal ============== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== Nav ============== */

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--teal-deep);
}

/* ============== Footer ============== */

.footer-link {
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--teal-deep);
}

/* ============== Trust badges ============== */

.trust-tag {
  background: var(--emerald-pale);
  border: 1px solid var(--emerald);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ============== Divider ============== */

.hairline {
  height: 1px;
  background: var(--line);
}

/* ============== Full-viewport hero ============== */

.hero-full {
  min-height: calc(100vh - 80px); /* subtract sticky nav height */
  position: relative;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: bob 2.2s ease-in-out infinite;
  transition: background 0.2s ease;
}

.hero-scroll-cue:hover {
  background: rgba(255, 255, 255, 0.22);
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .hero-full {
    min-height: auto;
  }
  .hero-scroll-cue {
    display: none;
  }
}



.hero-photo {
  background-image:
    linear-gradient(125deg, rgba(15, 26, 23, 0.88) 0%, rgba(15, 26, 23, 0.74) 45%, rgba(13, 122, 110, 0.55) 100%),
    url('https://images.unsplash.com/photo-1693681866234-9a356241cc24?fm=jpg&q=80&w=2400&fit=crop');
  background-size: cover;
  background-position: center 35%;
}

.opportunity-photo {
  background-image:
    linear-gradient(180deg, rgba(15, 26, 23, 0.82) 0%, rgba(15, 26, 23, 0.7) 100%),
    url('https://images.unsplash.com/photo-1737113565802-0a68bc04fc37?fm=jpg&q=80&w=2400&fit=crop');
  background-size: cover;
  background-position: center;
}

/* ============== Photo treatment (warmed/graded to match palette) ============== */

.photo-graded {
  position: relative;
  overflow: hidden;
}

.photo-graded img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.18) saturate(1.05) hue-rotate(120deg) brightness(1.02) contrast(0.98);
}

.photo-graded::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13, 122, 110, 0.16) 0%, rgba(250, 250, 247, 0.08) 60%, rgba(15, 26, 23, 0.22) 100%);
  pointer-events: none;
}


.phone-mockup {
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-raised);
  position: relative;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--teal-deep), transparent);
  box-shadow: 0 0 10px var(--teal-line);
  animation: scan 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  z-index: 10;
}

@keyframes scan {
  0% { top: 18%; }
  45% { top: 82%; }
  55% { top: 82%; }
  100% { top: 18%; }
}

/* ============== Responsive ============== */

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .specimen, .capability-card {
    padding: 1.25rem;
  }
}

/* ============== Accessibility ============== */

:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
