/* ==========================================================================
   SAYORA DESIGN SYSTEM — "Premium AI × 3D Interactive × Modern Retail"
   Inspired by GPT-6 Astra Visual Philosophy
   Primary Accent: #820000 | Secondary: #FFEEDC
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Tokens */
  --primary: #820000;
  --primary-rgb: 130, 0, 0;
  --primary-light: #ab1010;
  --primary-dark: #570000;
  --primary-glow: rgba(130, 0, 0, 0.45);
  --primary-subtle: rgba(130, 0, 0, 0.12);

  --secondary: #FFEEDC;
  --secondary-rgb: 255, 238, 220;
  --secondary-glow: rgba(255, 238, 220, 0.25);
  --secondary-subtle: rgba(255, 238, 220, 0.08);

  /* Deep Space Dark Theme (Default) */
  --bg-main: #08080c;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(130, 0, 0, 0.18) 0%, rgba(8, 8, 12, 0.95) 45%, #08080c 100%);
  --surface-1: rgba(16, 16, 24, 0.65);
  --surface-2: rgba(24, 24, 36, 0.75);
  --surface-solid: #101018;
  
  --text-main: #f5f5f7;
  --text-muted: #9aa0a6;
  --text-subtle: #6b7280;
  
  --border-glass: rgba(255, 238, 220, 0.12);
  --border-focus: rgba(130, 0, 0, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.06);
  
  --glass-bg: rgba(18, 18, 28, 0.55);
  --glass-border: rgba(255, 238, 220, 0.14);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(130, 0, 0, 0.08);
  --glass-blur: blur(20px);

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sizing & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.35s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);

  --nav-height: 74px;
}

[data-theme="light"] {
  --bg-main: #fbf9f8;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(130, 0, 0, 0.08) 0%, rgba(251, 249, 248, 0.98) 45%, #fbf9f8 100%);
  --surface-1: #ffffff;
  --surface-2: #f7f4f0;
  --surface-solid: #ffffff;

  --secondary: #820000;
  --secondary-rgb: 130, 0, 0;
  --secondary-glow: rgba(130, 0, 0, 0.2);
  --secondary-subtle: rgba(130, 0, 0, 0.06);

  --text-main: #18181b;
  --text-muted: #52525b;
  --text-subtle: #71717a;

  --border-glass: rgba(130, 0, 0, 0.12);
  --border-focus: rgba(130, 0, 0, 0.5);
  --border-subtle: rgba(0, 0, 0, 0.08);

  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(130, 0, 0, 0.14);
  --glass-shadow: 0 10px 30px rgba(130, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  --glass-blur: blur(16px);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

body.loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }
}

/* ==========================================================================
   Starfield Canvas & Atmospheric Glows
   ========================================================================== */
#starfieldCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  transition: opacity 1s ease;
}

.cosmic-nebula {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  mix-blend-mode: screen;
}

.nebula-top {
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.nebula-bottom {
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.12;
}

/* ==========================================================================
   Custom Cursor & Glow Follower
   ========================================================================== */
.cursor-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 0, 0, 0.14) 0%, rgba(255, 238, 220, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 9990;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

.custom-cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--primary-light), 0 0 20px var(--primary);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.15s ease;
}

.custom-cursor-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 238, 220, 0.4);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-cursor-ring .cursor-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--secondary);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
}

@media (pointer: coarse), (max-width: 1024px) {
  .cursor-glow, .custom-cursor-dot, .custom-cursor-ring {
    display: none !important;
  }
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  background: #08080c;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  max-width: 320px;
  padding: 20px;
}

.loader-logo-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}

.loader-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: pulseLogo 2s infinite ease-in-out;
}

.loader-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 4px;
}

.loader-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.85;
}

.loader-progress {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto 12px;
}

.loader-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 99px;
  animation: loadProgress 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loader-caption {
  font-size: 11px;
  color: var(--text-muted);
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(130, 0, 0, 0.4)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 25px rgba(255, 238, 220, 0.6)); }
}

@keyframes loadProgress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

