/* ============================================
   REFERTI.BIO-CLINIC.IT — Main Stylesheet
   Design System: Medical, Professional, Trustworthy
   Matching bio-clinic.it brand identity
   ============================================ */

/* === CSS VARIABLES === */
:root {
  /* Primary Colors - Bio-Clinic Green */
  --primary: #7CBA3D;
  --primary-dark: #008238;
  --primary-darker: #00704A;
  --primary-light: #9ccc65;
  --primary-bg: #f0f7e6;
  --primary-bg-light: #f7faf2;

  /* Secondary Colors */
  --secondary: #43A140;
  --secondary-light: #67a671;

  /* Accent Colors */
  --accent: #00d084;
  --accent-light: #34e2e4;

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Brand Gradient */
  --gradient-brand: linear-gradient(135deg, #00704A 0%, #7CBA3D 100%);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(0,112,74,0.05) 0%, rgba(124,186,61,0.05) 100%);
  --gradient-hero: linear-gradient(160deg, #f7faf2 0%, #eef5e6 30%, #e8f4fd 100%);

  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', var(--font-primary);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-card: 0 4px 24px -4px rgba(0, 112, 74, 0.12);
  --shadow-card-hover: 0 12px 40px -8px rgba(0, 112, 74, 0.18);
  --shadow-auth: 0 20px 60px -12px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-padding: 1.5rem;

  /* Header */
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--gray-900); line-height: 1.2; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* === SKIP LINK === */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 20px; top: 20px;
  width: auto; height: auto; overflow: visible;
  background: var(--gray-900); color: var(--white);
  padding: 10px 20px; z-index: 100000; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.875rem;
}

/* === CONTAINER === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.container--narrow {
  max-width: var(--container-narrow);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: var(--header-height);
  transition: box-shadow var(--transition-base);
}
.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gray-900);
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--primary-dark);
  background: var(--primary-bg-light);
}

.nav-link--back {
  color: var(--primary-dark);
  background: var(--primary-bg);
}
.nav-link--back:hover {
  background: var(--primary-bg);
  color: var(--primary-darker);
}

.nav-link--phone {
  color: var(--primary-dark);
  font-weight: 600;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: var(--space-4xl);
  background: var(--gradient-hero);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}
.hero-shape--1 {
  width: 500px; height: 500px;
  background: rgba(124, 186, 61, 0.08);
  top: -100px; right: -100px;
  animation: float 20s ease-in-out infinite;
}
.hero-shape--2 {
  width: 400px; height: 400px;
  background: rgba(0, 208, 132, 0.06);
  bottom: -80px; left: -80px;
  animation: float 25s ease-in-out infinite reverse;
}
.hero-shape--3 {
  width: 300px; height: 300px;
  background: rgba(0, 112, 74, 0.04);
  top: 40%; left: 30%;
  animation: float 18s ease-in-out infinite 5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-dna {
  position: absolute;
  right: 5%;
  top: 10%;
  height: 80%;
  opacity: 0.4;
}
.dna-helix {
  height: 100%;
  width: auto;
  animation: dnaFloat 30s ease-in-out infinite;
}
@keyframes dnaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero Content (Left) */
.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 112, 74, 0.08);
  border: 1px solid rgba(0, 112, 74, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-darker);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}
.hero-badge svg { color: var(--primary-dark); flex-shrink: 0; }

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-title--highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: var(--space-2xl);
}
.hero-subtitle strong {
  color: var(--gray-800);
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.hero-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 112, 74, 0.08);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  color: var(--primary-dark);
}

.hero-feature strong {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-800);
  margin-bottom: 2px;
}
.hero-feature span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}
.trust-item strong { color: var(--gray-800); font-weight: 700; }
.trust-item svg { color: var(--warning); }
.trust-divider {
  width: 1px; height: 20px; background: var(--gray-200);
}

/* ============================================
   AUTH CARD
   ============================================ */
.auth-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-auth);
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-tabs {
  display: flex;
  position: relative;
  background: var(--gray-50);
  padding: 4px;
  margin: var(--space-lg);
  margin-bottom: 0;
  border-radius: var(--radius-lg);
}

.auth-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}
.auth-tab.active {
  color: var(--primary-dark);
}
.auth-tab:hover:not(.active) {
  color: var(--gray-700);
}

.auth-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-spring);
}
.auth-tab-indicator.right {
  transform: translateX(100%);
}

.auth-panel {
  padding: var(--space-lg);
  display: none;
}
.auth-panel.active {
  display: block;
  animation: fadeSlideIn 0.3s ease;
}
.auth-panel[hidden] {
  display: none;
}

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

