:root {
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --text: #111827;
  --muted: #6b7280;
  --primary: #2563eb;
  --secondary: #7c3aed;
  --accent: #06b6d4;
  --shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
  --radius: 28px;
}

[data-theme='dark'] {
  --bg: #090b13;
  --surface: rgba(19, 20, 34, 0.78);
  --surface-strong: rgba(16, 18, 36, 0.92);
  --text: #f8fafc;
  --muted: #c7d2fe;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.15), transparent 25%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.12), transparent 20%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

section {
  position: relative;
}

.glass-nav {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

[data-theme='dark'] .glass-nav {
  background: rgba(10, 12, 24, 0.75);
  border-color: rgba(255, 255, 255, 0.12);
}

.navbar-brand .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.navbar-brand .brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.navbar .nav-link {
  color: var(--text);
  position: relative;
  transition: color 0.25s ease;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

.nav-actions .icon-btn,
.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.nav-actions .icon-btn:hover,
.btn-outline-white:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

.btn-outline-white {
  color: var(--text);
}

.mode-toggle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.hero-section {
  padding: 8rem 0 6rem;
  overflow: hidden;
}

.hero-copy .eyebrow,
.section-header .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

.hero-copy h1,
.section-header h2,
.offer-card h2,
.contact-copy h2 {
  font-family: 'Poppins', sans-serif;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 4vw, 4.4rem);
  line-height: 1.02;
}

.hero-copy p,
.section-header p,
.about-copy p,
.testimonial-card p,
.newsletter-card p,
.contact-copy p {
  font-size: 1rem;
  line-height: 1.8;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.18);
}

.btn-gradient:hover {
  transform: translateY(-2px);
}

.hero-buttons .btn-outline-primary {
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
}

.hero-buttons .btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.92);
}

.hero-stats {
  gap: 1rem;
}

.stat-card {
  width: 160px;
  padding: 1rem 1.25rem;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

.hero-image-wrap {
  position: relative;
}

.hero-image {
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.55));
  box-shadow: var(--shadow);
}

.hero-img {
  border-radius: 28px;
  transform: translateY(-10px);
}

.product-tag,
.product-card {
  position: absolute;
  width: calc(100% - 4rem);
  left: 2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
}

.product-tag {
  top: 1.5rem;
  padding: 0.95rem 1rem;
}

.product-card {
  bottom: 1.5rem;
  padding: 1rem 1.2rem;
}

.product-card h6 {
  margin-bottom: 0.25rem;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.7;
}

.shape-1 {
  width: 220px;
  height: 220px;
  top: 10%;
  left: -80px;
  background: rgba(37, 99, 235, 0.25);
}

.shape-2 {
  width: 180px;
  height: 180px;
  bottom: 10%;
  right: -70px;
  background: rgba(124, 58, 237, 0.18);
}

.shape-3 {
  width: 120px;
  height: 120px;
  bottom: 22%;
  left: 20%;
  background: rgba(6, 182, 212, 0.28);
}

.section-padding {
  padding: 6rem 0;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-top: 1rem;
}

.bg-neutral {
  background: rgba(255, 255, 255, 0.9);
}

.category-card,
.product-card,
.feature-card,
.testimonial-card,
.newsletter-card,
.contact-form,
.offer-card {
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel-hover:hover {
  transform: translateY(-10px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.14);
}

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

.category-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

.bg-primary-soft {
  background: rgba(37, 99, 235, 0.12);
}

.bg-secondary-soft {
  background: rgba(124, 58, 237, 0.14);
}

.bg-accent-soft {
  background: rgba(6, 182, 212, 0.15);
}

.category-card h5,
.feature-card h5 {
  margin-bottom: 0.65rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.product-card {
  overflow: hidden;
}

.product-card .product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  border-radius: 999px;
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
}

.product-image {
  transition: transform 0.45s ease;
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-content {
  padding: 1.5rem 1.4rem 1.6rem;
}

.product-actions .btn,
.product-actions .icon-btn {
  min-width: 48%;
}

.product-actions .btn {
  border-radius: 16px;
}

.product-actions .icon-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
}

.product-actions .icon-btn:hover {
  color: var(--primary);
}

.rating {
  color: #f59e0b;
  margin-bottom: 0.75rem;
}

.price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.price-new {
  font-size: 1.2rem;
  font-weight: 700;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.about-copy h2,
.contact-copy h2,
.offer-card h2,
.newsletter-card h2 {
  margin-top: 1rem;
}

.offer-banner {
  margin-top: 2rem;
}

.offer-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.98), rgba(124, 58, 237, 0.94));
  border: none;
  color: #fff;
}

.offer-copy p {
  color: rgba(255, 255, 255, 0.86);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 1rem;
}

.countdown-grid div {
  min-width: 75px;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
}

.countdown-grid strong {
  display: block;
  font-size: 1.5rem;
}

.countdown-grid span {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.offer-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  top: -80px;
  right: -80px;
  filter: blur(50px);
}

.testimonial-card {
  padding: 2rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  object-fit: cover;
}

.newsletter-card {
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.newsletter-form .form-control {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.contact-form .form-control {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.82);
}

.contact-form label {
  font-weight: 600;
}

.footer-section {
  background: #0f172a;
}

.footer-brand .brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.social-icons a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #fff;
}

.footer-bottom {
  border-color: rgba(255, 255, 255, 0.12);
}

#backToTop {
  border-color: rgba(255, 255, 255, 0.2);
}

.loader {
  position: fixed;
  inset: 0;
  background: rgba(248, 250, 252, 0.95);
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

[data-theme='dark'] .loader {
  background: rgba(9, 11, 19, 0.95);
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 72px;
  height: 72px;
  border: 8px solid rgba(37, 99, 235, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}

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

.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  min-width: 280px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1050;
}

.toast-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast-notification::before {
  content: '✔';
  margin-right: 0.75rem;
}

@media (max-width: 992px) {
  .hero-section {
    padding-top: 6rem;
  }

  .hero-stats {
    justify-content: space-between;
  }

  .hero-image {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-wrap {
    margin-top: 1.5rem;
  }

  .category-card,
  .product-card,
  .feature-card,
  .testimonial-card,
  .newsletter-card,
  .contact-form,
  .offer-card {
    border-radius: 24px;
  }

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

  .countdown-grid {
    grid-template-columns: repeat(2, auto);
  }
}

@media (max-width: 576px) {
  .navbar-brand .brand-name {
    font-size: 0.95rem;
  }

  .nav-actions {
    gap: 1rem;
  }

  .section-padding {
    padding: 4.5rem 0;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .hero-image {
    padding: 1.5rem;
  }

  .stat-card {
    width: 100%;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
  }

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

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