:root {
  --bg-body: #050505;
  --bg-surface: #0f0f0f;
  --bg-surface-2: #1a1a1a;

  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-accent: #ef4444;

  --primary-color: #ffffff; /* Stark white for high contrast premium feel */
  --accent-glow: rgba(239, 68, 68, 0.5);

  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  --spacer-base: 1rem;
  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 12px;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.loading {
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-accent);
}

/* Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem; /* Slightly tighter on mobile */
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 2em;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 50px; /* Pill shape for modern feel */
  transition: var(--transition-smooth);
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-body);
  border: 1px solid var(--text-primary);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

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

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

.btn-sm {
  padding: 0.5em 1.2em;
  font-size: 0.75rem;
}

@media (max-width: 400px) {
  .btn {
    padding: 0.8em 1.5em;
    font-size: 0.85rem;
  }
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
  background: rgba(5, 5, 5, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem; /* Mobile-first logo size */
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .logo {
    font-size: 1.5rem;
  }
}

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

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2rem;
  }
  .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
  }
  .nav-links a:hover {
    color: var(--text-primary);
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6) contrast(1.1);
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg-body) 0%, transparent 60%),
    linear-gradient(to right, var(--bg-body) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center; /* Center for mobile */
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
    margin: 0;
  }
}

.badge {
  display: inline-block;
  padding: 0.4em 1em;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subheadline {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

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

/* Features */
.features {
  padding: 4rem 0; /* Reduced mobile padding */
}

@media (min-width: 768px) {
  .features {
    padding: 8rem 0;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column for mobile */
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.feature-card {
  background: var(--bg-surface);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  background: var(--bg-surface-2);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
}

.icon-box {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* Product Section */
.products {
  padding: 4rem 0;
  background: linear-gradient(
    180deg,
    var(--bg-body) 0%,
    var(--bg-surface) 100%
  );
}

@media (min-width: 768px) {
  .products {
    padding: 8rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 3rem;
  }
}

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

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.product-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.product-card.featured {
  border-color: var(--text-accent);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.1);
  transform: scale(1.05);
  z-index: 2;
}

/* On mobile, reset scale */
@media (max-width: 768px) {
  .product-card.featured {
    transform: none;
  }
}

.featured-banner {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--text-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 10;
}

.card-image {
  position: relative;
  padding: 2rem;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 70%
  );
  display: flex;
  justify-content: center;
}

.card-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s ease;
}

.product-card:hover .card-image img {
  transform: scale(1.05) translateY(-5px);
}

.size-tag {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.2);
  font-size: 3rem;
  font-weight: 700;
  pointer-events: none;
}

.card-details {
  padding: 2rem;
  text-align: center;
}

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

.card-details .desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.card-details .price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

@media (min-width: 768px) {
  .card-details .price {
    font-size: 2rem;
  }
}

/* Nutrition */
.nutrition {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .nutrition {
    padding: 8rem 0;
  }
}

.nutrition-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .nutrition-layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  .stat-grid {
    display: flex;
    gap: 3rem;
    text-align: left;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .stat-num {
    font-size: 2.5rem;
  }
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.check-list {
  list-style: none;
}

.check-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-accent);
  border-radius: 50%;
  margin-right: 12px;
}

.nutrition-chart {
  width: 100%;
  overflow-x: auto; /* Scrollable table on mobile */
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nutrition-chart table {
  width: 100%;
  border-collapse: collapse;
  min-width: 280px;
}

.nutrition-chart th,
.nutrition-chart td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nutrition-chart th {
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Usage */
.usage {
  padding: 4rem 0;
  background: var(--bg-surface);
}

@media (min-width: 768px) {
  .usage {
    padding: 8rem 0;
  }
}

.usage h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

@media (min-width: 768px) {
  .usage h2 {
    font-size: 3.5rem;
    margin-bottom: 5rem;
  }
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-num {
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

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

/* Testimonials */
.testimonials {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .testimonials {
    padding: 8rem 0;
  }
}

.reviews-scroller {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: var(--radius-md);
}

.stars {
  color: #fbbf24;
  margin-bottom: 1rem;
}

.review-card cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* FAQ */
.faq {
  padding: 4rem 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .faq {
    padding: 8rem 0;
  }
}

.faq h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

@media (min-width: 768px) {
  .faq h2 {
    font-size: 2.5rem;
  }
}

details {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

summary {
  cursor: pointer;
  padding: 1.5rem 0;
  font-weight: 500;
  list-style: none;
  position: relative;
  font-size: 1.1rem;
  transition: color 0.3s;
}

summary:hover {
  color: var(--text-accent);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-weight: 300;
  font-size: 1.5rem;
}

details[open] summary::after {
  content: "-";
}

.content {
  padding-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0 2rem;
  background: var(--bg-body);
}

@media (min-width: 768px) {
  footer {
    padding: 6rem 0 3rem;
  }
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand {
  text-align: center;
  width: 100%;
}

.footer-brand p {
  margin: 1rem auto 0;
  max-width: 300px;
}

@media (min-width: 768px) {
  .footer-brand {
    text-align: left;
    width: auto;
  }
  .footer-brand p {
    margin: 1rem 0 0;
  }
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.2);
}

/* Animation Utilities */
.fade-in,
.fade-in-up,
.fade-in-right,
.fade-in-left {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

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

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-body);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

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

.loader-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: -0.05em;
  animation: shimmer 2s infinite linear;
}

.loader-bar {
  width: 150px;
  height: 2px;
  background: rgba(255,255,255,0.05);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--text-accent);
  animation: load 1.5s infinite ease-in-out;
}

@keyframes shimmer {
  0% { opacity: 0.5; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.5; transform: scale(0.98); }
}

@keyframes load {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Trust Badges */
.trust-badges {
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.badge-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 3rem;
  justify-items: center;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.badge-item:hover {
  opacity: 0.8;
}

.badge-item svg {
  width: 32px;
  height: 32px;
  color: var(--text-accent);
}

.badge-item span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    letter-spacing: -0.03em;
  }

  .subheadline {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .cta-group {
    justify-content: center;
  }

  .btn-block {
    width: 100%;
  }

  /* Optimize tap targets for mobile */
  summary {
    padding: 1.25rem 0;
  }
}

