/*
Theme Name: RavenSystems
Description: Custom theme for RavenSystems - A Gen-X, anti-agency, product + systems studio
Version: 1.0
Author: GitHub Copilot
*/

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* CSS Variables */
:root {
  --rs-bg: #050608;
  --rs-bg-elevated: rgba(5, 6, 8, 0.92);
  --rs-border: rgba(255, 255, 255, 0.06);
  --rs-text: #f5f5f5;
  --rs-text-muted: #9ca3af;
  --rs-accent: #00ff84; /* your neon green */
  --color-bg: #050608;
  --color-surface: #111217;
  --color-surface-alt: #14151E;
  --color-accent: #00FF9D;
  --color-accent-soft: #0FDCA3;
  --color-text: #F5F5F7;
  --color-muted: #9CA3AF;
  --color-border: #27272F;
  --color-link: #E5E7EB;
  --color-link-hover: #38BDF8;
  --color-danger: #FF4D4D;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.75rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  font-weight: 500;
}

h4 {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  font-weight: 500;
}

p {
  font-size: 1rem;
}

small {
  font-size: 0.8125rem;
}

/* Global link reset */
a {
  color: inherit;
  text-decoration: none;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4.5rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
}

/* ============================
   HEADER / NAV BAR
   ============================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #000;
    border-bottom: 1px solid rgba(0, 255, 170, 0.10);
}

/* inner flex container */
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 1rem;
    display: flex;
    align-items: center;
}

/* logo / title */
.site-branding {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #F1F3F5;
    position: relative;
    top: -1px;
    padding-bottom: 1px;
}

/* Logo link styling */
.site-title-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-title-link:hover .site-title,
.site-title-link:focus .site-title {
    color: #00ff9d;
}

/* push nav to the right */
.site-nav {
    margin-left: auto;
}

