/* hmbl — Veterinary Reproductive Aid */
/* Clinical, clean, modern design system */

:root {
  --blue-50: #f0f7ff;
  --blue-100: #e0efff;
  --blue-200: #b8dbff;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --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;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

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

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

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 65ch;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

nav.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-600);
  text-decoration: none;
}

.nav-logo span {
  color: var(--gray-400);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-600);
  background: var(--blue-50);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* Sections */
section {
  padding: 6rem 1.5rem;
}

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

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Hero Section */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 50%, var(--green-50) 100%);
  position: relative;
  overflow: hidden;
}

#home::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(59,130,246,0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--blue-600);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.badge svg {
  width: 16px;
  height: 16px;
  color: var(--green-500);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  pointer-events: none;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--gray-200);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-600);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Problem Section */
#problem {
  background: var(--gray-50);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.problem-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.problem-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.problem-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.problem-item h4 {
  margin-bottom: 0.25rem;
}

.problem-item p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* Solution Section */
#solution {
  background: var(--white);
}

.solution-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.solution-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--white);
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-card h4 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.ingredient-list {
  margin-top: 2rem;
}

.ingredient-list h3 {
  margin-bottom: 1rem;
}

.ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ingredient-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-600);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
}

/* Professionals Section */
#professionals {
  background: var(--gray-900);
  color: var(--white);
}

#professionals .section-label {
  background: rgba(59,130,246,0.15);
  color: var(--blue-200);
}

#professionals .section-title {
  color: var(--white);
}

#professionals .section-subtitle {
  color: var(--gray-400);
}

.pro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.dosage-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.dosage-table th,
.dosage-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.9rem;
}

.dosage-table th {
  background: rgba(59,130,246,0.12);
  color: var(--blue-200);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.dosage-table td {
  background: rgba(255,255,255,0.04);
  color: var(--gray-300);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dosage-table tr:last-child td {
  border-bottom: none;
}

.dosage-table tr:hover td {
  background: rgba(255,255,255,0.08);
}

.safety-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.safety-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--gray-300);
  font-size: 0.95rem;
}

.safety-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  color: var(--green-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
}

.pro-image img {
  width: 100%;
  border-radius: var(--radius);
  opacity: 0.85;
}

/* Testimonials Section */
#stories {
  background: var(--blue-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--gray-600);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-600);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.case-study {
  margin-top: 4rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.case-study img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.case-metric {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-600);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Buy Section */
#buy {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  color: var(--white);
  text-align: center;
}

#buy .section-label {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

#buy .section-title {
  color: var(--white);
}

#buy .section-subtitle {
  color: rgba(255,255,255,0.8);
  margin-left: auto;
  margin-right: auto;
}

.signup-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
}

.signup-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.signup-form input::placeholder {
  color: rgba(255,255,255,0.55);
}

.signup-form input:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.18);
}

.signup-form button {
  padding: 0.85rem 1.75rem;
  background: var(--white);
  color: var(--blue-600);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.signup-form button:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

.signup-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Footer */
footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

footer p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0 auto;
}

footer a {
  color: var(--gray-400);
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
  section {
    padding: 4rem 1.25rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .problem-grid,
  .solution-intro,
  .pro-content,
  .case-study {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image {
    order: -1;
  }

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

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

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

  .signup-form {
    flex-direction: column;
  }

  .case-metric {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-badges {
    flex-direction: column;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

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

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}
