:root {
  --background: #ffffff;
  --foreground: #182b40;
  --card: #ffffff;
  --primary: #1a8cf0;
  --primary-glow: #4facf7;
  --muted: #f0f3f6;
  --muted-foreground: #64748b;
  --border: #e3e9f1;
  --radius: 0.75rem;

  --gradient-primary: linear-gradient(135deg, #1a8cf0, #4facf7);
  --gradient-hero: linear-gradient(to bottom, #ffffff, #f2f6fa);

  --shadow-soft: 0 2px 8px -2px rgba(24, 43, 64, 0.08);
  --shadow-elevated: 0 4px 16px -4px rgba(24, 43, 64, 0.12);
  --shadow-cta: 0 8px 24px -8px rgba(26, 140, 240, 0.4);
  --shadow-glow: 0 0 32px rgba(79, 172, 247, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f172a;
    --foreground: #e2e8f0;
    --card: #1e293b;
    --primary: #4facf7;
    --primary-glow: #7cc4fa;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --border: #334155;

    --gradient-primary: linear-gradient(135deg, #4facf7, #7cc4fa);
    --gradient-hero: linear-gradient(to bottom, #0f172a, #1e293b);

    --shadow-soft: 0 2px 8px -2px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 4px 16px -4px rgba(0, 0, 0, 0.5);
    --shadow-cta: 0 8px 24px -8px rgba(79, 172, 247, 0.5);
    --shadow-glow: 0 0 32px rgba(124, 196, 250, 0.4);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--gradient-hero);
  color: var(--foreground);
  line-height: 1.5;
}

img, video {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container.narrow {
  max-width: 896px;
}

.center {
  text-align: center;
}

.section {
  padding: 4rem 0;
}

h1, h2, h3 {
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  h2 {
    font-size: 2.5rem;
  }
}

p {
  color: var(--muted-foreground);
}

.subtitle {
  color: var(--muted-foreground);
  margin: 0 auto 2rem;
  max-width: 640px;
}

.subtitle.wide {
  max-width: 768px;
  font-size: 1.125rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-cta {
  display: none;
}

.header-nav {
  display: none;
  gap: 2rem;
  margin-left: auto;
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--foreground);
}

.mobile-menu-toggle {
  margin-left: auto;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-center-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .header-cta {
    display: block;
  }
  .header-nav {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: #147bd8;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
}

.btn-cta {
  background: var(--gradient-primary);
  color: #fff;
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow-cta);
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.arrow-down,
.arrow-right {
  font-size: 1.1em;
}

/* Hero */
.hero {
  padding: 6.5rem 1rem 1.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 768px;
  margin: 0 auto;
}

.hero-logo {
  height: 8rem;
  width: auto;
  margin: 0 auto 2rem;
}

/* TODO: LENNY -- REMOVE THIS AFTER REAL DARK MODE LOGO HAS BEEN RECEIVED!!! */
@media (prefers-color-scheme: dark) {
  .hero-logo {
    filter: brightness(0) invert(1);
  }
}

.hero h1 {
  font-size: 1.875rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .hero-logo {
    height: 10rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 640px;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Affiliate Partners */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  /*background: var(--card);*/
  background: #ffffff; /* TODO: revert to var(--card) once all partner logos have proper light/dark variants */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-card:hover {
  box-shadow: var(--shadow-elevated);
  border-color: rgba(26, 140, 240, 0.5);
}

.partner-name {
  font-weight: 600;
  color: var(--foreground);
}

.partner-logo {
  max-height: 72px; /* was 40px */
  width: auto;
}

/* Separator */
.separator {
  max-width: 1152px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--border);
}

/* What is PayScope */
.what-is {
  padding: 2.5rem 0;
}

.what-is h2 {
  margin-bottom: 3rem;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .steps {
    gap: 4rem;
  }
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.step-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(26, 140, 240, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.step-title {
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.step-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Why we're different */
.why-different {
  background: rgba(26, 140, 240, 0.05);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card-wide {
    grid-column: span 2;
  }
}

.feature-card {
  display: flex;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-elevated);
  border-color: rgba(26, 140, 240, 0.5);
}

.feature-icon {
  flex-shrink: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  margin: 0;
}

/* Vision */
.vision {
  background: rgba(26, 140, 240, 0.05);
}

.vision-copy p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .vision-copy p {
    font-size: 1.25rem;
  }
}

/* Product preview */
.badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.preview-video {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  border: 2px solid rgba(26, 140, 240, 0.1);
}

/* Early access */
.early-access {
  background: var(--muted);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-copyright {
  font-weight: 600;
  color: var(--foreground);
}

@media (prefers-color-scheme: dark) {
  .site-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
  }
}