p {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, var(--secondary) 60%, rgba(255, 238, 220, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #141416 20%, var(--primary) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight {
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

.highlight-red {
  color: var(--primary-light);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--secondary);
  padding: 6px 14px;
  background: rgba(255, 238, 220, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-title h2 {
  margin-bottom: 14px;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #a60f0f 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 238, 220, 0.25);
  box-shadow: 0 4px 20px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(130, 0, 0, 0.65), 0 0 15px rgba(255, 238, 220, 0.3);
  border-color: var(--secondary);
  color: #fff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 238, 220, 0.1);
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

.btn-cta {
  background: linear-gradient(135deg, var(--secondary) 0%, #f7dfc6 100%);
  color: #4a0000;
  font-weight: 700;
  border: 1px solid #ffffff;
  box-shadow: 0 8px 30px rgba(255, 238, 220, 0.35);
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 238, 220, 0.5);
  color: #380000;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-normal);
}

#header.scrolled {
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] #header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 38px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo:hover img {
  transform: scale(1.05);
}

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 18, 28, 0.5);
  border: 1px solid var(--border-glass);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(14px);
}

[data-theme="light"] .menu {
  background: rgba(255, 255, 255, 0.7);
}

.menu-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.menu-link:hover, .menu-link.active {
  color: var(--text-main);
  background: rgba(255, 238, 220, 0.1);
}

[data-theme="light"] .menu-link:hover,
[data-theme="light"] .menu-link.active {
  color: var(--primary);
  background: rgba(130, 0, 0, 0.08);
}

.menu-cta {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 600;
}

.menu-cta:hover {
  background: var(--primary-light) !important;
  box-shadow: 0 0 15px var(--primary-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-cart-header, .theme-btn, .hamburger-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 18, 28, 0.5);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  transition: all var(--transition-fast);
  position: relative;
  backdrop-filter: blur(10px);
}

[data-theme="light"] .btn-cart-header,
[data-theme="light"] .theme-btn,
[data-theme="light"] .hamburger-btn {
  background: rgba(255, 255, 255, 0.7);
}

.btn-cart-header:hover, .theme-btn:hover, .hamburger-btn:hover {
  background: rgba(255, 238, 220, 0.15);
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.hamburger-btn span {
  width: 18px;
  height: 2px;
  background: var(--text-main);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 992px) {
  .menu { display: none; }
  .hamburger-btn { display: flex; }
}

/* ==========================================================================
   Mobile Navigation Drawer
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 380px;
  height: 100vh;
  background: rgba(12, 12, 18, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-glass);
  z-index: 10000;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s var(--ease-out);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .mobile-drawer {
  background: rgba(255, 255, 255, 0.96);
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.drawer-logo {
  height: 34px;
}

.close-drawer-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 18px;
}

.drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 30px 0;
  overflow-y: auto;
}

.drawer-link {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.drawer-link:hover, .drawer-link.active {
  color: var(--text-main);
  background: rgba(255, 238, 220, 0.08);
  transform: translateX(6px);
}

[data-theme="light"] .drawer-link:hover,
[data-theme="light"] .drawer-link.active {
  color: var(--primary);
  background: rgba(130, 0, 0, 0.08);
}

.drawer-cta {
  background: var(--primary) !important;
  color: #fff !important;
  text-align: center;
  margin-top: 10px;
}

.drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.drawer-socials {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.drawer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

/* ==========================================================================
   Hero Section — 3D & Immersive
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 60px;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(255, 238, 220, 0.08);
  border: 1px solid var(--border-glass);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-desc {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 22px 0 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  transition: transform var(--transition-normal);
}

.stat:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
}

.stat h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat p {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* 3D Hero Visual */
.hero-visual {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 30px;
  border-radius: var(--radius-xl);
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.2s;
  will-change: transform;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.hero-card-header h3 {
  font-size: 1.25rem;
  color: var(--text-main);
}

.card-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(130, 0, 0, 0.3);
  border: 1px solid rgba(255, 238, 220, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

[data-theme="light"] .card-icon-wrap {
  background: rgba(130, 0, 0, 0.08);
  border-color: rgba(130, 0, 0, 0.18);
  color: var(--primary);
}

.hero-products {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.hero-product:hover {
  background: rgba(255, 238, 220, 0.08);
  border-color: var(--border-glass);
  transform: translateX(4px);
}

[data-theme="light"] .hero-product {
  background: rgba(130, 0, 0, 0.03);
  border-color: rgba(130, 0, 0, 0.1);
}

[data-theme="light"] .hero-product:hover {
  background: rgba(130, 0, 0, 0.07);
  border-color: rgba(130, 0, 0, 0.22);
}

.product-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-subtle);
  border: 1px solid rgba(130, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 16px;
  flex-shrink: 0;
}

[data-theme="light"] .product-icon {
  background: rgba(130, 0, 0, 0.08);
  border-color: rgba(130, 0, 0, 0.15);
  color: var(--primary);
}

.hero-product h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.hero-product span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.floating-mini {
  position: absolute;
  top: -15px;
  right: -10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 238, 220, 0.3);
  box-shadow: 0 10px 25px var(--primary-glow);
  z-index: 3;
  animation: floatSoft 4s infinite ease-in-out;
}

.floating-label {
  position: absolute;
  bottom: -15px;
  left: -10px;
  background: rgba(20, 20, 30, 0.85);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  z-index: 3;
  animation: floatSoft 5s infinite ease-in-out reverse;
}

[data-theme="light"] .floating-label {
  background: #ffffff;
  color: var(--primary);
  border-color: rgba(130, 0, 0, 0.15);
  box-shadow: 0 10px 25px rgba(130, 0, 0, 0.08);
}

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

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;
  }
  .hero-card {
    max-width: 100%;
  }
}

