/* ==========================================================================
   AirTrack CRM Portal Light Theme Design System
   ========================================================================== */

/* Variables */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --bg-primary: #f1f5f9; /* Sleek Light Grey */
  --bg-card: #ffffff; /* Pure Bright White Cards */
  --text-primary: #0f172a; /* Slate Black */
  --text-secondary: #475569; /* Slate Grey */
  --text-muted: #94a3b8;
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-focus: #06b6d4;
  
  --color-primary: #6366f1; /* Electric Indigo */
  --color-secondary: #06b6d4; /* Neon Cyan */
  --color-accent: #a855f7; /* Violet */
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 25px 60px -12px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 45px 85px -15px rgba(15, 23, 42, 0.12);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #cbd5e1;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: 
    radial-gradient(circle at calc(10% + var(--scroll-ratio, 0) * 15%) calc(15% + var(--scroll-ratio, 0) * 10%), rgba(255, 255, 255, 0.98) 0%, transparent 50%),
    radial-gradient(circle at calc(90% - var(--scroll-ratio, 0) * 10%) calc(85% - var(--scroll-ratio, 0) * 15%), rgba(51, 65, 85, 0.45) 0%, transparent 55%),
    radial-gradient(circle at calc(75% - var(--scroll-ratio, 0) * 15%) calc(25% + var(--scroll-ratio, 0) * 20%), rgba(226, 232, 240, 0.8) 0%, transparent 45%),
    radial-gradient(circle at calc(20% + var(--scroll-ratio, 0) * 10%) calc(75% - var(--scroll-ratio, 0) * 10%), rgba(71, 85, 105, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(203, 213, 225, 0.5) 0%, transparent 60%),
    #cbd5e1;
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Spotlight glow background */
.spotlight-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    circle 350px at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(99, 102, 241, 0.04),
    rgba(6, 182, 212, 0.03),
    transparent 80%
  );
  will-change: background;
}

/* Geometric Grid Background */
.grid-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -4;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
}

.grid-overlay {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(15, 23, 42, 0.12) 90%);
}

/* App Wrapper */
.app-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(226, 232, 240, 0.45); /* Cloudy/shady frosted blend */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.45rem 2rem; /* Slimmer padding for a strip layout */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-img {
  width: 36px; /* Sleeker, narrow-strip logo scale */
  height: 36px;
  border-radius: 50%;
  background-color: #000000; /* Black circular emblem */
  object-fit: contain;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem; /* Sleeker logo text size */
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.brand-by {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-primary);
  text-transform: none;
  letter-spacing: 0px;
  vertical-align: middle;
  opacity: 0.8;
  margin-left: 0.25rem;
}

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

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-btn-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--text-primary);
  padding: 0.45rem 1.1rem; /* Compact button padding */
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.nav-btn-link:hover {
  transform: translateY(-1px);
  background-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Scroll Fade Animation system */
.scroll-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

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

/* Hero Section */
.hero-section {
  padding: 12rem 2rem 6rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-container {
  max-width: 1000px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-container {
  margin-bottom: 1.5rem;
}

.hero-badge {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
}

/* Hero Branding Block */
.hero-brand-block {
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 4.5rem;
  max-width: 700px;
}

/* Gateway Cards Grid (Side-by-Side arrangement perfectly centered) */
.cta-cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: 900px;
  perspective: 1200px;
  margin: 0 auto 5rem auto;
  justify-content: center;
  justify-items: center;
  align-items: stretch;
}

.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.1s;
  width: 100%;
  max-width: 420px;
  will-change: transform, box-shadow;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  z-index: 1;
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(15, 23, 42, 0.02);
  transition: background 0.2s, color 0.2s;
}

.portal-card:hover .card-tag {
  background: rgba(99, 102, 241, 0.08);
  color: var(--color-primary);
}

.partner-card:hover .card-tag {
  background: rgba(6, 182, 212, 0.08);
  color: var(--color-secondary);
}

.card-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle 120px at var(--glow-x, 50%) var(--glow-y, 50%), rgba(99, 102, 241, 0.05), transparent 85%);
  opacity: 0;
  transition: opacity 0.4s;
}

.portal-card:hover .card-glow {
  opacity: 1;
}

.portal-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-xl);
}

.portal-card.partner-card:hover {
  border-color: rgba(6, 182, 212, 0.25);
}

.card-icon-container {
  margin-bottom: 1.5rem;
  z-index: 1;
  color: var(--color-primary);
}

.partner-card .card-icon-container {
  color: var(--color-secondary);
}

.card-icon-svg {
  display: block;
  transition: transform 0.4s ease;
}

.portal-card:hover .card-icon-svg {
  transform: scale(1.1) rotate(3deg);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  z-index: 1;
}

.card-subtitle-sub {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  z-index: 1;
}

.card-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  flex-grow: 1;
  z-index: 1;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--text-primary);
  padding: 1rem 1.6rem;
  border-radius: 12px;
  text-decoration: none;
  z-index: 1;
  transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

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