/* primary menu layout */
.site-nav .primary-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav .primary-menu > li > a {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.site-nav .primary-menu > li > a:hover,
.site-nav .primary-menu > li.current-menu-item > a {
    color: #00ff9d;
}

/* make sure header has a fixed height and doesn't create extra space */
.site-header,
.header-inner {
    min-height: 64px;
}

/* If WordPress admin bar is visible, offset the sticky header */
.admin-bar .site-header {
    top: 32px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Prevent header from covering anchor targets */
section[id] {
  scroll-margin-top: 80px;
}

/* ============================
   MOBILE NAVIGATION
   ============================ */

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
    display: none;
}

/* Show mobile toggle only on tablet/mobile */
@media (max-width: 820px) {
    /* Ensure header border is visible on mobile */
    .site-header {
        border-bottom: 1px solid rgba(0, 255, 170, 0.15);
    }

    /* Hide desktop nav on mobile */
    .desktop-nav {
        display: none;
    }

    /* Show hamburger button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-left: auto;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 10001;
        position: relative;
    }

    /* Hamburger lines */
    .hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        background: #F1F3F5;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Animate to X when menu is open */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile menu overlay (dark background) */
    .mobile-menu-overlay {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        height: calc(100% - 64px);
        background: rgba(0, 0, 0, 0.8);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 10000;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile menu slide-in panel */
    .mobile-menu {
        position: fixed;
        top: 64px;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: calc(100% - 64px);
        background: #0a0b0d;
        border-left: 1px solid rgba(0, 255, 170, 0.15);
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    }

    .mobile-menu-overlay.active .mobile-menu {
        transform: translateX(0);
    }

    /* Mobile menu list */
    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-list li {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .mobile-menu-list li:last-child {
        border-bottom: none;
    }

    /* Mobile menu links */
    .mobile-menu-link {
        display: block;
        padding: 1rem 0;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .mobile-menu-link:hover,
    .mobile-menu-link:focus {
        color: #00ff9d;
        padding-left: 8px;
    }

    /* Lock body scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }
}

/* Keep desktop nav visible on larger screens */
@media (min-width: 821px) {
    .mobile-menu-overlay {
        display: none;
    }
}

/* ============================
   HERO SPACING (REMOVE BIG BLACK BAND)
   ============================ */

/* Main content wrapper – remove unwanted top padding/margin */
.site-main,
.wp-site-blocks,
main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hero section specifically */
.hero-section {
    margin-top: 0 !important;
    padding-top: 40px !important;  /* small breathing room under header */
}

/* Global body margin reset just in case */
body {
    margin: 0;
    padding: 0;
}

/* Hero wrapper */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 3.5rem 0 4rem; /* slightly reduced top padding */
  background-color: #050608;
}

/* Hero inner grid */
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

/* Headline */
.hero h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1.02;
  margin: 1.125rem 0 1rem;
}

/* Subheadline paragraph */
.hero-subtitle {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  color: #AEB3BB;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

/* Mobile-only subtitle - hidden by default */
.hero-subtitle-mobile {
  display: none;
}

/* Bullets under the subheadline */
.hero-bullets {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

/* Mobile-only bullets - hidden by default */
.hero-bullets-mobile {
  display: none;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.hero-bullets li,
.hero-bullets-mobile li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  color: #D1D5DB;
  margin-bottom: 0.4rem;
}

.hero-bullets li::before,
.hero-bullets-mobile li::before {
  content: "➝";
  color: #00FF9D;
  font-size: 1rem;
  margin-top: 0.1rem;
}

/* Hero Media */
.hero-media {
  display: flex;
  justify-content: center;
  align-self: flex-start;
  margin-top: -20px;
}

.hero-media-frame {
  background: #111217;
  border-radius: 18px;
  border: 1px solid #27272F;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
}

/* Optional video inside the frame */
.hero-media-frame video {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 2px solid rgba(0, 255, 157, 0.7);
  object-fit: cover;
}

/* Hero actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Primary CTA */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.1rem;
  border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #00FF9D, #0FDCA3);
  color: #050608;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  transition: all 0.18s ease-out;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #2dffb6, #16f19b);
  box-shadow: 0 0 12px rgba(45, 255, 182, 0.45);
  transform: scale(1.02);
}

/* Secondary button */
.btn-secondary {
  background: transparent;
  color: #2dffb6;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(45, 255, 182, 0.5);
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.btn-secondary:hover {
  border-color: rgba(45, 255, 182, 0.9);
  box-shadow: 0 0 10px rgba(45, 255, 182, 0.35);
  transform: scale(1.02);
}

.btn-secondary:active {
  transform: scale(1);
}

/* Cards */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.card:hover {
  background-color: var(--color-surface-alt);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================
   HERO RESPONSIVE STYLES
   ============================ */

/* Tablet Layout (641px - 1024px) - Single Column with Background */
@media (max-width: 1024px) and (min-width: 641px) {

  .hero-section {
    padding-top: 20px !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
  }

  /* Hero background image - tablet */
  .hero {
    position: relative;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/NodeNetwork.png');
    background-repeat: no-repeat;
    background-position: right -6rem bottom -9rem;
    background-size: 60%;
    pointer-events: none;
    z-index: 0;
  }
  
  .hero-inner {
    position: relative;
    z-index: 1;
  }
  
  .rs-section {
    padding: 3rem 0;
  }
  
  .hero-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 2;
  }

  /* Hide video/media on tablet */
  .hero-media {
    display: none;
  }

  /* Text content */
  .hero-content {
    order: 1;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    line-height: 1.1;
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    text-align: left;
  }

  /* Hide desktop subtitle on tablet */
  .hero-subtitle {
    display: none;
  }

  /* Show mobile subtitle on tablet */
  .hero-subtitle-mobile {
    display: block;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1rem;
    color: #AEB3BB;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  /* Hide desktop 4-bullet list on tablet */
  .hero-bullets {
    display: none;
  }

  /* Show mobile 3-bullet list on tablet */
  .hero-bullets-mobile {
    display: block;
    margin-top: 0;
    margin-bottom: 2rem;
  }

  .hero-bullets-mobile li {
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
  }

  .hero-bullets-mobile li + li {
    margin-top: 0.65rem;
  }

  /* CTA button */
  .btn-primary {
    padding: 0.95rem 2.25rem;
    font-size: 0.95rem;
    box-shadow: 0 6px 18px rgba(0, 255, 170, 0.18);
  }
}

/* iPad Pro & Large Tablets (1024px - 1280px) */
@media (min-width: 1024px) and (max-width: 1280px) {
  .hero::before {
    background-position: right -6rem bottom -11.5rem;
  }
}

/* Mobile Layout (≤ 640px) */
@media (max-width: 640px) {
  .hero,
  .hero.rs-section {
    min-height: auto;
    padding: 0 0 3.5rem !important;
    position: relative;
    overflow: hidden;
  }

  /* Node network background - mobile only */
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/PhoneAiNodes.png');
    background-repeat: no-repeat;
    background-position: calc(50% + 12.3rem) calc(50% - 14.3rem);
    background-size: 105%;
    pointer-events: none;
    z-index: 0;
  }

  .hero-inner {
    position: relative;
    z-index: 1;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.25rem;
  }

  /* Stack media box first */
  .hero-media {
    order: -1;
    align-self: center;
    margin-top: 0;
    position: relative;
  }

  .hero-media-frame {
    max-width: 100%;
    width: 100%;
    aspect-ratio: auto;
    max-height: 300px;
    height: 300px;
    margin: 0 auto 1.5rem;
    position: relative;
  }
  
  /* Fade effect at bottom of hero image */
  .hero-media-frame::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #050608);
    border-radius: 0 0 18px 18px;
    pointer-events: none;
  }

  .hero-media-frame video {
    object-fit: cover;
    border: 1px solid rgba(0, 255, 157, 0.7) !important;
  }

  /* Hide hero video on mobile to save space */
  .hero-media-frame video {
    display: none;
  }

  /* Hide entire hero media container on mobile */
  .hero-media {
    display: none;
  }

  /* Hide desktop subtitle and bullets on mobile */
  .hero-subtitle {
    display: none;
  }

  .hero-bullets {
    display: none;
  }

  /* Show mobile-specific subtitle and bullets */
  .hero-subtitle-mobile {
    display: block;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.95rem;
    color: #AEB3BB;
    line-height: 1.45;
    margin-bottom: 18px;
    max-width: 100%;
    text-align: left;
    padding: 0;
    position: relative;
    z-index: 2;
  }

  .hero-bullets-mobile {
    display: block;
    margin-top: 18px;
    margin-bottom: 28px;
    position: relative;
    z-index: 3;
  }

  .hero-bullets-mobile li {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .hero-bullets-mobile li + li {
    margin-top: 0.6rem;
  }

  /* Content order after media */
  .hero-content {
    order: 1;
    position: relative;
    z-index: 2;
  }



  /* Heading block that contains SVG + title + subhead */
  .hero-heading {
    position: relative;
    margin-bottom: 20px;
  }

  /* Node SVG – pinned to top right of heading */
  .hero-node {
    position: absolute;
    top: -10px;
    right: -30px;
    width: 170px;
    height: auto;
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
  }

  .hero-node * {
    stroke: #18ffb2;
    stroke-width: 1.5;
  }

  .hero-node circle[fill="#050608"] {
    fill: #050608;
  }

  .hero-node circle[fill="#00FF9D"] {
    fill: #18ffb2;
  }

  /* Headline - left aligned on mobile */
  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.15;
    margin-top: 2rem;
    margin-bottom: 1rem;
    max-width: 100%;
    text-align: left;
    position: relative;
    z-index: 3;
  }

  /* CTA button */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 0;
  }

  .btn-primary {
    width: 100%;
    padding: 0.875rem 2rem;
    min-height: 50px;
    font-size: 1rem;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 255, 170, 0.18);
  }

  .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Section eyebrow labels (kickers) */
  .rs-kicker {
    display: block;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
  }

  /* Center-align all section headings on mobile */
  h1, h2, h3 {
    text-align: center;
  }

  /* Keep body text and supporting elements left-aligned */
  p, ul, ol, .hero-subtitle, .hero-bullets, .rs-section-lead {
    text-align: left;
  }

  .rs-section-lead {
    margin-top: 14px;
  }

  /* Consistent section spacing on mobile */
  .rs-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  /* Stack icon above title on mobile for app cards */
  .app-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .app-card-icon {
    margin-bottom: 0;
    margin-right: 0;
    width: 2rem !important;
    height: 2rem !important;
  }

  .rs-card-project .rs-card-title {
    text-align: left;
    margin-bottom: 1.25rem !important;
  }

  /* Add spacing above card paragraphs */
  .rs-card-text {
    margin-top: 10px !important;
  }

  .rs-metric-body {
    margin-top: 10px !important;
    margin-bottom: 1.45rem !important;
  }

  /* Consistent card title bottom margins */
  .rs-card-title {
    margin-bottom: 1.25rem !important;
  }

  .rs-how .rs-card-title {
    margin-bottom: 0.75rem !important;
  }

  /* Step card spacing */
  .step-header {
    margin-bottom: 8px !important;
  }

  /* For/Not For cards spacing */
  .rs-card-qualifier .rs-card-title {
    margin-bottom: 12px !important;
  }

  .rs-card-qualifier .rs-card-list-item {
    padding: 0.5rem 0;
    margin-bottom: 8px;
  }

  .rs-card-qualifier .rs-card-list-item:last-child {
    margin-bottom: 0;
  }

  .rs-card-qualifier .rs-card-list {
    margin-bottom: 0.5rem;
  }

  /* AI cards (LLMs & Agents) spacing */
  .rs-ai-card .rs-card-title {
    margin-bottom: 14px !important;
  }

  .rs-ai-card .rs-card-text {
    margin-bottom: 14px !important;
  }

  .rs-ai-card .rs-card-list-item {
    margin-bottom: 8px;
  }

  .rs-ai-card .rs-card-list-item:last-child {
    margin-bottom: 0;
  }

  /* Systems We Build cards spacing */
  .rs-card-project .app-card-icon {
    margin-bottom: 8px !important;
  }

  .rs-card-project .rs-card-title {
    margin-bottom: 14px !important;
  }
}

/* Larger phones (383px - 640px) */
@media (min-width: 383px) and (max-width: 640px) {
  .hero h1 {
    max-width: 80%;
  }

  .hero::before {
    background-position: calc(50% + 18.8rem) calc(50% - 14.3rem);
    background-size: 115%;
  }
}

/* Medium phones (383px - 431px) */
@media (min-width: 383px) and (max-width: 431px) {
  .hero::before {
    background-position: calc(50% + 12.8rem) calc(50% - 14.3rem);
    background-size: 120%;
  }
}

/* Larger medium phones (432px - 580px) */
@media (min-width: 432px) and (max-width: 580px) {
  .hero::before {
    background-position: calc(50% + 17.3rem) calc(50% - 14.3rem);
    background-size: 120%;
  }
}

/* Unified Card Style */
.rs-card {
  background: #111217;
  border-radius: 14px;
  border: 1px solid #27272F;
  padding: 1.75rem 1.75rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
}

.rs-card:hover {
  border-color: rgba(0, 255, 157, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.85);
  transform: translateY(-2px);
  transition: all 140ms ease-out;
}

/* Typography and Hierarchy */
.rs-section-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.rs-section-kicker {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8125rem; /* 13px */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.0625em; /* +1px */
  color: #3DFFB4; /* neon green */
  margin-bottom: 0.5rem; /* 8px */
}

.rs-section-body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  color: #AEB3BB;
  max-width: 40rem;
  margin: 0 auto;
}

/* Buttons */
.rs-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #00FF9D, #0FDCA3);
  color: #050608;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  transition: all 0.18s ease-out;
}

