@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  /* Colors */
  --primary: hsl(150, 60%, 45%);       /* Fresh Emerald Green */
  --primary-light: hsl(150, 65%, 93%);
  --primary-hover: hsl(150, 60%, 38%);
  
  --secondary: #10b981;
  --accent: hsl(207, 95%, 45%);        /* Professional Trust Blue */
  --accent-light: hsl(207, 95%, 94%);
  --accent-hover: hsl(207, 95%, 38%);
  
  --text-dark: hsl(220, 40%, 12%);      /* Near black */
  --text-muted: hsl(218, 15%, 45%);     /* Muted gray */
  --text-light: hsl(220, 15%, 98%);     /* Off-white */
  
  --bg-white: hsl(0, 0%, 100%);
  --bg-soft: hsl(210, 40%, 98%);        /* Soft gray-blue background */
  --bg-gradient: linear-gradient(135deg, hsl(150, 40%, 98%) 0%, hsl(210, 40%, 98%) 100%);
  --bg-gradient-radial: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 90%);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
  --glass-blur: blur(12px);
  
  /* Layout & Spacing */
  --container-max-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Background blob decorations */
.blob-decorator {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  z-index: -2;
  filter: blur(140px);
  opacity: 0.35;
  pointer-events: none;
}

.blob-decorator-1 {
  background: radial-gradient(circle, var(--primary-light) 0%, rgba(255, 255, 255, 0) 70%);
  top: -100px;
  right: -100px;
}

.blob-decorator-2 {
  background: radial-gradient(circle, var(--accent-light) 0%, rgba(255, 255, 255, 0) 70%);
  top: 800px;
  left: -200px;
}

.blob-decorator-3 {
  background: radial-gradient(circle, var(--primary-light) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: 800px;
  right: -200px;
}

/* --- TYPOGRAPHY & UI --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--bg-white);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--accent-hover) 100%);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--text-dark);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background-color: var(--bg-white);
  color: var(--text-dark);
  border-color: var(--bg-white);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 8rem 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-light);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.15rem;
}

/* --- HEADER / NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  padding: 0.75rem 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  transition: all var(--transition-normal);
}

.header.scrolled .container {
  padding: 0.5rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
}

.logo-text {
  background: linear-gradient(135deg, var(--text-dark) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

/* --- HERO SECTION --- */
.hero {
  padding: 11rem 0 7rem 0;
  background: var(--bg-gradient-radial);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-tag svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 3.75rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-dark) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 2rem;
  width: 100%;
}

.hero-stat-item h4 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hero Dashboard Mockup */
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
}

