/* River Leads — premium navy SaaS landing */

:root {
  --bg-deep: #0a0e14;
  --bg: #0f1419;
  --bg-mid: #121820;
  --bg-elevated: #161d28;
  --bg-card: rgba(36, 48, 64, 0.72);
  --glass-border: rgba(148, 163, 184, 0.18);
  --bg-card-solid: #1e2836;
  --border: rgba(148, 163, 184, 0.14);
  --border-hover: rgba(96, 165, 250, 0.38);
  --text: #f1f5f9;
  --text-muted: #d8e0ea;
  --text-dim: #a8b4c4;
  --blue: #3b82f6;
  --blue-soft: #60a5fa;
  --purple: #8b5cf6;
  --purple-soft: #a78bfa;
  --accent-soft: rgba(59, 130, 246, 0.1);
  --accent-soft-purple: rgba(139, 92, 246, 0.08);
  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #6366f1 52%, #8b5cf6 100%);
  --gradient-text: linear-gradient(135deg, #f8fafc 0%, #93c5fd 48%, #c4b5fd 100%);
  --gradient-glow: radial-gradient(ellipse 75% 55% at 50% -18%, rgba(59, 130, 246, 0.2), transparent 58%);
  --gradient-glow-purple: radial-gradient(ellipse 45% 35% at 85% 15%, rgba(139, 92, 246, 0.14), transparent 55%);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 4px 24px rgba(59, 130, 246, 0.28), 0 0 0 1px rgba(96, 165, 250, 0.2);
  --shadow-card-hover: 0 20px 50px rgba(0, 0, 0, 0.28), 0 0 40px rgba(59, 130, 246, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 35%, var(--bg-mid) 100%);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient-accent);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--blue-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s, background 0.28s, border-color 0.28s, filter 0.28s;
}

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

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.25);
  filter: brightness(1.06);
}

.btn-secondary {
  background: rgba(30, 40, 54, 0.4);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 5.5rem) 0 7rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.hero-glow-accent {
  background: var(--gradient-glow-purple);
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-soft);
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-purple));
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 999px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-inline: auto;
}

.hero-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 44rem;
  margin-inline: auto;
  line-height: 1.75;
}

.hero-positioning {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.6;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
  padding: 0 0.5rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--blue-soft);
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin-top: 4rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 40rem;
  margin-inline: auto;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 48px rgba(59, 130, 246, 0.06);
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Sections */
.section {
  padding: 7.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-soft);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-header p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 40rem;
  margin-inline: auto;
}

/* Workflow */
.workflow {
  background: linear-gradient(180deg, rgba(22, 29, 40, 0.6) 0%, rgba(15, 20, 25, 0.3) 100%);
  border-block: 1px solid var(--border);
}

.flow {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.65rem;
}

.flow-scroll {
  overflow-x: auto;
  padding-bottom: 1rem;
  margin: 0 -0.5rem;
  padding-inline: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.35) transparent;
}

.flow-scroll::-webkit-scrollbar {
  height: 6px;
}

.flow-scroll::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.35);
  border-radius: 999px;
}

.flow-step {
  flex: 0 0 168px;
  max-width: 168px;
  padding: 1.6rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.flow-step:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.flow-step-highlight {
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.12) 0%, var(--bg-card) 55%);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.08);
}

.flow-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-purple));
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius-sm);
  color: var(--blue-soft);
}

.flow-icon svg {
  width: 22px;
  height: 22px;
}

.flow-step h3 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
}

.flow-step p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--blue);
  opacity: 0.55;
  flex: 0 0 auto;
}

.flow-arrow svg {
  width: 20px;
  height: 20px;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.benefit-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-purple));
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: var(--radius-sm);
  color: var(--blue-soft);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.benefit-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Demo */
.demo-player {
  max-width: 880px;
  margin-inline: auto;
}

.demo-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #1a2332 0%, #121820 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
}

.demo-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.12), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.08), transparent 45%);
}

.demo-play {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  box-shadow: var(--shadow-glow);
}

.demo-play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.demo-play:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.45);
}

.demo-label {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.demo-hint {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 0.35rem 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  font-family: ui-monospace, monospace;
}

/* Industries */
.industries {
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.3) 0%, rgba(22, 29, 40, 0.5) 100%);
  border-block: 1px solid var(--border);
}

.industries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.industry-pill {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.industry-pill:hover {
  background: var(--accent-soft);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.industry-pill-wide {
  flex: 1 1 100%;
  text-align: center;
  max-width: 320px;
}

.industries-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1rem;
}

.contact-copy > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.contact-form {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 56px rgba(59, 130, 246, 0.05);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

.contact-form.success .form-note {
  color: #86efac;
}

/* Final CTA */
.final-cta {
  padding: 6rem 0 7.5rem;
}

.final-cta-inner {
  text-align: center;
  padding: 4.5rem 2rem;
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.1) 0%, var(--bg-card) 42%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.final-cta-inner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.15), transparent 60%);
  pointer-events: none;
}

.final-cta-inner h2 {
  position: relative;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin: 0 auto 1rem;
  line-height: 1.2;
}

.final-cta-inner p {
  position: relative;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-inline: auto;
}

.final-cta-inner .btn {
  position: relative;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

.benefits-grid .benefit-card:nth-child(1) { transition-delay: 0s; }
.benefits-grid .benefit-card:nth-child(2) { transition-delay: 0.08s; }
.benefits-grid .benefit-card:nth-child(3) { transition-delay: 0.16s; }
.benefits-grid .benefit-card:nth-child(4) { transition-delay: 0.24s; }

/* Mobile */
@media (max-width: 900px) {
  .flow {
    flex-direction: column;
    align-items: center;
  }

  .flow-step {
    max-width: 100%;
    width: 100%;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a:not(.btn) {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .btn {
    margin-top: 0.75rem;
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.25rem;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
  }

  .section {
    padding: 5rem 0;
  }

  .final-cta {
    padding: 4rem 0 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