.rs-btn-primary:hover {
  background: linear-gradient(90deg, #2dffb6, #16f19b);
  box-shadow: 0 0 12px rgba(45, 255, 182, 0.45);
  transform: scale(1.02);
}

.rs-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid #27272F;
  background: rgba(17, 18, 23, 0.9);
  color: #D1D5DB;
  cursor: pointer;
  transition: border-color 130ms ease-out, background 130ms ease-out;
}

.rs-btn-ghost:hover {
  border-color: #00FF9D;
  background: rgba(15, 23, 42, 0.95);
}

/* Section Spacing */
.rs-section {
  padding: 4.5rem 0;
}

.hero {
  border-top: none;
}

@media (max-width: 820px) {
  .rs-section {
    padding: 3rem 1.5rem;
  }

  /* Hero has its own mobile padding */
  .hero.rs-section {
    padding: 2rem 1.5rem 3rem;
  }
}

/* Metric Cards */
.rs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

@media (max-width: 1024px) and (min-width: 641px) {
  .rs-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .rs-metrics-grid .rs-metric-card:nth-child(3) {
    grid-column: 1 / -1;
    padding-top: 2.25rem;
  }
}

@media (max-width: 640px) {
  .rs-metrics-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rs-metric-card {
  background: #111217;
  border-radius: 14px;
  border: 1px solid #27272F;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
}

.rs-metric-heading {
  margin: 0 0 0.6rem;
}

.rs-metric-number {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  color: #3DFFB4; /* neon green to match kickers */
  font-size: clamp(2.2rem, 3.2vw, 2.6rem);
  line-height: 1.05;
}

.rs-metric-label {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  color: #3DFFB4; /* neon green to match kickers */
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  text-transform: none;
}

.rs-metric-body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  color: #E5E7EB;
  line-height: 1.5;
  margin: 0 0 0.9rem;
}

.rs-metric-tag {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8rem;
  color: #6B7280;
  margin-top: auto;
}

/* Scroll Reveal Animations */
.rs-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.32s ease-out,
    transform 0.32s ease-out;
  will-change: opacity, transform;
}

.rs-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered transitions */
.rs-metrics-grid .rs-reveal:nth-child(1),
.rs-how-grid .rs-reveal:nth-child(1) {
  transition-delay: 0.00s;
}

