/* --- CSS variables & Design system (Synchronized with MediMemo App) --- */
:root {
  --bg-main: #0b0f19;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(31, 41, 55, 0.8);
  --bg-input: #1f2937;
  --border-subtle: rgba(255, 255, 255, 0.07);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #0b0f19;

  /* Premium Palette colors */
  --primary: #6366f1;         /* Indigo Violet */
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.15);
  
  --success: #10b981;         /* Emerald Green */
  --success-glow: rgba(16, 185, 129, 0.15);
  
  --warning: #f59e0b;         /* Amber Orange */
  --warning-glow: rgba(245, 158, 11, 0.15);
  
  --danger: #f43f5e;          /* Rose Red */
  --danger-glow: rgba(244, 63, 94, 0.15);
  
  --info: #0ea5e9;            /* Sky Blue */
  --info-glow: rgba(14, 165, 233, 0.15);

  --font-stack: 'Inter', sans-serif;
  --font-outfit: 'Outfit', sans-serif;
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* --- Base Reset & Typography --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-outfit);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

/* --- Global Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
}

.gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-family: var(--font-outfit);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

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

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

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Badge Pill */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-bottom: 1.5rem;
}

/* --- Premium Header Nav --- */
.header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1200px;
  z-index: 100;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-outfit);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

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

