/* Light theme (default) */
:root {
  --bg: #f7fafc;
  --bg-alt: #eef3f9;
  --surface: #ffffff;
  --text: #14273a;
  --text-muted: #5b7185;
  --accent: #0d72c2;
  --accent-dark: #0a5493;
  --accent-2: #e2680a;
  --border: #dbe6f0;
  --header-bg: rgba(255, 255, 255, 0.85);
  --hero-glow-1: rgba(13, 114, 194, 0.14);
  --hero-glow-2: rgba(226, 104, 10, 0.12);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rubik', sans-serif;
}

/* Dark theme (auto mode: matches system preference) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a121c;
    --bg-alt: #101d2b;
    --surface: #16283b;
    --text: #eef4fb;
    --text-muted: #93aac0;
    --accent: #2f8fe0;
    --accent-dark: #0d5da8;
    --accent-2: #ff8a24;
    --border: #223b52;
    --header-bg: rgba(10, 18, 28, 0.85);
    --hero-glow-1: rgba(47, 143, 224, 0.28);
    --hero-glow-2: rgba(255, 138, 36, 0.18);
  }
}

/* Dark theme (explicit choice, overrides system preference) */
:root[data-theme="dark"] {
  --bg: #0a121c;
  --bg-alt: #101d2b;
  --surface: #16283b;
  --text: #eef4fb;
  --text-muted: #93aac0;
  --accent: #2f8fe0;
  --accent-dark: #0d5da8;
  --accent-2: #ff8a24;
  --border: #223b52;
  --header-bg: rgba(10, 18, 28, 0.85);
  --hero-glow-1: rgba(47, 143, 224, 0.28);
  --hero-glow-2: rgba(255, 138, 36, 0.18);
}

/* Light theme (explicit choice, overrides system preference) */
:root[data-theme="light"] {
  --bg: #f7fafc;
  --bg-alt: #eef3f9;
  --surface: #ffffff;
  --text: #14273a;
  --text-muted: #5b7185;
  --accent: #0d72c2;
  --accent-dark: #0a5493;
  --accent-2: #e2680a;
  --border: #dbe6f0;
  --header-bg: rgba(255, 255, 255, 0.85);
  --hero-glow-1: rgba(13, 114, 194, 0.14);
  --hero-glow-2: rgba(226, 104, 10, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}
.logo-icon { height: 34px; width: auto; }
.logo-cusco { color: var(--accent-2); }
.logo-geek { color: var(--accent); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-list a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-list a:hover { color: var(--text); }

.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
}
.btn-nav:hover { opacity: 0.9; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s;
}

.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle-icon { font-size: 1rem; }

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.7rem;
}

.nav-dropdown-toggle:hover { color: var(--text); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  min-width: 190px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 60;
}

.nav-dropdown.open .nav-dropdown-menu { display: flex; }

.nav-dropdown-item {
  display: block;
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff !important;
}

.nav-dropdown-shopee { background: #ee4d2d; }
.nav-dropdown-shopee:hover { background: #d5431f; }

.nav-dropdown-ml { background: #fee600; color: #2d3277 !important; }
.nav-dropdown-ml:hover { background: #f2da00; }

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

/* Hero */
.hero {
  padding: 110px 0 90px;
  background:
    radial-gradient(circle at 20% 20%, var(--hero-glow-1), transparent 50%),
    radial-gradient(circle at 80% 30%, var(--hero-glow-2), transparent 50%);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero .accent { color: var(--accent-2); }

.hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-disclaimer {
  margin-top: 40px;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
}
.btn-whatsapp:hover { background: #1ebe5b; }

.btn-shopee {
  background: #ee4d2d;
  color: #fff;
  border: none;
}
.btn-shopee:hover { background: #d5431f; }

.btn-ml {
  background: #fee600;
  color: #2d3277;
  border: none;
}
.btn-ml:hover { background: #f2da00; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
}

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

.lead {
  color: var(--text-muted);
  max-width: 720px;
  font-size: 1.05rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* Markets */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.market-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}

.market-block h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.market-block .lead {
  max-width: none;
  margin-bottom: 16px;
}

.market-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.market-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 22px;
  position: relative;
}

.market-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.how-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.how-block h3 { font-size: 1.15rem; }
.how-block .lead { max-width: none; }
.how-block .btn { align-self: center; }

.how-note {
  margin-top: 32px;
  max-width: none;
  text-align: center;
}

/* CTA final */
.cta-final {
  text-align: center;
}

.cta-final .lead {
  margin: 0 auto 28px;
}

.cta-tagline {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-2);
}

/* Footer store links */
.footer-stores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-shopee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-shopee:hover {
  color: var(--accent-2);
}

.footer-shopee-icon {
  width: 20px;
  height: 20px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  margin-top: 36px;
}

.gallery-product h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  text-align: center;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.gallery-mosaic img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.2s, border-color 0.2s;
}

.gallery-mosaic img:hover {
  transform: scale(1.03);
  border-color: var(--accent);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 40px;
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Contact */
.contact-inner { max-width: 560px; }

.contact-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-radio-group {
  border: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.form-radio-group legend {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0;
  margin-bottom: 6px;
  width: 100%;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  cursor: pointer;
}

.radio-option input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.form-feedback {
  color: var(--accent-2);
  font-size: 0.9rem;
  min-height: 1.2em;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 14px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, padding 0.25s;
  overflow: hidden;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.whatsapp-text {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  padding-right: 4px;
}

@media (max-width: 640px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    padding: 12px;
  }
  .whatsapp-text {
    display: none;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-logo {
  display: block;
  height: 72px;
  width: auto;
  margin: 0 auto 16px;
}
.footer-inner {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner p + p {
  margin-top: 4px;
}

/* Responsive nav */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .nav-list.open { display: flex; }
}