.rs-metrics-grid .rs-reveal:nth-child(2),
.rs-how-grid .rs-reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.rs-metrics-grid .rs-reveal:nth-child(3),
.rs-how-grid .rs-reveal:nth-child(3) {
  transition-delay: 0.12s;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rs-reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* How Section */
.rs-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.rs-how {
  padding: 4.5rem 0;
}

.rs-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 1.6rem;
}

.rs-how-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 2.2rem 1.5rem;
}

.rs-how-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.step-header {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.03em;
  color: #00FFA8;
  margin: 0 0 0.25rem 0;
}

.rs-how-body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  color: #E5E7EB;
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: calc(100% - 10px);
}

.rs-how-footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

@media (max-width: 1024px) and (min-width: 641px) {
  .rs-how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .rs-how-grid .rs-how-card:nth-child(3) {
    grid-column: 1 / -1;
    padding-top: 2rem;
  }
}

@media (max-width: 768px) {
  .rs-how-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer */
.rs-footer,
footer {
  background: #060708; /* slightly darker than body */
  padding: 60px 0 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.rs-footer:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0,255,174,0) 0%,
    rgba(0,255,174,0.25) 50%,
    rgba(0,255,174,0) 100%
  );
}

.rs-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.rs-footer-kicker {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.rs-footer-text,
footer p,
footer small {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.6;
  text-transform: uppercase;
}

.rs-footer-text a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.rs-footer-text a:hover {
  color: #00f176;
}

.footer-social-icon {
  color: rgba(167, 167, 184, 0.88);
  margin-left: 1rem;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-social-icon:hover {
  color: #00FF9D;
}

.rs-footer-recaptcha {
  margin-top: 0;
  margin-bottom: 0;
}

/* Final CTA */
.rs-cta-final {
  background-color: #050608;
  padding: 4rem 0 4rem;
  margin-top: 4rem;
  margin-bottom: 120px;
  text-align: center;
}

.rs-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.rs-cta-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #F8FAFC;
  margin-bottom: 0.8rem;
}

.rs-cta-body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  color: #AEB3BB;
  line-height: 1.55;
  margin-bottom: 1.8rem;
}

.rs-footer-cta-btn {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Mobile styling for final CTA section */
@media (max-width: 640px) {
  .rs-cta-final {
    padding: 3rem 1.25rem;
    margin-top: 0;
    margin-bottom: 80px;
  }

  .rs-cta-final .rs-section-header {
    padding: 0;
  }

  .rs-footer-cta-btn {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 2rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 255, 170, 0.18);
  }
}

/* Partnership Application Form */
.partnership-application {
    padding: 2rem 0;
    background: var(--color-bg);
    color: var(--color-text);
}

.partnership-application .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.partnership-application h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.partnership-application > .container > p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-muted);
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.progress-indicator .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-indicator .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: calc(100% - 30px);
    height: 2px;
    background: var(--color-border);
    z-index: 1;
}

.progress-indicator .step.completed:not(:last-child)::after {
    background: var(--color-accent);
}

.progress-indicator .step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.progress-indicator .step.active .step-number {
    background: var(--color-accent);
    color: #020617;
}

.progress-indicator .step.completed .step-number {
    background: var(--color-accent);
    color: #020617;
}

.progress-indicator .step.completed .step-number::before {
    content: '✓';
    font-size: 16px;
}

.progress-indicator .step-label {
    font-size: 0.8rem;
    text-align: center;
    color: var(--color-muted);
}

.progress-indicator .step.active .step-label {
    color: var(--color-accent);
    font-weight: 500;
}

/* Form Steps */
.form-step {
    display: none !important;
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

.form-step.active {
    display: block !important;
}

/* Form Card (for review step) */
.form-card {
    background: var(--color-surface);
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Progress */
.form-progress {
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-accent);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--color-border);
    color: var(--color-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* New Progress Indicator */
.step-indicator-wrapper {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.75rem;
}

.step-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Remove pill button look */
.step-button {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.25rem 0.5rem !important;
    color: #9ca3af;
    font-size: 0.95rem;
    cursor: default;
}

/* Active step: bright white text */
.step-button.active {
    color: #ffffff !important;
    font-weight: 600;
}

/* Progress bar wrapper */
.step-progress-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #222;
    border-radius: 2px;
}

/* Active progress portion */
.step-progress-bar-fill {
    height: 100%;
    background: #00f176;
    border-radius: 2px;
    width: var(--progress-percent, 25%); /* dynamically controlled */
}

/* Form Navigation */
.form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

/* Left cluster: Cancel + Back */
.form-buttons .left-buttons {
    display: flex;
    gap: 1rem;
}

/* ----- BUTTON STYLES ----- */

/* Cancel = tertiary button */
.button-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    min-width: 96px;
    transition: all 0.18s ease-out;
}
.button-cancel:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.75);
}

/* Back = secondary button */
.button-back {
    background: transparent;
    border: 1px solid rgba(45, 255, 182, 0.45);
    color: #2dffb6;
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    min-width: 96px;
    transition: all 0.18s ease-out;
}
.button-back:hover {
    border-color: rgba(45, 255, 182, 0.9);
    box-shadow: 0 0 9px rgba(45, 255, 182, 0.35);
    transform: translateY(-1px);
}

