/* ============================================
   RxAssist — Premium High-End Tech Pharmaceutical Landing
   Custom Styles + Tailwind Overrides
   Dark, minimalist, futuristic aesthetic
   ============================================ */

:root {
  --bg-void: #0B0F1A;
  --bg-elevated: #111827;
  --bg-surface: #1E2937;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent-teal: #14B8A6;
  --accent-cyan: #22D3EE;
  --accent-emerald: #34D399;
  --border-subtle: #334155;
  --glow-teal: 0 0 20px rgba(20, 184, 166, 0.18);
}

/* Base Enhancements */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-void);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Premium Typography Scale */
h1, .display {
  font-feature-settings: "tnum" "ss01";
  letter-spacing: -0.04em;
}

h2 {
  letter-spacing: -0.025em;
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.05;
  font-weight: 700;
}

/* Subtle Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
}

/* Premium Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #0F766E 100%);
  color: #0B0F1A;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.45);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-secondary:hover {
  background-color: var(--bg-elevated);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Glassmorphism / Elevated Cards */
.glass-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), 
              box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.2s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1), var(--glow-cyan);
  border-color: var(--accent-cyan);
}

/* Feature Cards - more refined */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.23, 1.0, 0.32, 1);
}

.feature-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), var(--glow-cyan);
  transform: translateY(-2px);
}

.feature-icon {
  transition: transform 0.4s cubic-bezier(0.23, 1.0, 0.32, 1), 
              color 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(2deg);
  color: var(--accent-cyan);
}

/* Stat Blocks */
.stat-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Form Styling - Premium Dark */
.input-premium {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.input-premium:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
  background-color: #0F172A;
}

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

/* Select styling */
select.input-premium {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

/* Success State */
.success-state {
  animation: fadeInScale 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modal */
.modal {
  animation: modalEnter 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Subtle Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Hero Visual - Phone Mockup */
.phone-mockup {
  background: #0F1320;
  border: 1px solid #334155;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
  position: relative;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-cyan),
    transparent
  );
  box-shadow: 0 0 12px var(--accent-cyan);
  animation: scan 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  z-index: 10;
}

@keyframes scan {
  0% { top: 18%; }
  45% { top: 82%; }
  55% { top: 82%; }
  100% { top: 18%; }
}

/* Trust Score Badge */
.trust-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: pulse-gentle 3s ease-in-out infinite;
}

@keyframes pulse-gentle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* ============================================
   BIOTECH THEME ENHANCEMENTS
   High-quality background images + matching form
   ============================================ */

/* Hero with premium biotech background */
.hero-biotech {
  background-image: 
    linear-gradient(
      to bottom, 
      rgba(11, 15, 26, 0.78) 0%, 
      rgba(11, 15, 26, 0.65) 35%, 
      rgba(11, 15, 26, 0.82) 100%
    ),
    url('hero-biotech.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  position: relative;
}

/* Subtle biotech lattice for waitlist / elevated sections */
.biotech-glass {
  background-image: 
    linear-gradient(rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.96)),
    url('lattice-teal.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-subtle);
}

/* Enhanced premium form inputs matching biotech theme */
.input-premium {
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
}

.input-premium:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
  background-color: rgba(15, 23, 42, 0.95);
}

/* Feature cards with biotech hover glow */
.feature-card:hover {
  border-color: var(--accent-teal);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), var(--glow-teal);
}

/* Scan line now uses teal accent for theme consistency */
.scan-line {
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-teal),
    transparent
  );
  box-shadow: 0 0 12px var(--accent-teal);
}

/* Navigation */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-cyan);
}

/* Footer */
.footer-link {
  transition: color 0.2s ease;
}

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

/* Responsive refinements */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .glass-card, .feature-card {
    padding: 1.25rem;
  }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
