/* ============================================
   EPHRAIM SOLUTIONS - BAIN-INSPIRED DESIGN
   Clean, editorial, professional
   ============================================ */

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

:root {
  /* Colors - Brand */
  --red: #6E61FE;      /* Digital Violet */
  --red-dark: #5B4FD9; /* Darker violet for hover */
  --black: #1a1a1a;
  --gray-900: #2d2d2d;
  --gray-700: #555555;
  --gray-500: #888888;
  --gray-300: #cccccc;
  --gray-100: #f5f5f5;
  --white: #ffffff;

  /* Typography */
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --container: 1200px;
  --section-padding: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--black);
  line-height: 1.2;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(24px, 3vw, 32px);
}

h4 {
  font-size: 22px;
}

p {
  margin-bottom: 1.5em;
}

p:last-child {
  margin-bottom: 0;
}

.footer__heading {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.hero .eyebrow {
  font-size: 15px;
  letter-spacing: 0.2em;
}

.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--gray-700);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section {
  padding: var(--section-padding) 0;
}

.section--gray {
  background: var(--gray-100);
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

/* Grid */
.grid {
  display: grid;
  gap: 48px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--red);
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.footer .logo img {
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s ease;
}

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

.nav__cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 12px 24px;
  font-weight: 600 !important;
  transition: background 0.2s ease;
}

.nav__cta:hover {
  background: var(--red-dark);
  color: var(--white) !important;
}

.nav__highlight {
  position: relative;
  color: var(--red-dark) !important;
  font-weight: 600 !important;
}

.new-page {
  position: relative;
}

.new-page::after {
  content: 'NEW';
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: -12px;
  right: -28px;
  background: var(--red);
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-align: center;
  height: 17.6px;
  width: 32px;
  line-height: 1;
}

/* Nav Dropdown */
.nav__dropdown {
  position: relative;
}
.nav__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav__dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}
.nav__dropdown:hover .nav__dropdown-trigger svg {
  transform: rotate(180deg);
}
.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  margin-top: 12px;
  z-index: 100;
}
.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.nav__dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--gray-700);
  transition: all 0.15s ease;
}
.nav__dropdown-menu a:hover {
  background: var(--gray-100);
  color: var(--red);
}
.nav__dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 8px 0;
}
.nav__dropdown-label {
  display: block;
  padding: 8px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  text-transform: uppercase;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger to X animation */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 950px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--white);
    padding: 80px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    align-items: stretch;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 17px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
    text-align: left;
    display: block;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav__highlight {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .new-page::after {
    top: 22px;
    right: 100px;
  }

  .nav__cta {
    margin-top: 32px;
    text-align: center !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 8px;
    border-bottom: none !important;
    font-size: 16px;
    width: 100%;
  }

  .nav-toggle {
    display: block;
  }

  .nav__dropdown {
    border-bottom: 1px solid var(--gray-100);
  }

  .nav__dropdown-trigger {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    border-bottom: none !important;
  }

  .nav__dropdown-trigger svg {
    display: block;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }

  .nav__dropdown.open .nav__dropdown-trigger svg {
    transform: rotate(180deg);
  }

  .nav__dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    margin: 0 0 16px 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    min-width: auto;
    background: var(--gray-100);
    border-radius: 8px;
    display: none;
  }

  .nav__dropdown.open .nav__dropdown-menu {
    display: block;
  }

  .nav__dropdown-menu a {
    padding: 12px 16px;
    font-size: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav__dropdown-menu a:last-child {
    border-bottom: none;
  }

  .nav__dropdown-label {
    padding: 8px 16px 4px;
  }

  .nav__dropdown-divider {
    margin: 0;
  }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(180deg, #0a0a12 0%, #12121a 50%, #0a0a12 100%);
  color: var(--white);
  overflow: hidden;
}

.hero--light {
  background: var(--white);
  color: var(--black);
}

.hero--light h1 {
  color: var(--black);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .5;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 80px 0;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero--light .hero h1 {
  color: var(--black);
}

.hero .lead {
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}

.hero--light .lead {
  color: var(--gray-700);
}

.hero .eyebrow {
  margin-bottom: 16px;
  color: var(--white);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-dark);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn--outline-dark {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}

.btn--outline-dark:hover {
  background: var(--black);
  color: var(--white);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  padding: 32px 0;
  border-top: 1px solid var(--gray-300);
}

.card__eyebrow {
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 16px;
}

.card p {
  color: var(--gray-700);
}

/* Feature Card with Icon */
.feature {
  padding: 40px;
  border: 1px solid var(--gray-300);
  transition: border-color 0.3s ease;
}

.feature:hover {
  border-color: var(--red);
}

.feature__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--red);
}