/* Next = primary green CTA (same as Apply for Partnership) */
.button-next {
    background: linear-gradient(135deg, #00FF9D, #0FDCA3);
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    font-size: 1rem;
    transition: all 0.18s ease-out;
}
.button-next:hover {
    background: linear-gradient(90deg, #2dffb6, #16f19b);
    box-shadow: 0 0 12px rgba(45, 255, 182, 0.45);
    transform: scale(1.02);
}

/* Partnership Application Page Styles */
.page-title {
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 2.25rem;
    font-weight: 700;
}

.page-subtitle {
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.4;
    color: #9ca3af;
    font-size: 1.05rem;
}

.page-subtitle-mobile {
    display: none !important;
}

.page-subtitle-desktop {
    display: block !important;
}

.step-indicator-wrapper {
    margin-top: 1rem !important;
    margin-bottom: 2.25rem !important;
}

.form-section {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
}

.page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Partnership Application Page Spacing Adjustments */
.page-partnership-application .page-title {
    margin-top: 1.25rem !important;
    margin-bottom: 0.5rem !important;
}

.page-partnership-application .page-subtitle {
    margin-bottom: 1rem !important;
}

/* Step indicator: less space below */
.page-partnership-application .step-indicator-wrapper {
    margin-bottom: 0.75rem !important;
}

/* Form card: pull it up closer to the steps */
.page-partnership-application .form-section {
    margin-top: 0.75rem !important;
    padding-top: 1.75rem;
    padding-bottom: 2rem;
}

/* Additional tight spacing for Partnership page */
.header, .site-header {
    padding-bottom: 10px !important;
}

.page-partnership-application .page-title {
    margin-top: 10px !important;
    margin-bottom: 6px !important;
}

.page-partnership-application .page-subtitle {
    margin-bottom: 10px !important;
}

.page-partnership-application .step-indicator-wrapper {
    margin-top: 5px !important;
    margin-bottom: 12px !important;
}

/* Pull the form card up significantly */
.page-partnership-application .form-card,
.page-partnership-application .form-section {
    margin-top: 8px !important;
}

/* Reduce rs-section padding on partnership page */
#partnership-section {
    padding-top: 16px !important;
}

/* Pull the form card up using the section ID to win specificity */
#partnership-section .form-section {
    margin-top: -12px !important;
    padding-top: 12px !important;
    padding-bottom: 14px !important;
}

/* Tighten spacing inside the card */
#partnership-section .form-section h3 {
    margin-bottom: 8px !important;
}

#partnership-section .form-section .form-row {
    margin-bottom: 10px !important;
}

/* Optional: reduce space under the step indicator within this section */
#partnership-section .step-indicator-wrapper {
    margin-bottom: 1.75rem !important;
}

/* Form validation styles */
#partnership-section .field-error {
    border-color: #f87171 !important; /* soft red */
}

#partnership-section .field-error-message {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #f87171;
}

/* Form row layout */
.form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.form-row .form-group {
    flex: 1;
}

.form-row .form-group.full-width {
    flex: none;
    width: 100%;
}

.form-step h2 {
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.form-step h3 {
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1rem;
}

/* Prevent autofill from turning inputs white */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:focus,
.form-group select:-webkit-autofill,
.form-group select:-webkit-autofill:hover,
.form-group select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--color-bg) inset;
    -webkit-text-fill-color: var(--color-text);
    border: 1px solid var(--color-border);
    transition: background-color 5000s ease-in-out 0s;
}

/* Give dropdown arrows breathing room */
.form-group select {
    padding: 0.75rem 2.5rem 0.75rem 0.75rem; /* Right padding for custom arrow */
    appearance: none; /* Remove default browser arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-group label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.form-navigation button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

#prev-btn {
    background: var(--color-border);
    color: var(--color-text);
}

#prev-btn:hover {
    background: var(--color-surface-alt);
}

#next-btn,
#submit-btn {
    background: var(--color-accent);
    color: #020617;
    font-weight: 500;
}

#next-btn:hover,
#submit-btn:hover {
    filter: brightness(1.1);
}

/* Response Message */
#form-response {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

#form-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Directions */
.form-directions {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--color-surface-alt);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.form-directions h3 {
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.form-directions ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.form-directions li {
    margin-bottom: 0.5rem;
}

.form-directions p {
    font-weight: 500;
    color: var(--color-text);
}

/* Review Step Styling */
#review-summary {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 32px 28px;
}

#review-summary h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

#review-summary .review-intro {
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #9ca3af;
}

#review-summary .section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 12px;
    border-bottom: 1px solid #1f1f1f;
    padding-bottom: 6px;
}

#review-summary .review-field {
    margin-bottom: 14px;
}

#review-summary .review-label {
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 2px;
    display: block;
}

#review-summary .review-value {
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 8px;
}

/* Two-column grid layout */
#review-summary .review-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1.2fr);
    gap: 32px;
    align-items: flex-start;
}

#review-summary .review-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* New simplified layout */
#review-summary .review-sections {
    margin-bottom: 32px;
}

#review-summary .review-confirm {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #1f1f1f;
}

/* Captcha + Submit area */
#review-summary .review-recaptcha {
    margin-bottom: 16px;
}

/* Inline TOS checkbox + text */
#review-summary .tos-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.4;
}

#review-summary .tos-row a {
    color: #9ca3ff;
    text-decoration: underline;
}

/* Align buttons like other steps */
#partnership-application .form-buttons {
    margin-top: 18px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #review-summary .review-layout {
        grid-template-columns: 1fr;
    }
}

/* ----- REVIEW STEP FIX ----- */
#review-step {
    margin: 24px auto 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 40px 32px 60px !important;
    background: #111316 !important;
    border-radius: 12px;
}

/* Remove all margins from elements inside review step */
#review-step * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Remove padding from step4 (review step container) */
#step4 {
    padding: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* DO NOT override width for the review card */
#review-step,
#review-step .review-card {
    max-width: none;
    width: 100%;
}

/* Review content container */
#review-step .review-content {
    max-width: 720px;
}

/* Review inner wrapper for constrained text */
#review-step .review-inner {
    width: 100%;
    margin: 0;
}

/* Constrain text content within review-inner */
#review-step .review-inner h2,
#review-step .review-inner .review-intro {
    max-width: 720px;
}

/* Review sections span full width */
#review-step .review-inner .review-section {
    width: 100%;
}

/* Section divider */
#review-step .section-divider {
    opacity: 0.07;
    margin: 32px 0;
}

/* Headline */
#review-step h2 {
    font-size: 28px;
    margin-bottom: 24px;
}

/* Intro text */
#review-step .review-intro {
    margin-top: 8px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: #9ca3af;
}

/* Section headers */
#review-step .review-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 32px 0 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Section containers */
#review-step .review-section {
    margin-bottom: 12px;
}

#review-step .review-section:first-of-type {
    margin-top: 8px;
}