.nav-link:hover {
  color: #fff;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Mobile Dropdown */
.mobile-menu {
  display: none;
  position: fixed;
  top: 5.5rem;
  left: 5%;
  width: 90%;
  z-index: 99;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.active {
  display: flex;
}

.mobile-link {
  font-family: var(--font-outfit);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 10rem 0 5rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Animated Neon Glow Backdrops */
.hero-bg-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.25;
}

.glow-1 {
  top: -10%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: var(--primary);
}

.glow-2 {
  top: 40%;
  right: 10%;
  width: 450px;
  height: 450px;
  background: #a855f7;
}

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

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

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

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-outfit);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.mockup-container {
  width: 100%;
  max-width: 360px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

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

.mockup-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.mockup-dots {
  display: flex;
  gap: 0.35rem;
}

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

.mockup-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mockup-widget-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mockup-widget {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.mockup-widget-text {
  display: flex;
  flex-direction: column;
}

.mockup-widget-text .label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mockup-widget-text .value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.mockup-list-title {
  font-family: var(--font-outfit);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.mockup-pill-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 0.75rem;
}

.pill-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-indicator {
  width: 4px;
  height: 28px;
  border-radius: 99px;
}

.pill-details {
  display: flex;
  flex-direction: column;
}

.pill-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.pill-info {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pill-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
}

.pill-badge.taken {
  background: var(--success-glow);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.pill-badge.taken svg {
  width: 12px;
  height: 12px;
}

.pill-badge.log-btn {
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

/* Pulse animation helper */
.animate-pulse {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.2); }
  70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* --- Section Commons --- */
.section {
  padding: 7rem 0;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* --- Interactive Live Simulator Section --- */
.simulator-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem;
  gap: 3rem;
}

.panel-header-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.panel-header-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.sim-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sim-dose-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sim-dose-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.08);
}

.sim-dose-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sim-indicator {
  width: 4px;
  height: 32px;
  border-radius: 99px;
}

.sim-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.sim-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sim-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

/* Simulator Taken/Checked Visual Rules */
.sim-dose-card.taken {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.03);
}

.sim-dose-card.taken .sim-btn {
  background: var(--success-glow);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  cursor: default;
  pointer-events: none;
}

/* PWA settings radial adherence progression */
.simulator-analytics-panel {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.sim-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.radial-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.radial-progress {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.radial-progress circle {
  fill: none;
  stroke-width: 8;
}

.radial-progress circle.bg {
  stroke: rgba(255, 255, 255, 0.04);
}

.radial-progress circle.fg {
  stroke: var(--primary);
  stroke-dasharray: 251.2; /* 2 * PI * r (r=40) */
  stroke-dashoffset: 251.2;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s;
}

.radial-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.radial-text .percent {
  font-family: var(--font-outfit);
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.radial-text .label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.sim-kpi-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sim-kpi-card {
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
}

.sim-kpi-card .label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sim-kpi-card .value {
  font-family: var(--font-outfit);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

/* Simulator Miniature Line Chart */
.mini-chart-container {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: 1rem;
}

.mini-chart-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

#trend-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 600;
}

#trend-indicator.neutral { color: var(--text-muted); }
#trend-indicator.up { color: var(--success); }

.mini-chart-canvas {
  width: 100%;
  height: 60px;
}

.mini-svg-line {
  width: 100%;
  height: 100%;
  overflow: visible;
}

#chart-line-path {
  transition: d 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#chart-area-path {
  transition: d 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Features Grid Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2.25rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -10px rgba(99, 102, 241, 0.08);
}

.feature-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

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

/* Feature Colors */
.feature-icon-wrapper.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.feature-icon-wrapper.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.feature-icon-wrapper.amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.feature-icon-wrapper.blue { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; }
.feature-icon-wrapper.red { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.feature-icon-wrapper.sky { background: rgba(99, 102, 241, 0.15); color: #6366f1; }

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Deep-Dive Analytics Preview Section --- */
.analytics-preview-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.analytics-preview-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.analytics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.analytics-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.analytics-list li svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.analytics-list li div {
  font-size: 0.95rem;
  color: var(--text-main);
}

.analytics-list li strong {
  color: #fff;
  display: block;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.analytics-mock-card {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.mock-card-header h4 {
  font-size: 1rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
}

.badge.blue {
  background: var(--info-glow);
  color: var(--info);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.mock-chart-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mock-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mock-bar-row .med-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.bar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bar {
  height: 12px;
  border-radius: 99px;
}

.bar-blue { background: linear-gradient(90deg, #6366f1, #a855f7); }
.bar-green { background: linear-gradient(90deg, #10b981, #34d399); }
.bar-amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.bar-val {
  font-family: var(--font-outfit);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.mock-chart-footer {
  margin-top: 1.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mock-chart-footer svg {
  width: 14px;
  height: 14px;
}

/* --- Privacy & Local Security Focus Section --- */
.privacy-section {
  text-align: center;
  padding: 5rem 3rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, transparent 80%), var(--bg-card);
  max-width: 1000px;
  margin: 2rem auto 6rem auto;
}

.privacy-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-glow);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 1.5rem;
}

.privacy-icon-badge svg {
  width: 32px;
  height: 32px;
}

.privacy-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

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

.privacy-point {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.privacy-point svg {
  width: 24px;
  height: 24px;
  color: var(--success);
  margin-bottom: 1rem;
}

.privacy-point h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.privacy-point p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 260px;
}

/* --- CTA Launch Section --- */
.cta-section {
  padding-bottom: 6rem;
}

.cta-container {
  padding: 5rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08) 0%, transparent 60%), var(--bg-card);
}

.cta-logo-icon {
  width: 56px;
  height: 56px;
  color: var(--primary);
  margin-bottom: 1.5rem;
  stroke-width: 2;
}

.cta-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  background: rgba(11, 15, 25, 0.8);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-outfit);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

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

.footer-link:hover {
  color: #fff;
}

/* --- Toast Alert Overlay --- */
.sim-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 150%);
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sim-toast.active {
  transform: translate(-50%, 0);
}

.toast-icon {
  width: 16px;
  height: 16px;
  color: var(--success);
}

.toast-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

/* --- Responsive Adjustments --- */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .simulator-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 2rem;
  }
  
  .analytics-preview-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .privacy-points-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-menu, .nav-actions {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

/* --- Accessibility: respect reduced-motion preference --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.25);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main, #fff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item a {
  color: #818cf8;
}

/* --- App Screenshots Section --- */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.screen-card {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.screen-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.screen-card figcaption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.85rem 0 0.35rem;
}
