/* ============================================
   OHEO RECOVERY VERIFICATION SYSTEM - CSS
   ============================================ */

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1a213a;
  --bg-tertiary: #2a2f4a;
  --color-primary: #3b82f6;
  --color-accent: #22c55e;
  --color-text: #ffffff;
  --color-muted: #94a3b8;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

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

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

/* ============================================
   LAYOUT & SPACING
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-dark {
  background-color: var(--bg-secondary);
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
}

nav a {
  font-size: 0.95rem;
  color: var(--color-text);
  transition: var(--transition);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  border-bottom-color: var(--color-primary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-primary);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--bg-primary);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background-color: transparent;
  color: var(--color-accent);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite reverse;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.hero .btn {
  margin: 0.5rem;
}

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

/* ============================================
   CARDS
   ============================================ */

.card {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  border-color: var(--color-primary);
  background-color: var(--bg-tertiary);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
}

.card-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin-bottom: 0;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

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

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

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

/* ============================================
   RECOVERY DETAILS
   ============================================ */

.recovery-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--border-radius);
  padding: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  animation: slideIn 0.6s ease;
}

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

.recovery-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(34, 197, 94, 0.2);
  border: 1px solid var(--color-accent);
  border-radius: 50px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.status-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.recovery-id {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.recovery-date {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline {
  position: relative;
  margin: 3rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
  transform: translateX(-1px);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  animation: fadeInTimeline 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

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

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: auto;
  width: calc(50% - 40px);
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 0;
  width: calc(50% - 40px);
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: var(--color-primary);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: scaleIn 0.6s ease;
}

@keyframes scaleIn {
  from {
    transform: translateX(-50%) scale(0);
  }
  to {
    transform: translateX(-50%) scale(1);
  }
}

.timeline-item:nth-child(even) .timeline-dot {
  background-color: var(--color-accent);
}

.timeline-content {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.timeline-content h4 {
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ============================================
   BEFORE/AFTER SECTION
   ============================================ */

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.comparison-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid rgba(59, 130, 246, 0.2);
  transition: var(--transition);
  cursor: pointer;
}

.comparison-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
}

.comparison-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.comparison-label {
  background-color: var(--bg-secondary);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

.comparison-item.before .comparison-label {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-top: 2px solid #ef4444;
}

.comparison-item.after .comparison-label {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--color-accent);
  border-top: 2px solid var(--color-accent);
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.stat:hover {
  border-color: var(--color-accent);
  transform: scale(1.05);
}

.stat-number {
  font-family: 'Space Grotesk', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  color: var(--color-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   VERIFICATION BADGE
   ============================================ */

.badge-container {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.verification-badge {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--color-primary), var(--color-accent), var(--color-primary));
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spin 20s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.badge-inner {
  background-color: var(--bg-primary);
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.badge-inner h3 {
  margin-bottom: 0.5rem;
  margin-top: 0;
  color: var(--color-accent);
}

.badge-inner p {
  margin-bottom: 0;
  font-size: 0.75rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  padding: 3rem 0 1rem;
  margin-top: 6rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-muted);
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
}

.scroll-reveal.visible {
  animation: fadeInUp 0.8s ease forwards;
}

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

@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

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

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    width: auto;
    text-align: left;
  }

  .timeline-dot {
    left: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 4rem 0;
  }

  nav ul {
    gap: 1.5rem;
    font-size: 0.85rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .verification-badge {
    width: 200px;
    height: 200px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent);
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.hidden {
  display: none !important;
}