/* Label */
#review-step .review-label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 2px;
}

/* Value */
#review-step .review-value {
    font-size: 15px;
    color: #e5e7eb;
    margin-bottom: 14px;
}

/* Fix spacing between groups */
#review-step .review-field {
    margin-bottom: 20px;
    padding-left: 2px;
}

/* Recaptcha + terms */
#review-step .review-consent {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#review-step .review-consent label {
    font-size: 14px;
    color: #d1d5db;
}

#review-step .tos-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #d1d5db;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #review-step {
        padding: 20px 16px 28px;
        margin: 16px auto 0;
        max-width: none;
    }
}

/* Field Error Styling */
.field-error {
    border: 2px solid #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}

/* Select elements need special handling to not affect dropdown options */
select.field-error {
    border: 2px solid #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
    color: inherit !important; /* Ensure text color is preserved */
}

/* Ensure dropdown options maintain dark theme styling */
select.field-error option {
    background-color: #111316 !important; /* Match main background */
    color: #ffffff !important; /* White text for dark theme */
}

input[type="checkbox"].field-error {
    border: 2px solid #ef4444 !important;
    border-radius: 3px !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.field-error-message {
    color: #ef4444 !important;
    font-size: 0.875rem !important;
    margin-top: 4px !important;
    font-weight: 500 !important;
}

/* Special styling for terms checkbox error */
.tos-row.field-error-container {
    border: 1px solid #ef4444 !important;
    border-radius: 6px !important;
    padding: 12px !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.tos-row .field-error-message {
    margin-top: 8px !important;
    margin-left: 0 !important;
}

/* Force dropdown menus to open downward */
select {
    /* Ensure dropdown has space to open downward */
    margin-bottom: 0 !important;
}

/* Specific fix for Project Type dropdown */
#projectType {
    /* Force dropdown to open downward by ensuring proper positioning context */
    position: relative !important;
}

/* Ensure form containers don't clip dropdowns */
.form-step {
    overflow: visible !important;
}

.form-section {
    overflow: visible !important;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    margin: 0;
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.modal-body {
    padding: 1.5rem;
    color: var(--color-text);
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body ul:last-child {
    margin-bottom: 0;
}

.modal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.modal-body li:last-child {
    margin-bottom: 0;
}

/* Modal link styling */
.modal-trigger {
    color: #00ff9d;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.modal-trigger:hover {
    color: #0fdca3;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

/* ============================
   MOBILE FORM STYLES (≤640px)
   ============================ */

@media (max-width: 640px) {
    /* Mobile step counter - replaces horizontal labels */
    .mobile-step-counter {
        display: block;
        text-align: center;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .mobile-step-number {
        font-size: 0.875rem;
        font-weight: 600;
        color: #9ca3af;
        margin-bottom: 0.25rem;
        letter-spacing: 0.02em;
    }

    .mobile-step-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 0.75rem;
    }

    /* Progress indicator spacing before form card */
    .step-indicator-wrapper,
    #partnership-section .step-indicator-wrapper {
        margin-bottom: 1.25rem !important;
    }

    /* Hide desktop step labels on mobile */
    .desktop-step-labels {
        display: none !important;
    }

    /* Thicker progress bar for mobile */
    .step-progress-bar {
        height: 4px;
        background: #1a1a1a;
        margin-top: 0;
    }

    .step-progress-bar-fill {
        height: 4px;
    }

    /* Page title and subtitle adjustments */
    .page-title {
        font-size: 1.75rem !important;
        text-align: center;
        margin-top: 0.25rem !important;
        margin-bottom: 0.75rem !important;
    }

    .page-subtitle {
        font-size: 0.95rem !important;
        text-align: center;
        margin-bottom: 0 !important;
    }

    .page-subtitle-desktop {
        display: none !important;
    }

    .page-subtitle-mobile {
        display: block !important;
    }

    /* Form section padding */
    .form-section {
        padding: 2.5rem 1.25rem !important;
    }

    #partnership-section {
        padding-top: 1.25rem !important;
        padding-bottom: 2.5rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Form step cards */
    .form-step {
        padding: 2rem 1.5rem !important;
        border-radius: 12px;
        border-top: 1px solid rgba(0, 255, 191, 0.5);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    /* Hide step titles on mobile (step indicator shows them) */
    .form-step h3 {
        display: none;
    }

    /* Stack all form fields to single column */
    .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .form-group {
        width: 100% !important;
        margin-bottom: 1.5rem !important;
    }

    .form-group.full-width {
        width: 100% !important;
    }

    /* Larger touch-friendly inputs (48px min height) */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem 1rem !important;
        font-size: 1rem !important;
        min-height: 3rem;
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .form-group textarea {
        min-height: 120px !important;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* Mobile back link - subtle text button above form */
    .mobile-back-link {
        display: none; /* Hidden - Back button now in form controls */
    }

    .mobile-back-button {
        background: transparent;
        border: none;
        color: #9ca3af;
        font-size: 0.95rem;
        padding: 0.5rem 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: color 0.2s ease;
    }

    .mobile-back-button:hover {
        color: #e5e5e5;
    }

    .mobile-back-button i {
        font-size: 0.875rem;
    }

    /* Mobile button layout: Row 1 (Cancel/Back), Row 2 (Next) */
    .form-buttons {
        display: flex;
        flex-direction: column;
        margin-top: 1.5rem; /* 24px above secondary row */
        padding-bottom: 2rem; /* 32px between primary CTA and footer */
    }

    .form-buttons .left-buttons {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem; /* 16px between secondary row and primary CTA */
        order: 1;
    }

    /* Mobile secondary buttons - slightly wider for intentional feel */
    .form-buttons .button-cancel,
    .form-buttons .button-back {
        min-width: 110px;
        padding: 0.6rem 1.4rem;
        border-radius: 8px;
    }

    .button-next {
        width: 100% !important;
        order: 2;
    }

    /* Hide inline reCAPTCHA disclosure on mobile (footer only) */
    .recaptcha-disclosure {
        display: none;
    }

    /* Full-width Next/Submit button */
    .button-next {
        width: 100% !important;
        padding: 0.85rem 1rem !important;
        font-size: 1.0625rem !important;
        border-radius: 12px !important;
        margin-top: 0;
    }

    /* Review step mobile adjustments */
    .review-inner {
        padding: 0 !important;
    }

    .review-inner h2 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0.75rem;
    }

    .review-intro {
        text-align: center;
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .review-section {
        margin-bottom: 1.75rem;
        padding: 1.25rem;
        border-radius: 10px;
    }

    .review-section-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .review-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin-bottom: 1rem;
    }

    .review-label {
        font-size: 0.8125rem;
    }

    .review-value {
        font-size: 0.95rem;
    }

    .review-consent {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .tos-row {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    /* Success/Error messages */
    .message-container {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }

    .message-content h3 {
        font-size: 1.25rem;
    }

    .message-content p {
        font-size: 0.95rem;
    }

    .button-primary {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    /* Footer reCAPTCHA styling for mobile */
    .rs-footer-inner {
        padding: 2rem 1.25rem 1.5rem;
    }

    .rs-footer-kicker {
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
        letter-spacing: 0.1em;
    }

    .rs-footer-text {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.45);
        text-align: center;
        line-height: 1.6;
    }

    .rs-footer-text a {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: underline;
    }

    .rs-footer-text a:hover {
        color: #00f176;
    }
}

/* Show desktop buttons, hide mobile elements on larger screens */
@media (min-width: 641px) {
    .mobile-step-counter {
        display: none;
    }

    .mobile-back-link {
        display: none;
    }

    .desktop-step-labels {
        display: flex !important;
    }
}

/* ============================
   FORM MESSAGES (SUCCESS/ERROR)
   ============================ */

.message-container {
    display: none;
    margin: 2rem 0;
    border-radius: 12px;
    padding: 2rem;
    animation: slideIn 0.3s ease-out;
    border: 1px solid;
}

.message-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.message-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.message-container h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.message-container p {
    margin-bottom: 2rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.message-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Success Message */
.success-message {
    background: rgba(0, 255, 133, 0.05);
    border-color: rgba(0, 255, 133, 0.2);
}

.success-message .message-icon {
    color: #00ff84;
}

/* Error Message */
.error-message {
    background: rgba(255, 77, 77, 0.05);
    border-color: rgba(255, 77, 77, 0.2);
}

.error-message .message-icon {
    color: #ff4d4d;
}

/* Button Styles */
.button-primary,
.button-secondary,
.button-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.button-primary {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.button-primary:hover {
    background: var(--color-accent-soft);
    border-color: var(--color-accent-soft);
    transform: translateY(-1px);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border-color: var(--color-border);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
}

.button-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Mobile responsive for messages */
@media (max-width: 768px) {
    .message-container {
        margin: 1rem 0;
        padding: 1.5rem;
    }

    .message-actions {
        flex-direction: column;
        align-items: center;
    }

    .button-primary,
    .button-secondary,
    .button-outline {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* Google reCAPTCHA Badge Styling - Hidden (disclosure in form instead) */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* AI Section Styles */
.rs-ai-section {
    background-color: var(--color-bg);
}

.rs-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.rs-kicker {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #00ffae;
    margin-bottom: 8px;
}

/* Shared section header wrapper */
.rs-section-header {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* Section headline */
.rs-section-header .rs-section-title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* Optional lead paragraph */
.rs-section-header .rs-section-lead {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #b3bcc7;
  margin-top: 14px;
}

/* Card titles / h3s should stay left-aligned */
.rs-card h3,
.rs-card-title {
  text-align: left;
}

/* Mobile: intro text left-aligned for readability */
@media (max-width: 640px) {
  .rs-section-header {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    padding: 0 1.25rem;
  }
}

/* Hero stays left-aligned */
.hero .hero-content {
  text-align: left;
}

.rs-heading {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.rs-subtitle {
    font-size: 1.125rem;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.rs-card-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.rs-card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 1024px) and (min-width: 641px) {
    .rs-card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rs-ai-section .rs-ai-card:nth-child(3) {
        grid-column: 1 / -1;
        padding-top: 2.5rem;
    }
}

.rs-who-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Stack "Who It's For" cards on mobile */
@media (max-width: 640px) {
    .rs-who-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .rs-card-grid {
        gap: 1.75rem;
    }
}

.rs-ai-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.rs-ai-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.1);
}

.rs-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.rs-how .rs-card-title {
    margin-bottom: 1.75rem;
    margin-top: 0.25rem;
}

.rs-card-text {
    color: var(--color-muted);
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.rs-card-list {
    list-style: none;
    padding: 0;
}

.rs-card-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--color-text);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.rs-card-list-item:last-child {
    border-bottom: none;
}

.rs-card-list-icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

.rs-card-list-icon i {
    color: var(--color-accent);
    font-size: 0.875rem;
}

.rs-card-not-for .rs-card-list-icon i {
    color: #ff4d6a;
}

.rs-card-list-text {
    flex: 1;
    line-height: 1.5;
}

/* SYSTEMS WE BUILD SECTION */
.rs-projects-section {
  padding: 6rem 0 5rem;
}

.rs-projects-section .rs-section-header {
  max-width: 760px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

/* SYSTEMS WE BUILD – vertical cards without icons */

.rs-card-project {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.rs-card-project:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 157, 0.1);
}

/* App card header with icon + title */
.app-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.app-card-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.app-card-icon svg {
  width: 100%;
  height: 100%;
}

.rs-card-project:hover .app-card-icon {
  color: var(--color-accent);
}

/* text block stays stacked, left aligned */
.rs-card-project .rs-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.rs-card-project .rs-card-text {
  color: var(--color-muted);
  margin: 0;
}

/* Neon left accent for "Applications We Design and Build" cards */
.rs-projects-section .rs-card-project {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #1c1f25;
  background: #101216;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out;
}

/* Vertical neon strip on the left edge */
.rs-projects-section .rs-card-project::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, #00f5a0, #00e0ff);
  box-shadow: 0 0 16px rgba(0, 245, 160, 0.55);
  opacity: 0.9;
}

/* Slight lift + stronger glow on hover */
.rs-projects-section .rs-card-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 245, 160, 0.35);
}

.rs-projects-section .rs-card-project:hover::before {
  box-shadow: 0 0 22px rgba(0, 245, 160, 0.8);
}

/* Neon left accent for AI section cards */
.rs-ai-section .rs-ai-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #1c1f25;
  background: #101216;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out;
}

/* Vertical neon strip on the left edge */
.rs-ai-section .rs-ai-card::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, #00f5a0, #00e0ff);
  box-shadow: 0 0 16px rgba(0, 245, 160, 0.55);
  opacity: 0.9;
}

/* Slight lift + stronger glow on hover */
.rs-ai-section .rs-ai-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 245, 160, 0.35);
}

.rs-ai-section .rs-ai-card:hover::before {
  box-shadow: 0 0 22px rgba(0, 245, 160, 0.8);
}

/* Neon left accent for How It Works section cards */
.rs-how .rs-how-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #1c1f25;
  background: #101216;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out;
}

/* Vertical neon strip on the left edge */
.rs-how .rs-how-card::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, #00f5a0, #00e0ff);
  box-shadow: 0 0 16px rgba(0, 245, 160, 0.55);
  opacity: 0.9;
}

/* Slight lift + stronger glow on hover */
.rs-how .rs-how-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 245, 160, 0.35);
}