.company-card .card-btn {
  background-color: var(--color-primary);
}
.company-card:hover .card-btn {
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.partner-card .card-btn {
  background-color: var(--text-primary);
}
.partner-card:hover .card-btn {
  background-color: var(--color-secondary);
  color: #030712;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.arrow-icon {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portal-card:hover .arrow-icon {
  transform: translateX(4px);
}

/* Timeline/Chain Section (Ecosystem Grid) */
.chain-section {
  padding: 8rem 2rem;
  background-color: transparent;
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 6rem auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

/* Timeline Container Grid */
.timeline-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #f1f5f9;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--color-secondary), var(--color-primary));
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.25);
  transition: height 0.1s linear;
}

/* Full Width Grid Rows */
.timeline-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  margin-bottom: 6rem;
  width: 100%;
  position: relative;
  z-index: 5;
}

.timeline-dot-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 10;
}

/* Timeline Item details card */
.timeline-item {
  width: auto;
  padding: 0 2rem;
  opacity: 0.08;
  transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}

.timeline-row.in-view .timeline-item {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  grid-column: 1;
  text-align: right;
}

.timeline-item.right {
  grid-column: 3;
  text-align: left;
}

/* Dots along the timeline */
.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3.5px solid #cbd5e1;
  transition: border-color 0.4s, background-color 0.4s, transform 0.4s;
}

.timeline-row.in-view .timeline-dot {
  border-color: var(--color-secondary);
  background-color: #ffffff;
  transform: scale(1.25);
}

.timeline-row:nth-child(even).in-view .timeline-dot {
  border-color: var(--color-primary);
}

.timeline-dot .pulse {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-secondary);
  opacity: 0;
}

.timeline-row:nth-child(even).in-view .timeline-dot .pulse {
  background-color: var(--color-primary);
}

.timeline-row.in-view .timeline-dot .pulse {
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Huge Background Outline Texts with Horizontal Scroll translations */
.entity-bg-text {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(15, 23, 42, 0.05);
  position: absolute;
  top: 1rem;
  z-index: -1;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(var(--item-scroll-val, 0px));
  transition: -webkit-text-stroke 0.8s ease, color 0.8s ease, transform 0.1s ease-out;
  will-change: transform;
}

.timeline-item.left .entity-bg-text {
  right: 2rem;
}

.timeline-item.right .entity-bg-text {
  left: 2rem;
}

.timeline-row.in-view .entity-bg-text {
  color: rgba(15, 23, 42, 0.015);
  -webkit-text-stroke: 1px rgba(99, 102, 241, 0.15);
}

.timeline-row:nth-child(odd).in-view .entity-bg-text {
  -webkit-text-stroke: 1px rgba(6, 182, 212, 0.15);
}

/* Content cards */
.timeline-content {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}

.timeline-content:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-item.right .timeline-content:hover {
  border-color: rgba(6, 182, 212, 0.2);
}

.node-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-secondary);
  border: 1px solid rgba(6, 182, 212, 0.2);
  background: rgba(6, 182, 212, 0.04);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.timeline-item.left .node-badge {
  color: var(--color-primary);
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.04);
}

.node-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.node-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.node-live-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: #f8fafc;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.preview-dot.green { background-color: #10b981; animation: blink 1.5s infinite alternate; }
.preview-dot.blue { background-color: #3b82f6; animation: blink 1.5s infinite alternate; }
.preview-dot.purple { background-color: #8b5cf6; animation: blink 1.5s infinite alternate; }
.preview-dot.orange { background-color: #f59e0b; animation: blink 1.5s infinite alternate; }

/* Continuous Opposing Animated Panels */
.timeline-visual-panel {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
  opacity: 0.08;
  transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}

.timeline-row.in-view .timeline-visual-panel {
  opacity: 1;
  transform: translateY(0);
}

.timeline-visual-panel.left {
  grid-column: 1;
  justify-content: flex-end;
}

.timeline-visual-panel.right {
  grid-column: 3;
  justify-content: flex-start;
}

.visual-card {
  background: rgba(255, 255, 255, 0.5); /* Muted, translucent glass */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
  opacity: 0.6; /* Dull contrast to distinguish from interactive card panels */
  transition: opacity 0.3s ease, background 0.3s ease;
}

.timeline-row:hover .visual-card {
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.7);
}

.visual-graph-header {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.visual-stats-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.blink-text {
  animation: blink 1s infinite alternate;
}

/* Panel 1: HQ Pulse Line */
.visual-graph-line {
  height: 45px;
  background: rgba(99, 102, 241, 0.03);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.06);
}

.flowing-pulse-line {
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.25), transparent);
  animation: flow-line 2.2s infinite linear;
}