/* ============================================
   FORMS
   ============================================ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-dark);
}
.form-link:hover { text-decoration: underline; }

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--gray-400);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  padding-left: 2.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  outline: none;
}
.form-input::placeholder {
  color: var(--gray-400);
}
.form-input:hover {
  border-color: var(--gray-300);
}
.form-input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(124, 186, 61, 0.15);
}
.form-input:focus + .input-icon,
.form-input:focus ~ .input-icon {
  color: var(--primary-dark);
}
.form-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.form-input--uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* No icon variant */
.form-row .input-wrapper .form-input {
  padding-left: 0.85rem;
}

.form-hint {
  font-size: 0.7rem;
  color: var(--gray-400);
}

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  min-height: 0;
  transition: all var(--transition-fast);
}
.form-error:not(:empty) {
  min-height: 1.2em;
}

/* Toggle password */
.toggle-password {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  padding: 0.25rem;
  color: var(--gray-400);
  transition: color var(--transition-fast);
}
.toggle-password:hover { color: var(--gray-600); }

/* Password strength */
.password-strength {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  transition: all var(--transition-slow);
}
.strength-fill.weak { width: 25%; background: var(--danger); }
.strength-fill.fair { width: 50%; background: var(--warning); }
.strength-fill.good { width: 75%; background: var(--info); }
.strength-fill.strong { width: 100%; background: var(--success); }

.strength-text {
  font-size: 0.7rem;
  font-weight: 500;
  min-width: 50px;
}
.strength-text.weak { color: var(--danger); }
.strength-text.fair { color: var(--warning); }
.strength-text.good { color: var(--info); }
.strength-text.strong { color: var(--success); }

/* Consents */
.form-consents {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: var(--space-md);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.4;
}
.consent-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkmark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: all var(--transition-fast);
  position: relative;
  margin-top: 1px;
}
.consent-checkbox input:checked + .checkmark {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.consent-checkbox input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-checkbox a {
  color: var(--primary-dark);
  text-decoration: underline;
}
.required { color: var(--danger); }

/* Form message */
.form-message {
  padding: 0;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  text-align: center;
  transition: all var(--transition-base);
}
.form-message:not(:empty) {
  padding: var(--space-sm) var(--space-md);
}
.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 112, 74, 0.3);
}
.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(0, 112, 74, 0.4);
  transform: translateY(-1px);
  color: var(--white);
}
.btn--primary:active {
  transform: translateY(0);
}

.btn--full {
  width: 100%;
}

.btn--outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}
.btn--outline:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid transparent;
}
.btn--ghost:hover {
  background: var(--primary-bg);
}

.btn--text {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 0.8rem;
  padding: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  justify-content: center;
}
.btn--text:hover { color: var(--primary-dark); }

.btn--white {
  background: var(--white);
  color: var(--primary-darker);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: var(--primary-darker);
}

.btn--white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn--white-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

/* Loading state */
.btn.loading .btn-text { visibility: hidden; }
.btn .btn-loader { display: none; position: absolute; }
.btn.loading .btn-loader { display: flex; }
.btn.loading { position: relative; pointer-events: none; }

/* ============================================
   2FA / OTP
   ============================================ */
.twofa-content {
  text-align: center;
  padding: var(--space-md) 0;
}
.twofa-icon {
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
}
.twofa-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.twofa-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

.otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Inter', monospace;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  outline: none;
  transition: all var(--transition-base);
}
.otp-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 186, 61, 0.15);
  background: var(--white);
}
.otp-input.filled {
  border-color: var(--primary-dark);
  background: var(--primary-bg-light);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

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

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 550px;
  margin: 0 auto;
}

/* ============================================
   STEPS SECTION
   ============================================ */
.section--steps {
  background: var(--white);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step-card {
  text-align: center;
  padding: var(--space-xl);
  max-width: 280px;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
}

.step-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-md);
  color: var(--primary-dark);
}

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

.step-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 5rem;
  color: var(--gray-300);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.section--features {
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-slow);
}
.feature-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
  border-color: transparent;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}
