/* Root Variables - Harmonious Slate & Emerald Palette */
:root {
  --bg-dark: #02040A; /* real portal black */
  --bg-card: #0A0F1D; /* professional card dark */
  --primary-accent: #38BDF8; /* AI cyan/sky-blue */
  --secondary-accent: #818CF8; /* AI indigo */
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --border-color: rgba(255, 255, 255, 0.08);
  --gradient-main: linear-gradient(135deg, var(--primary-accent) 0%, var(--secondary-accent) 100%);
  --font-title: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

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

/* Helper Utilities */
.accent-text {
  color: var(--primary-accent);
}

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

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary-accent);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-accent);
}

.nav-btn {
  background: var(--gradient-main);
  color: #000 !important;
  font-weight: 700 !important;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.gradient-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
}

.sphere-1 {
  top: 10%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: var(--primary-accent);
}

.sphere-2 {
  bottom: 10%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: var(--secondary-accent);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--primary-accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.primary-btn {
  background: var(--gradient-main);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.4);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.primary-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Mockup Visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.dashboard-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.dashboard-mockup:hover {
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6);
}

.mockup-header {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-address {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-grow: 1;
  text-align: center;
}

.mockup-body {
  display: flex;
  height: 250px;
}

.mockup-sidebar {
  width: 50px;
  background: rgba(0, 0, 0, 0.1);
  border-right: 1px solid var(--border-color);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-item {
  height: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.mockup-item.active {
  background: var(--primary-accent);
}

.mockup-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-card {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.card-large {
  height: 80px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(129, 140, 248, 0.05));
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  flex-grow: 1;
}

/* General Sections Layout */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem;
}

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

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: var(--primary-accent);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Hero Highlights List */
.hero-subtitle {
  font-size: 1.5rem;
  color: var(--secondary-accent);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-highlights {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.8rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.highlight-title {
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--text-main);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.highlight-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.highlight-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.highlight-list li .chk {
  color: var(--primary-accent);
  font-weight: bold;
}

/* Challenge Footer Banner */
.challenge-footer {
  text-align: center;
  max-width: 800px;
  margin: 4rem auto 0;
  padding: 1.5rem 2rem;
  background: rgba(129, 140, 248, 0.05);
  border: 1px solid rgba(129, 140, 248, 0.15);
  border-radius: 12px;
  color: var(--text-main);
  font-weight: 500;
}

/* Pillars Section */
.pillars-section {
  max-width: 1200px;
  margin: 0 auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.pillar-num {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

/* Omnichannel Section */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.channel-card:hover {
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.channel-icon {
  background: rgba(129, 140, 248, 0.08);
  color: var(--secondary-accent);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(129, 140, 248, 0.15);
}

.channel-icon svg {
  width: 24px;
  height: 24px;
}

.channel-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

/* Why Choose MedRep 360 Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.why-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--primary-accent);
}

/* Comparison Table Styling */
.table-container {
  max-width: 800px;
  margin: 0 auto 4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th, .comp-table td {
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid var(--border-color);
}

.comp-table th {
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  border-bottom: 2px solid var(--border-color);
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.comp-table tr.highlight-row {
  background: rgba(56, 189, 248, 0.06);
}

.comp-table tr.highlight-row td {
  color: var(--primary-accent);
  font-weight: 700;
  border-left: 4px solid var(--primary-accent);
}

/* MedRep 360 Delivers List */
.delivers-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.2rem;
}

.delivers-container h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-title);
  text-align: center;
  color: var(--text-main);
}

.delivers-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.delivers-list li {
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.delivers-list li span {
  color: var(--primary-accent);
  font-weight: bold;
}

/* Emerging Markets Section */
.markets-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.market-box, .future-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 2.5rem;
}

.market-box h3, .future-box h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.market-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.market-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.market-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-accent);
  font-weight: bold;
}

.market-regions {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary-accent);
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
}

.intersection-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.intersection-tags span {
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.15);
  color: var(--secondary-accent);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Call to Action Banner & Buttons */
.cta-banner {
  background: linear-gradient(135deg, #090D1A 0%, #030712 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  text-align: center;
  padding: 5rem 2rem;
  margin-bottom: 8rem;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.contact-details {
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-title);
}

.contact-title {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.contact-links {
  display: flex;
  gap: 2rem;
}

.contact-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-accent);
  transition: opacity 0.2s ease;
}

.contact-links a:hover {
  opacity: 0.85;
}

/* Footer styling */
.footer {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer p:last-child {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }

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

  .markets-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .features-grid, .pillars-grid, .channel-grid, .why-grid {
    grid-template-columns: 1fr;
  }

  .highlight-list, .delivers-list, .cta-buttons {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons a {
    width: 100%;
  }

  .nav-links {
    display: none;
  }
}


/* Scramble and Scanner Animations */
.scramble-char {
  color: var(--primary-accent);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  font-family: monospace;
}

#scanner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Card shine hover effect and pointer cursor */
.feature-card, .pillar-card, .channel-card, .why-card, .dashboard-mockup {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feature-card::before, 
.pillar-card::before, 
.channel-card::before, 
.why-card::before,
.dashboard-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(56, 189, 248, 0.08),
    transparent 80%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::before, 
.pillar-card:hover::before, 
.channel-card:hover::before, 
.why-card:hover::before,
.dashboard-mockup:hover::before {
  opacity: 1;
}

/* Ensure all contents in cards sit above the reflection overlay */
.feature-card *, .pillar-card *, .channel-card *, .why-card * {
  position: relative;
  z-index: 2;
}
