:root {
  --bg: #f6f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: rgba(23, 32, 51, 0.08);
  --primary: #6c63ff;
  --primary-dark: #4d44eb;
  --accent: #0ea5a8;
  --shadow: 0 24px 60px rgba(24, 34, 66, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1160px;
}

:root[data-theme='dark'] {
  --bg: #09111f;
  --surface: rgba(16, 24, 40, 0.88);
  --surface-strong: #111a2c;
  --text: #eef2ff;
  --muted: #98a2b3;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #8b84ff;
  --primary-dark: #6c63ff;
  --accent: #2dd4bf;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(108, 99, 255, 0.15), transparent 32%),
    radial-gradient(circle at top right, rgba(14, 165, 168, 0.14), transparent 28%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(108, 99, 255, 0.06), rgba(14, 165, 168, 0.05));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(246, 247, 251, 0.72);
  border-bottom: 1px solid var(--line);
}

:root[data-theme='dark'] .topbar {
  background: rgba(9, 17, 31, 0.72);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow);
}

.nav-links,
.nav-actions,
.hero-actions,
.inline-actions,
.product-meta,
.product-card-footer,
.price-row,
.quantity-row,
.cart-total-row,
.results-bar,
.footer-grid,
.contact-grid,
.about-grid,
.shop-layout,
.timeline-grid,
.feature-grid,
.testimonial-grid,
.hero-stats {
  display: flex;
}

.nav-links {
  gap: 1.2rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  gap: 0.75rem;
  align-items: center;
}

.icon-btn,
.btn,
.chip,
.qty-btn {
  border: 0;
  border-radius: 999px;
  transition: 0.25s ease;
}

.icon-btn {
  background: var(--surface-strong);
  color: var(--text);
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  padding: 0.1rem 0.35rem;
  margin-left: 0.3rem;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
}

.hero-grid,
.about-grid,
.contact-grid,
.product-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero {
  padding-top: 4rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.86rem;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy p {
  max-width: 60ch;
}

.hero-actions,
.inline-actions,
.hero-stats,
.product-meta,
.product-card-footer,
.price-row,
.quantity-row,
.results-bar,
.cart-total-row {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-actions,
.inline-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover,
.icon-btn:hover,
.chip:hover,
.qty-btn:hover,
.btn-secondary:hover,
.nav-toggle:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-small {
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

.hero-stats {
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stats article,
.feature-card,
.testimonial,
.filter-card,
.form-card,
.card-panel,
.timeline-card,
.info-card,
.story-banner,
.product-card,
.cart-drawer,
.product-copy,
.product-gallery,
.not-found-wrap .card-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-stats article,
.feature-card,
.testimonial,
.filter-card,
.timeline-card,
.info-card {
  border-radius: var(--radius-sm);
  padding: 1.2rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
}

.hero-visual {
  position: relative;
}

.hero-card,
.story-banner,
.card-panel,
.form-card,
.product-copy,
.product-gallery {
  border-radius: var(--radius);
  padding: 1.5rem;
}

.hero-card {
  display: grid;
  gap: 1rem;
}

.hero-card img {
  border-radius: 22px;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 700;
}

.floating-card {
  animation: float 6s ease-in-out infinite;
}

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

.section-heading {
  margin-bottom: 2rem;
  max-width: 760px;
}

.feature-grid,
.testimonial-grid,
.timeline-grid {
  gap: 1.2rem;
  flex-wrap: wrap;
}

.feature-card,
.testimonial,
.timeline-card {
  flex: 1 1 260px;
}

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

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
}

.product-media {
  position: relative;
  padding: 1rem;
}

.product-media img,
.product-detail-image {
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(108, 99, 255, 0.08), rgba(14, 165, 168, 0.06));
}

.product-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(23, 32, 51, 0.85);
  color: white;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.product-info {
  padding: 0 1.2rem 1.2rem;
}

.product-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

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

.centered {
  margin-top: 2rem;
}

.story-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
}

.footer-grid {
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-grid > div {
  min-width: 180px;
  display: grid;
  gap: 0.55rem;
}

.footer h4 {
  margin-bottom: 0.5rem;
}

.page-hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.page-hero-compact {
  padding-bottom: 1rem;
}

.shop-layout {
  align-items: flex-start;
  gap: 1.5rem;
}

.shop-layout > * {
  min-width: 0;
}

.shop-layout {
  grid-template-columns: 290px minmax(0, 1fr);
}

.filter-panel {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1rem;
}

.filter-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.72rem 1rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--text);
}

.chip.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

.input-field {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
}

.input-field:focus {
  border-color: rgba(108, 99, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12);
}

.product-layout {
  align-items: stretch;
}

.product-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.product-rating {
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 700;
}

.product-description {
  margin-bottom: 1rem;
}

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

.clean-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.clean-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.detail-list {
  margin: 1.4rem 0;
}

.qty-btn {
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.info-stack,
.faq-list {
  display: grid;
  gap: 1rem;
}

.form-card {
  display: grid;
  gap: 1rem;
}

.form-card label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.form-message {
  margin: 0;
  font-weight: 700;
}

.form-message.success {
  color: #0f9b6b;
}

.form-message.error {
  color: #d64045;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 1.1rem 1.2rem;
  font-weight: 700;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 1.2rem 1.2rem;
  margin: 0;
}

.faq-item.open .faq-answer {
  max-height: 160px;
}

.timeline-card span {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(92vw, 400px);
  height: 100vh;
  z-index: 30;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: right 0.32s ease;
}

.cart-drawer.open {
  right: 0;
}

.cart-header,
.cart-item,
.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.cart-item {
  align-items: flex-start;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.8rem;
}

.cart-item img {
  width: 86px;
  border-radius: 14px;
}

.cart-controls {
  justify-content: flex-start;
  margin-top: 0.6rem;
}

.empty-cart {
  display: grid;
  place-items: center;
  text-align: center;
  height: 100%;
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 1.5rem;
}

.empty-cart p {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tiny-note {
  font-size: 0.86rem;
  margin-top: 0.9rem;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 17, 31, 0.44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 25;
}

.backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.not-found-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

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

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .product-layout,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

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

  .story-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .nav-wrap {
    position: relative;
    flex-wrap: wrap;
  }

  .product-grid,
  .feature-grid,
  .testimonial-grid,
  .timeline-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-actions,
  .inline-actions,
  .nav-actions,
  .hero-stats,
  .footer-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .icon-btn,
  .cart-btn {
    width: 100%;
  }

  .nav-actions {
    width: 100%;
  }

  .section {
    padding: 4.25rem 0;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.2rem, var(--container));
  }

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

  .hero-card,
  .story-banner,
  .card-panel,
  .form-card,
  .product-copy,
  .product-gallery {
    padding: 1.2rem;
  }
}