.feature h4 {
  margin-bottom: 12px;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.split__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split--reverse {
    direction: ltr;
  }
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

/* Divider */
.divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 24px 0;
}

.divider--center {
  margin: 24px auto;
}

/* ============================================
   LIST STYLES
   ============================================ */

.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 50%;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
  text-align: center;
  padding: 100px 0;
}

.cta h2 {
  margin-bottom: 24px;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer__brand {
  max-width: 320px;
}

.footer__brand .logo {
  color: var(--white);
  margin-bottom: 20px;
}

.footer__brand p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}

.footer h5 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .footer__links li, .footer__heading {
    text-align: center;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__brand {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__brand p {
    text-align: center;
  }
}

/* ============================================
   CONTACT FORM
   ============================================ */

.form__group {
  margin-bottom: 24px;
}

.form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  transition: border-color 0.2s;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--black);
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray-500); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

/* ============================================
   FOCUS GRID - Table-like Layout
   ============================================ */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0; /* No gap - cells share borders like a table */
}

.focus-cell {
  padding: 48px;
  border: 1px solid var(--gray-300);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px; /* Ensures consistent cell heights */
  transition: all 0.3s ease;
  border-right: none;
}

/* Remove outer borders to create table effect */
/* Remove left border on left column (odd cells in 2-column grid) */
.focus-cell:nth-child(odd) {
  border-left: none;
}


/* Remove top border on last row (cells 3 and 4) */
.focus-cell:nth-child(3),
.focus-cell:nth-child(4) {
  border-top: none;
}

/* Cell Header - Number inline with title */
.focus-cell__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.focus-cell__number {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
}

.focus-cell__header h3 {
  font-size: 24px;
  margin: 0;
  line-height: 1.3;
}

.focus-cell__content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0;
}

/* Bottom CTA Section */
.focus-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 40px 0;
}

.focus-cta__content {
  flex: 1;
  max-width: 600px;
}

.focus-cta__content h3 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--black);
  line-height: 1.3;
}

.focus-cta__content p {
  font-size: 16px;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.6;
}

.focus-cta__action {
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {

  .btn {
    width: 100%;
    justify-content: center;
  }

  .focus-grid {
    grid-template-columns: 1fr; 
  }

  .focus-cell {
    padding: 32px;
    min-height: auto;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--gray-300);
    border-bottom: none;
  }

  .focus-cell:first-child {
    border-top: none;
  }

  /* Add top border back in for cells 3 and 4 */
.focus-cell:nth-child(3),
.focus-cell:nth-child(4) {
  border-top: 1px solid var(--gray-300);
}


  .focus-cell__number {
    font-size: 24px;
  }

  .focus-cell__header {
    gap: 12px;
  }

  .focus-cell__header h3 {
    font-size: 22px;
  }

  .focus-cell__content {
    font-size: 15px;
  }

  .focus-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 0;
  }

  .focus-cta__content h3 {
    font-size: 24px;
  }

  .focus-cta__action {
    width: 100%;
  }

  .focus-cta__action .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   AI TRIGGER BUTTON - FLOATING ORB
   ============================================ */

.ai-trigger {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  animation: ai-orb-float 6s ease-in-out infinite;
}