.rs-how .rs-how-card:hover::before {
  box-shadow: 0 0 22px rgba(0, 245, 160, 0.8);
}

/* Neon left accent for Impact section cards */
.proof .rs-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #1c1f25;
  background: #101216;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out;
}

/* Vertical neon strip on the left edge */
.proof .rs-card::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, #00f5a0, #00e0ff);
  box-shadow: 0 0 16px rgba(0, 245, 160, 0.55);
  opacity: 0.9;
}

/* Slight lift + stronger glow on hover */
.proof .rs-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 245, 160, 0.35);
}

.proof .rs-card:hover::before {
  box-shadow: 0 0 22px rgba(0, 245, 160, 0.8);
}

/* Neon left accent for Who This Is For section cards */
.who-for .rs-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #1c1f25;
  background: #101216;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out;
}

/* Vertical neon strip on the left edge */
.who-for .rs-card::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(180deg, #00f5a0, #00e0ff);
  box-shadow: 0 0 16px rgba(0, 245, 160, 0.55);
  opacity: 0.9;
}

/* Slight lift + stronger glow on hover */
.who-for .rs-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 245, 160, 0.35);
}

.who-for .rs-card:hover::before {
  box-shadow: 0 0 22px rgba(0, 245, 160, 0.8);
}

/* Adjust spacing for qualifier cards */
.who-for .rs-card-qualifier {
  margin-bottom: 0;
}

