:root {
  /* Colors */
  --bg-main: #000000;
  --bg-card: rgba(24, 24, 27, 0.6);
  --bg-card-hover: rgba(39, 39, 42, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 102, 0, 0.5);
  
  --accent-primary: #ff6600;
  --accent-hover: #e55c00;
  --accent-glow: rgba(255, 102, 0, 0.2);
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.15);
  --success: #22c55e;
  
  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Animation */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-fluid {
  width: 100%;
  padding: 0 5%;
}

.section-padding {
  padding: 60px 0;
}

.pt-large {
  padding-top: 160px;
}

.text-center { text-align: center; }
.mx-auto { margin: 0 auto; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.max-w-md { max-width: 600px; }
.w-full { width: 100%; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

.headline {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.text-gradient {
  background: linear-gradient(135deg, #ff6600, #ff9900);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-text, .btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: white;
  padding: 12px 24px;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding: 12px 24px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-text {
  background: transparent;
  color: var(--text-secondary);
  padding: 12px 16px;
}

.btn-text:hover {
  color: var(--text-primary);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* Glassmorphism & Cards */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

/* Header Bankar Style */
.header-bankar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header-bankar.scrolled {
  padding: 16px 0;
  background: rgba(9, 9, 11, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner-bankar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-bankar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.main-logo {
  height: 54px;
  width: auto;
  display: block;
}

.nav-bankar ul {
  display: flex;
  gap: 32px;
}

.nav-bankar a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
}

.nav-bankar a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 12px rgba(255, 102, 0, 0.4);
}

.btn-bankar-primary {
  background-color: var(--accent-primary);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-bankar-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Hero Bankar Style */
.hero-bankar {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: var(--bg-main);
  background-image: url('hero_bg_crane_new.jpg');
  background-size: auto 130vh;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding-top: 15vh;
  overflow: hidden;
}

.hero-content-bankar {
  position: relative;
  z-index: 2;
}

.headline-bankar {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 48px;
}

.globe-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 102, 0, 0.1);
  border-radius: 50%;
  color: var(--accent-primary);
  vertical-align: middle;
  margin-right: 8px;
}

.text-orange {
  color: var(--accent-primary);
}

.search-bar-bankar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 14px 24px;
  width: 300px;
}

.search-input-wrap i {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.search-input-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  width: 100%;
  font-size: 1rem;
}

.search-input-wrap input::placeholder {
  color: var(--text-secondary);
}

.btn-bankar-search {
  background: #18181b;
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-bankar-search:hover {
  background: #27272a;
}

.hero-object-bankar {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.bankar-container-img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 80%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 80%);
}

.badge-360 {
  position: absolute;
  top: 30%;
  left: 0;
  background: var(--accent-primary);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(255, 102, 0, 0.4);
}

.badge-360 i {
  font-size: 1.5rem;
  margin-top: 4px;
}

.bankar-curves {
  position: absolute;
  top: -50px;
  left: -50px;
  width: calc(100% + 100px);
  height: calc(100% + 100px);
  z-index: 1;
  pointer-events: none;
}


/* Trust Strip */
.trust-strip {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  padding: 0 24px;
}

.trust-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(18, 18, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 16px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-item i {
  color: var(--accent-primary);
  font-size: 1.4rem;
  background: rgba(255, 102, 0, 0.15);
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
}

/* Problem Section */
.split-visual {
  display: flex;
  align-items: stretch;
  gap: 24px;
  position: relative;
}

.problem-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255,255,255,0.05);
}

.orange-glow {
  color: var(--accent-primary);
  background: var(--accent-glow);
  border: 1px solid rgba(255, 102, 0, 0.3);
}

.problem-card p {
  color: var(--text-secondary);
  flex-grow: 1;
}

.stats-mini {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stats-mini span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--accent-primary);
}

.vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
}

.vs-divider .line {
  flex: 1;
  width: 1px;
  background: var(--border-subtle);
}

.vs-divider .circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 16px 0;
}