.feature-icon--green { background: rgba(0, 112, 74, 0.08); color: var(--primary-dark); }
.feature-icon--blue { background: rgba(59, 130, 246, 0.08); color: #2563eb; }
.feature-icon--teal { background: rgba(0, 208, 132, 0.08); color: #059669; }
.feature-icon--purple { background: rgba(139, 92, 246, 0.08); color: #7c3aed; }
.feature-icon--orange { background: rgba(245, 158, 11, 0.08); color: #d97706; }
.feature-icon--red { background: rgba(239, 68, 68, 0.08); color: #dc2626; }

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================
   LAB SECTION
   ============================================ */
.section--lab {
  background: var(--white);
}

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

.lab-content .section-badge {
  display: inline-block;
}
.lab-content .section-title {
  text-align: left;
  font-size: 2rem;
}

.lab-desc {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.lab-stats {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.lab-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}
.lab-stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

.lab-schedule {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.lab-schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}
.lab-schedule-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary-dark);
}

.lab-actions {
  display: flex;
  gap: var(--space-md);
}

/* Lab Visual (report cards) */
.lab-visual {
  position: relative;
  perspective: 1000px;
}

.lab-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
}
.lab-card:hover {
  box-shadow: var(--shadow-card);
}

.lab-card--main {
  position: relative;
  z-index: 3;
  border-left: 4px solid var(--success);
}
.lab-card--secondary {
  margin-top: -8px;
  margin-left: 24px;
  position: relative;
  z-index: 2;
  border-left: 4px solid var(--success);
  opacity: 0.9;
}
.lab-card--tertiary {
  margin-top: -8px;
  margin-left: 48px;
  position: relative;
  z-index: 1;
  border-left: 4px solid var(--warning);
  opacity: 0.8;
}

.lab-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.lab-card-content {
  flex: 1;
  min-width: 0;
}
.lab-card-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.lab-card-content p {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.lab-card-status {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.lab-card-status--ready {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
}
.lab-card-status--pending {
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
}

.lab-card-download {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border: none;
  border-radius: var(--radius-lg);
  color: var(--primary-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.lab-card-download:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.section--faq {
  background: var(--gray-50);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: all var(--transition-base);
}
.faq-item:hover {
  border-color: var(--gray-200);
}
.faq-item[open] {
  border-color: rgba(0, 112, 74, 0.2);
  box-shadow: 0 2px 12px rgba(0, 112, 74, 0.06);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }

.faq-chevron {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform var(--transition-base);
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary-dark);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
  animation: fadeSlideIn 0.3s ease;
}

/* ============================================
   CTA SECTION
   ============================================ */
.section--cta {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.cta-card {
  background: var(--gradient-brand);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  color: var(--white);
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.cta-desc {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 500px;
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-md);
  text-decoration: none;
}
.footer-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
  opacity: 0.6;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--white);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.footer-contact svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.5);
}
.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.4;
}
.footer-bottom-sub {
  margin-top: 0.25rem;
  font-size: 0.7rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    order: 1;
  }
  .auth-card {
    order: 2;
    margin: 0 auto;
  }
  .hero-title { font-size: 2.5rem; }
  .hero-features { align-items: center; }
  .hero-feature { text-align: left; }
  .hero-trust { justify-content: center; }
  .hero-dna { display: none; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  
  .lab-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .lab-content .section-title { text-align: center; }
  .lab-content { text-align: center; }
  .lab-stats { justify-content: center; }
  .lab-schedule { align-items: center; }
  .lab-actions { justify-content: center; }
  .lab-visual { max-width: 500px; margin: 0 auto; }

  .cta-card {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --space-4xl: 3.5rem;
  }

  .hide-mobile { display: none !important; }

  .header-container { padding: 0 1rem; }
  .logo-name { font-size: 1.1rem; }
  .logo-sub { font-size: 0.6rem; }
  .logo-icon { width: 36px; height: 36px; }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: var(--space-3xl);
  }

  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }

  .section-title { font-size: 1.75rem; }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }
  .step-connector {
    transform: rotate(90deg);
    padding: 0;
    margin: -0.5rem 0;
  }

  .features-grid { grid-template-columns: 1fr; }

  .lab-stats { flex-direction: column; gap: var(--space-md); }

  .cta-card { padding: var(--space-xl); }
  .cta-title { font-size: 1.35rem; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }

  .form-row { grid-template-columns: 1fr; }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .auth-card { margin: 0 -0.5rem; border-radius: var(--radius-xl); }
  .auth-tabs { margin: var(--space-md); }
  .auth-panel { padding: var(--space-md); }
  
  .otp-inputs { gap: 0.35rem; }
  .otp-input { width: 42px; height: 48px; font-size: 1.25rem; }
  
  .hero-trust { flex-wrap: wrap; justify-content: center; }
}

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

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Selection color */
::selection {
  background: rgba(124, 186, 61, 0.2);
  color: var(--gray-900);
}
