/*
 * BodyViz — Premium Biometric Design System
 * Dark Mode, Glossy Glassmorphism, & Motion-Driven Aesthetics
 */

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

:root {
  /* Color Palette */
  --bg-main: #07090e;
  --bg-surface: #0f131f;
  --bg-surface-elevated: #181d2f;
  --bg-surface-glass: rgba(15, 19, 31, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  --primary-glow: rgba(0, 242, 254, 0.15);
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-green: #00ff87;
  --accent-purple: #8a2be2;
  --accent-red: #ff4b4b;
  --accent-orange: #ff9f43;
  --accent-yellow: #ffd000;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  --grad-muscle: linear-gradient(135deg, var(--accent-green) 0%, #00d2ff 100%);
  --grad-energy: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
  --grad-premium: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
  --grad-dark: linear-gradient(180deg, #0f131f 0%, #07090e 100%);
  
  /* Layout */
  --container-max: 1200px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family-sans: 'Inter', -apple-system, sans-serif;
  --font-family-heading: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
  background-image: radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(138, 43, 226, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-blue);
}

/* Helper Classes */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.glass-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 32px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px 0 rgba(0, 242, 254, 0.03);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 9999px;
  font-family: var(--font-family-heading);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
  gap: 8px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #07090e;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
  color: #07090e;
}

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

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

.btn-premium {
  background: var(--grad-premium);
  color: #fff;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

/* Navigation Bar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-family-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  padding: 100px 0 60px 0;
  position: relative;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  gap: 40px;
}

.hero-content h1 {
  font-size: 56px;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 36px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* Biometric Simulator Container */
.simulator-container {
  position: relative;
  width: 100%;
}

.simulator-box {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  background: linear-gradient(135deg, var(--bg-surface) 0%, #080c16 100%);
}

.sim-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.sim-dots span:nth-child(1) { background: var(--accent-red); }
.sim-dots span:nth-child(2) { background: var(--accent-yellow); }
.sim-dots span:nth-child(3) { background: var(--accent-green); }

.sim-status {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-status::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.sim-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sim-input-wrapper {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 6px 6px 6px 16px;
  align-items: center;
}

.sim-input-wrapper input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  flex-grow: 1;
  font-family: var(--font-family-sans);
  font-size: 15px;
}

.sim-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.sim-prompts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none; /* Firefox */
}

.sim-prompts::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.prompt-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.prompt-tag:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
}

/* Simulator Grid Display */
.sim-display-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  min-height: 280px;
}

.sim-avatar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.sim-avatar-svg {
  width: 140px;
  height: 240px;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.05));
  transition: var(--transition-smooth);
}

.sim-stats-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.stat-bar-outer {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.stat-bar-inner {
  height: 100%;
  border-radius: 9999px;
  width: 50%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.stat-value {
  font-weight: 700;
  font-family: var(--font-family-heading);
}

/* Feature Section */
.features-section {
  padding: 100px 0;
  position: relative;
}

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

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
}

/* Tech Highlights Grid (Offline/Privacy focus) */
.tech-highlights {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tech-image {
  display: flex;
  justify-content: center;
}

.tech-graphic {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  background: rgba(7, 9, 14, 0.5);
  box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.05);
}

/* Pricing Section */
.pricing-section {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card.premium-tier {
  border-color: rgba(138, 43, 226, 0.3);
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.1);
}

.pricing-card.premium-tier::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-premium);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 9999px;
}

.price-box {
  margin: 24px 0;
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  font-family: var(--font-family-heading);
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.pricing-features li.unavailable {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Call to Action Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-box {
  background: linear-gradient(135deg, rgba(15, 19, 31, 0.8) 0%, rgba(7, 9, 14, 0.8) 100%);
  border: 1px solid var(--border-color);
  padding: 60px 40px;
  border-radius: var(--border-radius-lg);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.08) 0%, transparent 60%);
  z-index: 0;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.cta-box p {
  max-width: 600px;
  margin: 0 auto 32px auto;
  font-size: 16px;
}

.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer Styles */
footer {
  background-color: #05060a;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
}

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

.footer-logo-desc {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-desc p {
  font-size: 14px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-col h4 {
  font-size: 16px;
  color: var(--text-primary);
}

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

.footer-links-col a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  color: var(--text-muted);
}

.footer-legal-links a:hover {
  color: var(--text-secondary);
}

/* Subpages Styling (Privacy, Terms, forms) */
.subpage-hero {
  padding: 80px 0 40px 0;
  text-align: center;
}

.subpage-hero h1 {
  font-size: 44px;
  margin-bottom: 12px;
}

.content-box {
  max-width: 800px;
  margin: 0 auto 80px auto;
}

.legal-content h2 {
  font-size: 24px;
  margin: 32px 0 16px 0;
  color: var(--text-primary);
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 15px;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.legal-content li {
  margin-bottom: 8px;
  font-size: 15px;
}

/* Forms styling */
.form-card {
  max-width: 600px;
  margin: 0 auto 80px auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-family-sans);
  font-size: 15px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form success state styling */
.form-success-state {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid rgba(0, 255, 135, 0.2);
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: pulse-success 2s infinite;
}

.form-success-state h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

/* Feature Voting Simulator */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px 20px;
  transition: var(--transition-smooth);
}

.feature-item:hover {
  border-color: var(--border-color-hover);
  background: rgba(255, 255, 255, 0.03);
}

.feature-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.feature-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.vote-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 54px;
  height: 54px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.vote-button:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.vote-button.voted {
  background: var(--grad-primary);
  border-color: var(--accent-cyan);
  color: #07090e;
}

.vote-button svg {
  width: 16px;
  height: 16px;
}

.vote-count {
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

/* Animations */
@keyframes pulse-success {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(0, 255, 135, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 135, 0);
  }
}

/* Biometric Simulator Specifics */
.avatar-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 2;
  transition: var(--transition-smooth);
}

.avatar-active-path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 4;
  animation: dash 30s linear infinite;
  opacity: 0;
  transition: var(--transition-smooth);
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

.glow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 30%, var(--bg-main) 70%);
  z-index: 2;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero-grid, .tech-grid, .pricing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content h1 {
    font-size: 44px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .pricing-card.premium-tier {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-main);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: flex;
  }
  
  .sim-display-grid {
    grid-template-columns: 1fr;
  }
  
  .sim-avatar-container {
    height: 220px;
  }
  
  .sim-avatar-svg {
    height: 180px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