/* Panel 2: C&F Logistics box animation */
.visual-transit-lane {
  height: 45px;
  background: rgba(15, 23, 42, 0.015);
  border: 1px solid rgba(15, 23, 42, 0.03);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.transit-box {
  font-size: 1.35rem;
  position: absolute;
  animation: move-transit-box 4.5s infinite linear;
}

/* Panel 3: Stockist progress meter */
.credit-limit-gauge {
  height: 10px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.credit-limit-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  animation: fill-credit 4.5s infinite ease-in-out;
}

/* Panel 4: Radar sweep circles */
.radar-ping-container {
  height: 60px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: rgba(6, 182, 212, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(6, 182, 212, 0.05);
}

.radar-circle {
  position: absolute;
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 50%;
  animation: radar-grow 3s infinite linear;
}

.rc-2 { animation-delay: 1.5s; }

.radar-line {
  position: absolute;
  width: 100%; height: 2px;
  background: rgba(6, 182, 212, 0.15);
  animation: radar-sweep 4s infinite linear;
}

/* Panel 5: Saloon ticket list scroller */
.transaction-ticker-container {
  height: 55px;
  overflow: hidden;
  position: relative;
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.06);
  border-radius: 8px;
  padding: 0.5rem;
}

.ticker-wrapper-scroller {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  animation: scroll-ticker 9s infinite linear;
}

.ticker-item {
  font-family: monospace;
  font-size: 0.7rem;
  color: #10b981;
  white-space: nowrap;
}

/* Panel 6: Inventory bar values scaling */
.inventory-bar-chart {
  height: 50px;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  justify-content: center;
  background: rgba(15, 23, 42, 0.01);
  padding: 0.5rem;
  border-radius: 8px;
}

.inv-bar {
  width: 16px;
  background: var(--color-secondary);
  border-radius: 4px 4px 0 0;
  animation: bar-scale 2.5s infinite alternate ease-in-out;
}

.inv-bar.bar-1 { height: 60%; animation-delay: 0.2s; background-color: var(--color-primary); }
.inv-bar.bar-2 { height: 80%; animation-delay: 0.5s; background-color: var(--color-secondary); }
.inv-bar.bar-3 { height: 40%; animation-delay: 0.8s; background-color: var(--color-primary); }
.inv-bar.bar-4 { height: 95%; animation-delay: 0.1s; background-color: var(--color-secondary); }

/* Infrastructure Features Grid */
.features-section {
  padding: 8rem 2rem;
  background-color: transparent;
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  position: relative;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(99, 102, 241, 0.08); /* Indigo accent borders */
  border-radius: 20px;
  padding: 2.5rem;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
  box-shadow: var(--shadow-md);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

/* Footer styling */
.main-footer {
  background-color: transparent;
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  padding: 3.5rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.footer-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #000000;
  object-fit: contain;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.footer-brand-by {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  opacity: 0.85;
  margin-left: 0.35rem;
}

.copyright-text {
  font-size: 0.85rem;
  color: #334155; /* Slate-700 for clean contrast */
}

/* Keyframes animations */
@keyframes logo-glow {
  from { filter: drop-shadow(0 0 1px rgba(6, 182, 212, 0.2)); }
  to { filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4)); }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.33);
    opacity: 1;
    box-shadow: 0 0 0 0px rgba(6, 182, 212, 0.3);
  }
  80%, 100% {
    transform: scale(2.2);
    opacity: 0;
    box-shadow: 0 0 10px 10px rgba(6, 182, 212, 0);
  }
}

@keyframes blink {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Floating Animations */
@keyframes float-logo {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-15px) rotate(2deg);
  }
}

@keyframes shadow-scale {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.08;
    filter: blur(5px);
  }
  100% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.04;
    filter: blur(7px);
  }
}

/* Core Continuous Telemetry Panel Animations */
@keyframes flow-line {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes move-transit-box {
  0% { left: -10%; }
  100% { left: 110%; }
}

@keyframes fill-credit {
  0% { width: 0%; }
  50% { width: 98%; }
  100% { width: 98%; }
}

@keyframes radar-grow {
  0% { width: 0%; height: 0%; opacity: 1; }
  100% { width: 100%; height: 100%; opacity: 0; }
}

@keyframes radar-sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes scroll-ticker {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-50px); }
}

@keyframes bar-scale {
  0% { transform: scaleY(0.7); }
  100% { transform: scaleY(1.1); }
}

/* Media Queries */
@media (max-width: 900px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .cta-cards-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .timeline-row {
    grid-template-columns: 1fr 60px; /* Hide animations column on small viewports */
  }
  
  .timeline-visual-panel {
    display: none; /* Hide visual mock panels on mobile */
  }
  
  .timeline-line {
    left: auto;
    right: 20px;
  }
  
  .timeline-item {
    grid-column: 1 !important;
    text-align: right !important;
    padding-right: 2rem;
  }
  
  .timeline-dot-wrapper {
    grid-column: 2;
  }
  
  .timeline-item.left .entity-bg-text,
  .timeline-item.right .entity-bg-text {
    right: 2rem;
    left: auto;
    font-size: 4rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  
  .timeline-progress {
    display: none;
  }
  
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none;
  }
  
  .hero-app-logo,
  .logo-sphere-shadow,
  .flowing-pulse-line,
  .transit-box,
  .credit-limit-fill,
  .radar-circle,
  .radar-line,
  .ticker-wrapper-scroller,
  .inv-bar {
    animation: none !important;
  }
}
