/* =========================================
   PREMIUM RESPONSIVE THEME - PYTO ATOMY
   ========================================= */

:root {
  /* Colors */
  --bg-dark: #050507;
  --bg-panel: rgba(20, 20, 35, 0.6);
  --primary: #6366f1;
  --accent: #06b6d4;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --success: #10b981;
  --border: rgba(255, 255, 255, 0.08);

  /* Spacing System */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 80px;
  /* Desktop section spacing */

  /* Font Sizes (Responsive Base) */
  --font-h1: clamp(2.5rem, 5vw, 4.5rem);
  --font-h2: clamp(1.8rem, 4vw, 3rem);
  --font-body: 1rem;

  /* Effects */
  --glass: blur(12px);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --radius: 20px;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Base --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: white;
  line-height: 1.1;
}

/* --- Ambient Background --- */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  background: #1e1b4b;
  top: -10%;
  left: -10%;
  animation: float 10s infinite alternate;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  background: #0f2e2e;
  bottom: -10%;
  right: -10%;
  animation: float 15s infinite alternate-reverse;
}

.orb-3 {
  width: 30vw;
  height: 30vw;
  background: rgba(99, 102, 241, 0.1);
  top: 40%;
  left: 30%;
}

@keyframes float {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(30px, 30px);
  }
}

/* --- Layout Utils --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.narrow-width {
  max-width: 600px;
}

.center {
  text-align: center;
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.bg-dim {
  background: rgba(255, 255, 255, 0.02);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 70px;
  background: rgba(5, 5, 7, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: 0.3s;
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
}

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

/* Desktop Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-internal {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: white;
}

.btn-nav {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  align-items: center;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50px;
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: var(--font-h1);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 90%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 8px;
}

.cta-stack {
  display: flex;
  gap: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-glow);
  transition: 0.3s;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hero Image & Float */
.hero-image-box {
  position: relative;
  display: flex;
  justify-content: center;
}

.glass-display {
  position: relative;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border: 1px solid var(--border);
  backdrop-filter: blur(5px);
}

.product-img {
  width: 100%;
  max-width: 450px;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  transform: rotate(-5deg);
  transition: 0.5s;
}

.glass-display:hover .product-img {
  transform: rotate(0) scale(1.05);
}

.float-stat {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  padding: 10px 16px;
  border-radius: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: bounce 3s infinite ease-in-out;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* --- Stats Bar (Scrollable) --- */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  padding: 20px 0;
}

.stats-scroller {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.stat-card {
  text-align: center;
  min-width: 100px;
}

.stat-card h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

/* --- Feature Grid --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.glass-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: var(--glass);
  transition: 0.3s;
}

.panel-head h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.list-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: start;
}

.icon-circle {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.list-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.list-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.highlight-panel {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
  border-color: rgba(99, 102, 241, 0.2);
}

.highlight-p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.7;
}

.mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-chip {
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Horizontal Scrollers (Benefits/Reviews) --- */
/* The logic for desktop is grid, but we use flex for scrolling logic */
.card-scroller {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.benefit-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.3s;
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.card-img {
  height: 180px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Ingredients */
.ingredients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.ing-card {
  text-align: center;
  width: 140px;
}

.ing-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--border);
  margin-bottom: 15px;
}

/* Video & Table */
.grid-50-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.video-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px;
}

.video-thumb img {
  width: 100%;
  display: block;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  border: none;
  font-size: 20px;
  color: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
}

.premium-table th {
  text-align: left;
  padding: 15px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.premium-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.brand-col {
  background: rgba(99, 102, 241, 0.05);
  font-weight: 600;
  color: white;
  border-radius: 8px;
}

/* Testimonials */
.review-scroller {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.review-card {
  padding: 24px;
}

.review-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
}

.review-head img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.stars {
  color: #fbbf24;
  font-size: 0.8rem;
}

/* --- Order Form --- */
.border-glow {
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-glow);
}

.offer-banner {
  background: var(--accent);
  color: #000;
  text-align: center;
  font-weight: 700;
  padding: 8px;
  font-size: 0.9rem;
  border-radius: 12px 12px 0 0;
  margin: -30px -30px 20px -30px;
}

.order-header {
  text-align: center;
  margin-bottom: 30px;
}

.price-tag {
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.cut-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1rem;
  margin-right: 10px;
}

.final-price {
  color: var(--success);
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: white;
  outline: none;
  transition: 0.3s;
  font-size: 1rem;
}

.input-group input:focus {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.4);
}

.input-group label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: 0.3s;
  font-size: 1rem;
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
  top: -10px;
  left: 10px;
  font-size: 0.75rem;
  background: var(--bg-dark);
  padding: 0 5px;
  color: var(--primary);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--success);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 15px;
}

/* FAQ */
.acc-item {
  border-bottom: 1px solid var(--border);
}

.acc-head {
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  transition: 0.3s;
}

.acc-item.active .acc-body {
  padding-bottom: 20px;
  max-height: 100px;
}

.acc-item.active span {
  transform: rotate(45deg);
  color: var(--primary);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.brand-footer {
  font-size: 1.2rem;
  color: white;
  font-weight: 700;
  margin-bottom: 10px;
}

.links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 5px;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s var(--ease);
}

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

/* =========================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================= */

/* Tablet (1024px and down) */
@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image-box {
    order: -1;
    margin-bottom: 30px;
  }

  .hero-desc {
    margin: 0 auto 30px;
  }

  .trust-row {
    justify-content: center;
  }

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

  .split-layout,
  .grid-50-50 {
    grid-template-columns: 1fr;
  }

  .card-scroller {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile (768px and down) */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 50px;
    /* Smaller section spacing */
    --spacing-md: 15px;
  }

  /* Navbar Mobile Logic */
  .mobile-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 7, 0.98);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: 0.4s var(--ease);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-internal {
    flex-direction: column;
    width: 100%;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  /* Stats Bar Scroll */
  .stats-scroller {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 0;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .stat-card {
    min-width: 120px;
    scroll-snap-align: center;
  }

  /* Snap Scroll Containers for Cards */
  .card-scroller,
  .review-scroller {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 5px 30px 5px;
    /* Space for shadow */
    grid-template-columns: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .benefit-card,
  .review-card {
    min-width: 280px;
    /* Fixed width for scrolling */
    scroll-snap-align: center;
  }

  /* Order Form */
  .offer-banner {
    margin: -20px -20px 20px -20px;
  }

  .order-card {
    padding: 20px;
  }

  /* General Tweaks */
  .hero {
    padding-top: 90px;
  }

  .float-stat {
    display: none;
  }

  /* Hide floaters on mobile */
  .glass-display {
    width: 80%;
    margin: 0 auto;
  }

  .cta-stack {
    flex-direction: column;
    width: 100%;
  }

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

  .table-wrap {
    overflow-x: auto;
  }

  .premium-table {
    min-width: 400px;
  }

  /* Ingredients */
  .ingredients-grid {
    gap: 15px;
  }

  .ing-card {
    width: 45%;
  }
}