.hero-mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.08) 50%, transparent 100%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* Premium Dashboard UI Frame */
.dashboard-mockup {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
  width: 100%;
  height: 440px;
  display: grid;
  grid-template-columns: 80px 1fr;
  overflow: hidden;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

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

/* Dashboard Mockup Sidebar */
.db-sidebar {
  background-color: #f8fafc;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
  gap: 1.5rem;
}

.db-sidebar-logo {
  width: 36px;
  height: 36px;
  background-color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.db-sidebar-logo svg {
  width: 20px;
  height: 20px;
}

.db-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
  align-items: center;
}

.db-nav-item {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.db-nav-item:hover, .db-nav-item.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

/* Dashboard Mockup Content */
.db-content {
  display: flex;
  flex-direction: column;
  background-color: white;
  overflow: hidden;
}

.db-header {
  height: 60px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.db-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.db-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.db-avatar {
  width: 32px;
  height: 32px;
  background-color: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.db-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.db-view {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.db-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid systems in mockup */
.db-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.db-stat-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #f8fafc;
}

.db-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.db-stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.db-stat-trend {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.db-stat-trend.up { color: #10b981; }
.db-stat-trend.down { color: var(--accent); }

/* Dashboard Timeline view */
.db-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.db-timeline-item {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.db-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background-color: #f1f5f9;
}

.db-timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1;
}

.db-timeline-info {
  flex: 1;
}

.db-timeline-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.db-timeline-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Dashboard Meds view */
.db-meds-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.db-med-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #f8fafc;
}

.db-med-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.db-med-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.db-med-name {
  font-size: 0.85rem;
  font-weight: 700;
}

.db-med-dose {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.db-med-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
}

.db-med-status.taken {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Dashboard Insights view */
.db-insight-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
  margin-bottom: 1rem;
}

.db-insight-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-hover);
  margin-bottom: 0.5rem;
}

.db-insight-text {
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.5;
}

/* --- FEATURES SECTION --- */
.features {
  background-color: var(--bg-soft);
  position: relative;
}

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

.feature-card {
  background-color: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  transition: all var(--transition-fast);
}

.feature-card:nth-child(3n+1) .feature-icon-wrapper {
  background-color: var(--primary-light);
  color: var(--primary);
}

.feature-card:nth-child(3n+2) .feature-icon-wrapper {
  background-color: var(--accent-light);
  color: var(--accent);
}

.feature-card:nth-child(3n) .feature-icon-wrapper {
  background-color: hsl(270, 70%, 94%);
  color: hsl(270, 70%, 50%);
}

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

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- INTERACTIVE LAB REPORT SCANNER DEMO --- */
.scanner-demo {
  background: var(--bg-white);
}

.scanner-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.scanner-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.scanner-right {
  display: flex;
  justify-content: center;
}

/* Upload Interface Widget */
.upload-widget {
  background-color: var(--bg-soft);
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  width: 100%;
  max-width: 480px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.upload-widget:hover, .upload-widget.dragover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.upload-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 1.5rem auto;
  transition: all var(--transition-fast);
}

.upload-widget:hover .upload-icon {
  transform: scale(1.05);
}

.upload-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.upload-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Scan Simulation State */
.scanner-active-ui {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.scanning-box {
  width: 100%;
  height: 160px;
  background-color: white;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.scanning-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 10px var(--primary);
  animation: scan 1.8s ease-in-out infinite;
}

@keyframes scan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.scanning-doc-info {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scanning-doc-info svg {
  color: var(--primary);
}

/* Scan Result View */
.scan-result-card {
  display: none;
  background-color: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.result-score {
  text-align: right;
}

.result-score-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.result-score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.result-item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.result-item-desc {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.result-status-dot.green { background-color: var(--primary); }
.result-status-dot.blue { background-color: var(--accent); }

/* Reset demo button */
.btn-reset-demo {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.8;
}

.btn-reset-demo:hover {
  opacity: 1;
}

/* --- BENEFITS SECTION --- */
.benefits {
  background-color: var(--bg-soft);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.benefits-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.benefit-card-mini {
  background-color: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.01);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.benefit-card-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}

.benefit-mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.benefit-mini-icon svg {
  width: 22px;
  height: 22px;
}

.benefit-card-mini h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.benefit-card-mini p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* --- HOW IT WORKS --- */
.how-it-works {
  background-color: var(--bg-white);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  position: relative;
}

.steps-line {
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-light));
  z-index: 0;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.step-card:nth-child(even) .step-number-bubble {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.step-card:hover .step-number-bubble {
  transform: scale(1.1);
  background-color: var(--primary);
  color: white;
}

.step-card:nth-child(even):hover .step-number-bubble {
  background-color: var(--accent);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.95rem;
  max-width: 240px;
}

/* --- TESTIMONIALS --- */
.testimonials {
  background-color: var(--bg-soft);
  overflow: hidden;
}

.testimonials-carousel-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 0 3rem;
}

.testimonial-track {
  position: relative;
  height: 380px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: scale(0.95);
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.testimonial-quote {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
  margin-bottom: 1.5rem;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.testimonial-meta {
  text-align: left;
}

.testimonial-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Controls */
.testimonial-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.testimonial-ctrl:hover {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

.testimonial-ctrl-prev { left: 0; }
.testimonial-ctrl-next { right: 0; }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-dot.active {
  background-color: var(--accent);
  width: 20px;
  border-radius: 4px;
}

/* --- SECURITY SECTION --- */
.security {
  background-color: var(--bg-white);
}

.security-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.security-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.security-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.security-point {
  display: flex;
  gap: 1rem;
}

.security-point-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.security-point-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.security-point-desc {
  font-size: 0.95rem;
}

/* Graphic elements */
.security-right {
  display: flex;
  justify-content: center;
}

.security-shield-graphic {
  width: 320px;
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-pulse-ring {
  position: absolute;
  border-radius: 50%;
  animation: pulse-ring 3s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

.shield-pulse-ring-1 {
  width: 320px;
  height: 320px;
  background-color: rgba(16, 185, 129, 0.03);
  animation-delay: 0s;
}

.shield-pulse-ring-2 {
  width: 260px;
  height: 260px;
  background-color: rgba(16, 185, 129, 0.05);
  animation-delay: 0.5s;
}

.shield-pulse-ring-3 {
  width: 200px;
  height: 200px;
  background-color: rgba(16, 185, 129, 0.07);
  animation-delay: 1s;
}

.shield-center-core {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.3);
  z-index: 2;
}

.shield-center-core svg {
  width: 54px;
  height: 54px;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* --- FINAL CTA SECTION --- */
.final-cta {
  background-color: var(--bg-white);
  padding: 6rem 0 8rem 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--text-dark) 0%, #0f172a 100%);
  border-radius: var(--radius-xl);
  padding: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3);
}

.cta-box-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0.1) 60%, transparent 100%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-title {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 2.5rem;
}

/* --- FOOTER --- */
.footer {
  background-color: #0b0f19;
  color: #94a3b8;
  padding: 5rem 0 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-brand .logo-text {
  background: linear-gradient(135deg, white 50%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-title {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

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

.footer-legal-links a:hover {
  color: white;
}

/* --- ANIMATION REVEALS (ON-SCROLL) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-subtitle {
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 4rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .scanner-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .scanner-left {
    align-items: center;
    text-align: center;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .benefits-left {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  .steps-line {
    display: none;
  }
  
  .security-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .security-left {
    align-items: center;
    text-align: center;
  }
  
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  /* Navigation mobile menu drawer */
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    align-items: flex-start;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
  }
  
  .nav-menu.open {
    transform: translateX(0);
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-actions {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-cards {
    grid-template-columns: 1fr;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
  }
  
  .cta-box {
    padding: 3rem 1.5rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}