/* Solution Diagram */
.solution-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 60px auto 0;
}

.node {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.node i {
  font-size: 2.5rem;
  color: var(--text-secondary);
}

.node span {
  font-weight: 600;
  font-family: var(--font-heading);
}

.platform-core {
  background: linear-gradient(135deg, var(--bg-card), rgba(255, 102, 0, 0.1));
  border: 1px solid var(--accent-primary);
  padding: 32px 40px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 30px var(--accent-glow);
}

.platform-core i {
  font-size: 3rem;
  color: var(--accent-primary);
}

.platform-core span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent-primary);
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

.connection-line {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.connection-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  animation: lineFlow 2s linear infinite;
}

.connection-line.reverse::after {
  animation: lineFlowReverse 2s linear infinite;
}

@keyframes lineFlow {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes lineFlowReverse {
  0% { left: 200%; }
  100% { left: -100%; }
}

/* New Wavy How It Works Section */
.how-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.how-intro {
  flex: 0 0 35%;
  position: relative;
  z-index: 10;
}

.how-pathway {
  flex: 1;
  position: relative;
  min-height: 450px;
}

.path-wave {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 200px;
  transform: translateY(-50%);
  z-index: 0;
}

.path-step {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  width: 180px;
}

.path-dot {
  width: 24px;
  height: 24px;
  background: var(--bg-main);
  border: 4px solid var(--accent-primary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

.path-content {
  position: absolute;
  width: 100%;
  text-align: center;
}

.step-down .path-content {
  top: 30px;
}

.step-up .path-content {
  bottom: 30px;
}

.path-content h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.path-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.path-num {
  position: absolute;
  font-size: 9rem;
  font-weight: 900;
  color: rgba(255, 102, 0, 0.05);
  font-family: var(--font-heading);
  line-height: 0.8;
  z-index: -1;
}

.step-down .path-num {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.step-up .path-num {
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 992px) {
  .how-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .how-intro {
    flex: none;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .how-pathway {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }
  .path-wave {
    display: none;
  }
  .path-step {
    position: relative;
    top: auto !important;
    left: auto !important;
    transform: none;
    height: 150px;
  }
  .path-dot {
    display: none;
  }
  .path-content {
    position: relative;
    top: auto !important;
    bottom: auto !important;
  }
}

/* Marketplace Preview */
.dashboard-mockup {
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.browser-bar {
  background: #18181b;
  padding: 12px 16px;
  border-bottom: 1px solid #27272a;
}

.browser-bar .dots {
  display: flex;
  gap: 8px;
}

.browser-bar .dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3f3f46;
}

.browser-bar .dots span:nth-child(1) { background: #ef4444; }
.browser-bar .dots span:nth-child(2) { background: #eab308; }
.browser-bar .dots span:nth-child(3) { background: #22c55e; }

.dashboard-content {
  display: flex;
  height: 400px;
}

.dashboard-sidebar {
  width: 80px;
  background: #09090b;
  border-right: 1px solid #27272a;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.nav-item {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #27272a;
}

.nav-item.active {
  background: rgba(255, 102, 0, 0.2);
  border: 1px solid var(--accent-primary);
}

.dashboard-main {
  flex: 1;
  padding: 24px;
  background: #121214;
}

.search-bar-mock {
  height: 40px;
  width: 300px;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.route-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.route-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.route-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 120px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
}

.tag-match {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.tag-available {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
}

.route-path {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  padding: 0 24px;
}

.location {
  display: flex;
  flex-direction: column;
}

.location strong {
  font-size: 1.1rem;
}

.location small {
  color: var(--text-secondary);
}

.route-line-icon {
  flex: 1;
  text-align: center;
  color: var(--text-secondary);
  position: relative;
}

.route-line-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #27272a;
  z-index: 0;
}

.route-line-icon i {
  position: relative;
  z-index: 1;
  background: #18181b;
  padding: 0 8px;
}

.route-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: 150px;
}

.route-details span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
}

/* User Types Split Grid */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.panel-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(255, 102, 0, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

.feature-panel h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.panel-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 400;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: #e4e4e7;
}

.feature-list li i {
  color: var(--success);
  font-size: 1.25rem;
}




/* Smart Matching */
/* Smart Matching Engine UI */
.matching-engine-ui {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  background: #050505;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.match-card {
  width: 280px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.card-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 16px;
}

.card-header i {
  color: var(--accent-primary);
  font-size: 1.4rem;
}

.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.criteria-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.criteria-item i:first-child {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.check-icon {
  margin-left: auto;
  color: var(--success);
  opacity: 0;
  transform: scale(0.5);
}

.criteria-item.anim-c1 { animation: checkFlow 8s infinite 0.5s; }
.criteria-item.anim-c2 { animation: checkFlow 8s infinite 1.0s; }
.criteria-item.anim-c3 { animation: checkFlow 8s infinite 1.5s; }
.criteria-item.anim-c4 { animation: checkFlow 8s infinite 2.0s; }

@keyframes checkFlow {
  0%, 10% {
    border-color: transparent;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
  }
  15%, 85% {
    border-color: rgba(34,197,94,0.3);
    background: rgba(34,197,94,0.05);
    color: #fff;
  }
  90%, 100% {
    border-color: transparent;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
  }
}

.criteria-item.anim-c1 .check-icon { animation: popCheck 8s infinite 0.5s; }
.criteria-item.anim-c2 .check-icon { animation: popCheck 8s infinite 1.0s; }
.criteria-item.anim-c3 .check-icon { animation: popCheck 8s infinite 1.5s; }
.criteria-item.anim-c4 .check-icon { animation: popCheck 8s infinite 2.0s; }

@keyframes popCheck {
  0%, 10% { opacity: 0; transform: scale(0.5); }
  15%, 85% { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0; transform: scale(0.5); }
}

.criteria-item.anim-c1 i:first-child { animation: iconColor 8s infinite 0.5s; }
.criteria-item.anim-c2 i:first-child { animation: iconColor 8s infinite 1.0s; }
.criteria-item.anim-c3 i:first-child { animation: iconColor 8s infinite 1.5s; }
.criteria-item.anim-c4 i:first-child { animation: iconColor 8s infinite 2.0s; }

@keyframes iconColor {
  0%, 10% { color: var(--text-secondary); }
  15%, 85% { color: var(--success); }
  90%, 100% { color: var(--text-secondary); }
}

/* Center Core */
.match-core-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.line-path {
  fill: none;
  stroke: rgba(255,102,0,0.3);
  stroke-width: 2;
  stroke-dasharray: 8 8;
  animation: lineMarch 1s linear infinite;
}

@keyframes lineMarch {
  to { stroke-dashoffset: -16; }
}

.core-orb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(10,10,10,0.9);
  border: 2px solid var(--accent-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 40px rgba(255,102,0,0.2);
  animation: coreGlow 8s infinite;
}

.orb-ring {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.15);
  animation: spinRing 10s linear infinite;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.orb-percentage {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-primary);
  font-family: var(--font-heading);
  animation: pctColor 8s infinite;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
}

.orb-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 20px;
}

.pct-scanning, .pct-matched, .txt-scanning, .txt-matched {
  position: absolute;
}

.pct-scanning, .txt-scanning { animation: scanShow 8s infinite; }
.pct-matched, .txt-matched { animation: matchShow 8s infinite; opacity: 0; }

@keyframes scanShow {
  0%, 34% { opacity: 1; transform: scale(1); }
  35%, 85% { opacity: 0; transform: scale(0.9); }
  86%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes matchShow {
  0%, 34% { opacity: 0; transform: scale(1.1); }
  35%, 85% { opacity: 1; transform: scale(1); }
  86%, 100% { opacity: 0; transform: scale(0.9); }
}

@keyframes coreGlow {
  0%, 25% {
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px rgba(255,102,0,0.2);
  }
  35%, 80% {
    border-color: var(--success);
    box-shadow: 0 0 50px rgba(34,197,94,0.4);
  }
  90%, 100% {
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px rgba(255,102,0,0.2);
  }
}

@keyframes pctColor {
  0%, 25% { color: var(--accent-primary); }
  35%, 80% { color: var(--success); }
  90%, 100% { color: var(--accent-primary); }
}

/* Fleet Database Scroller */
.truck-scroller-window {
  position: relative;
  height: 200px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.truck-scroller {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: absolute;
  top: 15px; /* Offset to center the match */
  left: 0;
  width: 100%;
  animation: scrollTrucks 8s cubic-bezier(0.8, 0, 0.2, 1) infinite;
}

.truck-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.tr-id {
  font-weight: 700;
  color: #fff;
}

.tr-type {
  color: var(--text-secondary);
}

.tr-status {
  font-size: 1.2rem;
}

.truck-row.rejected {
  border-color: rgba(239,68,68,0.2);
  color: #ef4444;
}
.truck-row.rejected .tr-status { color: #ef4444; }

.truck-row.matched {
  border-color: rgba(34,197,94,0.4);
  background: rgba(34,197,94,0.1);
  box-shadow: 0 0 15px rgba(34,197,94,0.2);
}
.truck-row.matched .tr-status { color: var(--success); }

/* The height of each truck-row + gap is approx 54px + 12px = 66px.
   Scroll up by 2 rows to land on the 3rd row. 66 * 2 = 132px. */
@keyframes scrollTrucks {
  0%, 15% { transform: translateY(0); }
  20%, 25% { transform: translateY(-66px); }
  35%, 80% { transform: translateY(-132px); }
  90%, 100% { transform: translateY(0); }
}

/* Final CTA */
.cta-box {
  padding: 64px 40px;
}

.cta-split {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
}

.cta-action {
  flex: 1;
  max-width: 350px;
}

.cta-action h3 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.cta-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cta-divider::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--border-subtle);
}

.cta-divider span {
  background: var(--bg-card);
  padding: 10px;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

/* Footer */
.footer {
  background: #050505;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 0; /* Removing bottom padding so image is flush with bottom */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a, .footer-contact a {
  color: var(--text-secondary);
}

.footer-links a:hover, .footer-contact a:hover {
  color: var(--accent-primary);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.social-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Animations / Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-2-col, .match-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .route-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .route-path {
    padding: 0;
    width: 100%;
  }
  
  .route-details {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-nav, .auth-actions {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .split-visual {
    flex-direction: column;
  }
  
  .vs-divider {
    flex-direction: row;
    width: 100%;
    height: 40px;
  }
  
  .vs-divider .line {
    height: 1px;
    width: 100%;
  }
  
  .solution-diagram {
    flex-direction: column;
  }
  
  .connection-line {
    width: 2px;
    height: 40px;
    flex: none;
  }
  
  .connection-line::after {
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, transparent, var(--accent-primary), transparent);
    animation: lineFlowVert 2s linear infinite;
  }
  
  @keyframes lineFlowVert {
    0% { top: -100%; }
    100% { top: 200%; }
  }
  
  .dashboard-content {
    flex-direction: column;
    height: auto;
  }
  
  .dashboard-sidebar {
    width: 100%;
    flex-direction: row;
    padding: 12px 24px;
    border-right: none;
    border-bottom: 1px solid #27272a;
    justify-content: center;
  }
  
  .cta-split {
    flex-direction: column;
    gap: 32px;
  }
  
  .cta-action {
    max-width: 100%;
  }
  
  .cta-divider {
    width: 100%;
  }
  
  .cta-divider::before {
    height: 1px;
    width: 100%;
    top: 50%;
    left: 0;
  }
}

@media (max-width: 576px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .matching-criteria {
    grid-template-columns: 1fr;
  }
}