/* ==========================================================================
   Marquee Ticker
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  background: rgba(130, 0, 0, 0.15);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.marquee-track span i {
  color: var(--primary-light);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Store Showcase
   ========================================================================== */
.store-showcase {
  padding: 100px 0;
  position: relative;
}

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

.store-text h2 {
  margin-bottom: 20px;
}

.store-text p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.store-visual {
  position: relative;
}

.store-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--glass-shadow);
}

.store-img-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.store-img-wrap:hover img {
  transform: scale(1.04);
}

.store-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(12, 12, 18, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 992px) {
  .store-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   Featured Products Grid
   ========================================================================== */
#featured-products {
  padding: 100px 0;
  position: relative;
}

.products-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  backdrop-filter: blur(14px);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(130, 0, 0, 0.2);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 16px;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.product-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(12, 12, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

[data-theme="light"] .product-category-badge {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  border: 1px solid rgba(130, 0, 0, 0.15);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-top: auto;
  margin-bottom: 14px;
}

.product-card .btn-add-cart {
  width: 100%;
  background: rgba(255, 238, 220, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.product-card:hover .btn-add-cart {
  background: var(--primary);
  border-color: var(--primary-light);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* Skeleton Loading */
.product-skeleton {
  height: 360px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   Map Section (Indonesia & Samarinda HQ)
   ========================================================================== */
.map-section {
  padding: 100px 0;
  position: relative;
}

.map-container {
  padding: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.map-wrapper {
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-glass);
}

.map-svg-container {
  position: relative;
  width: 100%;
}

.indonesia-map-img {
  width: 100%;
  filter: drop-shadow(0 0 15px rgba(255, 238, 220, 0.15));
  opacity: 0.85;
}

.map-pin-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pin-dot {
  fill: var(--primary);
  stroke: var(--secondary);
  stroke-width: 2px;
}

.pin-pulse {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2px;
  opacity: 0.8;
  animation: mapPulse 2s infinite ease-out;
  transform-origin: 0 0;
}

.pin-pulse-2 {
  animation-delay: 1s;
}

.pin-label {
  fill: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
}

.pin-sublabel {
  fill: var(--secondary);
  font-size: 11px;
  font-family: var(--font-body);
}

.kalimantan-highlight {
  fill: rgba(130, 0, 0, 0.15);
  stroke: rgba(255, 238, 220, 0.25);
  stroke-dasharray: 4;
}

@keyframes mapPulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.map-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-info-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast);
}

.map-info-card:hover {
  transform: translateX(6px);
  border-color: var(--secondary);
}

.map-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-subtle);
  border: 1px solid rgba(130, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 20px;
  flex-shrink: 0;
}

.map-info-card h4 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.map-info-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .map-container {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* ==========================================================================
   Features Section
   ========================================================================== */
#features {
  padding: 100px 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 36px 30px;
  border-radius: var(--radius-xl);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(130,0,0,0.4) 0%, rgba(255,238,220,0.1) 100%);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 24px;
  margin-bottom: 22px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

/* ==========================================================================
   Story & Timeline Journey
   ========================================================================== */
.story-section {
  padding: 100px 0;
  position: relative;
}

.story-intro {
  padding: 40px;
  margin-bottom: 60px;
}

.story-intro h3 {
  font-size: 1.6rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

.story-intro p {
  font-size: 1.1rem;
  margin-bottom: 12px;
  line-height: 1.8;
}

.journey {
  position: relative;
  margin-top: 50px;
}

.journey-progress-bar {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  z-index: 1;
}

.journey-progress-line {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.journey-items-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.journey-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.journey-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #14141e;
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 24px;
  transition: all var(--transition-normal);
}

.journey-dot.active {
  background: var(--primary);
  border-color: var(--secondary);
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
}

.journey-content {
  padding: 24px 20px;
  width: 100%;
  text-align: left;
}

.journey-date {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}

.journey-content h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.journey-content p {
  font-size: 0.85rem;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .journey-progress-bar {
    left: 24px;
    top: 0;
    width: 4px;
    height: 100%;
  }
  .journey-items-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .journey-item {
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
  }
  .journey-dot {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   About, Vision & Mission
   ========================================================================== */
#about {
  padding: 100px 0;
  position: relative;
}

.about-grid, .vm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.about-card, .vm-card {
  padding: 40px;
  border-radius: var(--radius-xl);
}

.about-card h3, .vm-card h3 {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

.about-mini {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.about-mini div h4 {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-mini div span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
}

.vm-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--primary-subtle);
  border: 1px solid rgba(130, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 20px;
  margin-bottom: 18px;
}

.tagline {
  padding: 50px;
  text-align: center;
  border-radius: var(--radius-xl);
}

.tagline h2 {
  font-size: 2.6rem;
  color: var(--secondary);
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .about-grid, .vm-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CTA & Contact Section
   ========================================================================== */
.cta-section {
  padding: 80px 0;
  position: relative;
}

.cta-box {
  background: linear-gradient(135deg, rgba(130,0,0,0.85) 0%, rgba(40,5,10,0.95) 100%);
  border: 1px solid rgba(255, 238, 220, 0.3);
  box-shadow: 0 25px 60px rgba(130, 0, 0, 0.35);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #fff;
  margin-bottom: 14px;
}

.cta-content p {
  color: var(--secondary);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 30px;
}

#hubungi {
  padding: 100px 0;
  position: relative;
}

.contact-box {
  padding: 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-card h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.contact-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

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

/* ==========================================================================
   Footer & Floaters
   ========================================================================== */
footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  position: relative;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-brand img {
  height: 42px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border-glass);
  margin: 24px 0;
}

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

.back-top, .float-wa {
  position: fixed;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.back-top {
  bottom: 28px;
  right: 28px;
  background: rgba(18, 18, 28, 0.7);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

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

.float-wa {
  bottom: 86px;
  right: 28px;
  background: #25D366;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.float-wa:hover {
  transform: scale(1.08) translateY(-2px);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 8, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  width: 100%;
  max-width: 600px;
  position: relative;
  padding: 30px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-solid);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100000;
  transition: transform var(--transition-normal);
  pointer-events: none;
}

[data-theme="light"] .toast {
  background: #18181b;
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
