/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050510;
  --bg-elevated: #0a0a18;
  --bg-card: #0f0f1f;
  --text: #e8e8f0;
  --text-muted: #9898b0;
  --accent: #6b8cff;
  --accent-glow: #4d6fff;
  --gold: #d4af37;
  --gold-light: #f0d060;
  --holographic: linear-gradient(135deg, #6b8cff, #a78bfa, #38bdf8, #818cf8);
  --border: #1e1e35;
  --radius: 14px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Orbitron', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

/* Cosmic background layers */
.stars {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 50px 160px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90px 40px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 130px 80px, #fff, transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.7), transparent);
  background-size: 200px 200px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.nebula {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(80, 40, 180, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(40, 60, 160, 0.15), transparent),
    radial-gradient(ellipse 50% 30% at 50% 90%, rgba(100, 50, 200, 0.1), transparent);
  pointer-events: none;
  z-index: 0;
}

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

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(107, 140, 255, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--gold-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, #5a7cff, #7c5cfc);
  color: white;
  box-shadow: 0 0 20px rgba(107, 140, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(107, 140, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
  width: 100%;
  background: rgba(107, 140, 255, 0.12);
  color: var(--text);
  border: 1px solid rgba(107, 140, 255, 0.25);
}

.btn-sm:hover {
  background: linear-gradient(135deg, #5a7cff, #7c5cfc);
  border-color: transparent;
}

/* ===== Hero ===== */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(107, 140, 255, 0.1);
  border: 1px solid rgba(107, 140, 255, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 30%, #a0b0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .gold {
  background: linear-gradient(180deg, #f0d060, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Trust Bar ===== */
.trust-bar {
  padding: 24px 0;
  border-top: 1px solid rgba(107, 140, 255, 0.12);
  border-bottom: 1px solid rgba(107, 140, 255, 0.12);
  background: rgba(10, 10, 24, 0.7);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.trust-icon {
  font-size: 1.3rem;
}

.trust-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #fff, #a0b0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== Categories ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
}

.category-card:hover {
  border-color: rgba(107, 140, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(80, 60, 180, 0.2);
}

.cat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  color: var(--gold-light);
}

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

/* ===== Shop / Products ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

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

.product-card:hover {
  border-color: rgba(107, 140, 255, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(80, 60, 180, 0.25);
}

.product-image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #12122a, #0a0a18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-placeholder {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  z-index: 1;
}

.holographic-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(107, 140, 255, 0.08) 45%,
    rgba(167, 139, 250, 0.12) 50%,
    rgba(56, 189, 248, 0.08) 55%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.product-card:hover .holographic-shine {
  opacity: 1;
}

.product-info {
  padding: 18px;
}

.product-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
}

.product-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-light);
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.shop-note {
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== About ===== */
.about {
  background: rgba(10, 10, 24, 0.6);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fff, #a0b0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-content strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.crystal {
  width: 160px;
  height: 200px;
  position: relative;
  background: linear-gradient(145deg, #1a2a5a, #0d1a3a);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 
    0 0 40px rgba(107, 140, 255, 0.4),
    inset 0 0 30px rgba(167, 139, 250, 0.3);
  animation: float 6s ease-in-out infinite;
}

.crystal-inner {
  position: absolute;
  inset: 8px;
  background: linear-gradient(160deg, 
    rgba(107, 140, 255, 0.4),
    rgba(167, 139, 250, 0.3),
    rgba(56, 189, 248, 0.25),
    rgba(129, 140, 248, 0.3)
  );
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

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

.formula {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ===== Community ===== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}

.community-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.1);
}

.community-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

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

/* ===== Contact ===== */
.contact {
  background: rgba(10, 10, 24, 0.6);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-content h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #fff, #a0b0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-content > p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.contact-details p {
  margin-bottom: 8px;
}

.contact-details a {
  color: var(--accent);
}

.contact-details .note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0 36px;
  border-top: 1px solid rgba(107, 140, 255, 0.12);
  text-align: center;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-trust {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 850px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-grid,
  .contact-inner,
  .community-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    padding: 70px 0 50px;
  }

  .section {
    padding: 60px 0;
  }

  .logo-img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

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

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