/* ===== CHAT AGENT STYLES ===== */

/* Larger chat launcher pill with neon outline */
.chat-launcher {
    position: fixed;
    right: 1.75rem;
    bottom: 1.75rem;
    z-index: 9999;
    
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    
    padding: 0.8rem 0.9rem;
    height: 52px;
    border-radius: 999px;
    border: 1.5px solid var(--color-accent);
    
    background: rgba(5, 6, 8, 0.9);
    color: var(--color-accent);
    box-shadow:
        0 0 14px rgba(0, 255, 136, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.7);
    
    cursor: pointer;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    
    transition:
        box-shadow 180ms ease,
        transform 180ms ease,
        padding-right 200ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

/* Larger Icon */
.chat-launcher__icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
}

.chat-launcher__icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.55));
}

/* Label collapsed by default */
.chat-launcher__label {
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transform: translateX(-5px);
    transition:
        max-width 200ms ease,
        opacity 200ms ease,
        transform 200ms ease;
}

/* Hover/focus: reveal label + enhance glow */
.chat-launcher:hover,
.chat-launcher:focus-visible {
    transform: translateY(-1px);
    background: rgba(5, 6, 8, 1);
    border-color: #00c96b;
    box-shadow:
        0 0 22px rgba(0, 255, 136, 0.65),
        0 0 0 1px rgba(0, 0, 0, 0.9);
    padding-right: 1.35rem;
}

/* Expanded label */
.chat-launcher:hover .chat-launcher__label,
.chat-launcher:focus-visible .chat-launcher__label {
    max-width: 240px;
    opacity: 1;
    transform: translateX(0);
}

/* Keyboard focus */
.chat-launcher:focus-visible {
    outline: 2px solid #00c96b;
    outline-offset: 3px;
}

/* Touch devices always show expanded state */
@media (hover: none) and (pointer: coarse) {
    .chat-launcher {
        padding-right: 1.35rem;
    }
    
    .chat-launcher__label {
        max-width: 240px;
        opacity: 1;
        transform: translateX(0);
    }
}

/* Agent Chat Container */
.agent-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 600px;
    background: var(--color-surface);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 255, 157, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
    transition: all 0.3s ease;
}

.agent-video {
    border-radius: 0 0 11px 11px;
}

.agent-container.active {
    display: flex;
}

/* Agent Header */
.agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(0, 255, 157, 0.1);
    border-bottom: 1px solid var(--color-border);
}

.agent-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--color-text);
    font-size: 0.9375rem;
    letter-spacing: 0.1em;
}

.agent-close {
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.agent-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00FF9D;
}

/* Agent Video Container */
.agent-video {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.agent-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.agent-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .chat-fab {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }

    .chat-fab svg {
        width: 24px;
        height: 24px;
    }
    
    .chat-launcher__label {
        max-width: 240px;
        opacity: 1;
        transform: translateX(0);
    }
    
    .chat-launcher {
        padding-right: 1.35rem;
    }

    .agent-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
        top: 80px;
        width: auto;
        height: auto;
        border-radius: 12px;
        max-height: calc(100vh - 96px);
    }
    
    .agent-header {
        padding: 0.875rem 1rem;
    }
    
    .agent-title {
        font-size: 0.875rem;
    }
}