.ai-trigger__orb {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #9B7DFF, #6E61FE 40%, #4A3ACD 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 60px rgba(110, 97, 254, 0.6),
    0 0 100px rgba(110, 97, 254, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.2);
  animation: ai-orb-breathe 4s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-trigger:hover .ai-trigger__orb {
  transform: scale(1.15);
  box-shadow:
    0 0 80px rgba(110, 97, 254, 0.8),
    0 0 120px rgba(110, 97, 254, 0.5),
    inset 0 0 40px rgba(255, 255, 255, 0.3);
}

.ai-trigger__orb::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, #6E61FE, #00D4FF, #6E61FE, transparent);
  animation: ai-orb-rotate 8s linear infinite;
  opacity: 0.6;
  z-index: -1;
}

.ai-trigger__orb::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(255,255,255,0.8), transparent);
  border-radius: 50%;
  top: 15%;
  left: 20%;
  filter: blur(2px);
}

.ai-trigger__icon {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  color: white;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

.ai-trigger__label {
  position: absolute;
  right: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--red);
  color: white;
  padding: 12px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(110, 97, 254, 0.4);
  animation: ai-label-pulse 2s ease-in-out infinite;
  /* Transition for show/hide animation - use top instead of transform (animation uses transform) */
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 1;
}

/* Hidden state - slides down and fades out */
.ai-trigger__label--hidden {
  top: calc(50% + 40px);
  opacity: 0;
  animation-play-state: paused;
}

/* On hover, show the label (slide up from bottom) */
.ai-trigger:hover .ai-trigger__label--hidden {
  top: 50%;
  opacity: 1;
  animation-play-state: running;
}

.ai-trigger__label::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: var(--red, #6E61FE);
}

/* Attention ring pulse */
.ai-trigger__ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(110, 97, 254, 0.6);
  animation: ai-ring-pulse 2s ease-out infinite;
}

.ai-trigger__ring:nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes ai-label-pulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.05); }
}

@keyframes ai-ring-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes ai-orb-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes ai-orb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ai-orb-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .ai-trigger {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }

  .ai-trigger__icon {
    width: 24px;
    height: 24px;
  }

  .ai-trigger__orb::after {
    background: radial-gradient(circle, rgba(255,255,255,0.5), transparent);
  }

  .ai-trigger__label {
    display: none;
  }

  .ai-trigger__ring {
    border: 2px solid rgba(110, 97, 254, 0.3);
  }

  @keyframes ai-ring-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 0; }
}

}



.timeline-spine {
  position: relative;
  width: 100%;
  height: 80px;
  margin-top: 40px;
  transition: all 0.3s ease;
}

.timeline-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.timeline-line {
  stroke: var(--gray-300);
  stroke-width: 2;
  fill: none;
  transition: all 0.3s ease;
}

.timeline-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.timeline-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Start node - small */
.timeline-node:first-child {
  width: 12px;
  height: 12px;
}

/* Middle nodes - medium */
.timeline-node:not(:first-child):not(:last-child) {
  width: 20px;
  height: 20px;
}

/* Hollow middle nodes (optional - for inactive states) */
.timeline-node.hollow {
  background: white;
  border: 2px solid var(--red);
  outline: 4px solid white;
}

/* End node - large with checkmark */
.timeline-node:last-child {
  width: 45px;
  height: 45px;
}

.timeline-node:last-child::after {
  content: '✓';
  color: white;
  font-size: 22px;
  font-weight: bold;
}

.timeline-spine.mobile-screen {
    display: none;
  }

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline-spine {
    display: none; /* Hide on mobile or adjust as needed */
  }
}



#form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  animation: scroll-bounce 2s ease-in-out infinite;
  cursor: pointer;
}

.scroll-indicator__text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.scroll-indicator__arrow {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.scroll-indicator:hover .scroll-indicator__text {
  color: rgba(255, 255, 255, 1);
}

.scroll-indicator:hover .scroll-indicator__arrow {
  color: rgba(255, 255, 255, 1);
}

@keyframes scroll-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-12px);
  }
}

@media (max-width: 768px) {
  .scroll-indicator {
    bottom: 24px;
  }

  .scroll-indicator__text {
    font-size: 11px;
  }

  .scroll-indicator__arrow {
    width: 20px;
    height: 20px;
  }
}