@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* Official brand palette — black & gold, warm and bright throughout. */
  --ink: #141414;
  --ink-soft: #000000;
  --gray-700: #3A3A3A;
  --gray-600: #5B5B58;
  --gray-400: #9C9C94;
  --border: #EAD9AE;
  --cream: #FBF3E1;
  --white: #FFFFFF;
  --danger: #DC2626;
  --success: #059669;
  /* Official gold accent — matches the logo exactly */
  --gold: #C9A23E;
  --gold-deep: #8C6A1E;
  --gold-pale: #F3E3B8;
  --gold-glow: #E8CD84;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
a { color: inherit; }

/* Announcement bar */
.announce { background: var(--ink); color: var(--white); text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em; padding: 9px 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--gray-600); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color 0.15s; }
.nav a:hover { color: var(--ink); }
.header-cta { padding: 9px 16px; font-size: 14px; }
@media (max-width: 720px) { .nav { display: none; } }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(160deg, var(--gold-glow), var(--gold));
  color: var(--ink); border: none; border-radius: 10px;
  padding: 11px 18px; font-weight: 700; font-size: 14.5px;
  text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 20px -8px rgba(140,106,30,0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(140,106,30,0.65); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--ink); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 14.5px;
  text-decoration: none; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.btn-ghost:hover { border-color: var(--gold-deep); background: var(--cream); }
.btn-lg { padding: 13px 22px; font-size: 15.5px; }
.btn-order {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--white); border-radius: 8px;
  padding: 8px 14px; font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: background 0.15s; border: none; cursor: pointer;
}
.btn-order:hover { background: var(--gold-deep); color: var(--white); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 60px; background: radial-gradient(ellipse 1000px 560px at 50% -8%, var(--gold-pale) 0%, var(--cream) 45%, var(--white) 75%); }
.hero-inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-deep); display: block; margin-bottom: 14px; }
.hero-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(34px, 6vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 20px; }
.grad-text { background: linear-gradient(100deg, var(--gold-deep), var(--gold) 65%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17px; color: var(--gray-600); max-width: 480px; line-height: 1.55; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }

.size-proof { display: inline-flex; align-items: center; gap: 14px; background: white; border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px 8px 8px; box-shadow: 0 10px 24px -14px rgba(140,106,30,0.3); }
.size-proof-icon { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(160deg, var(--gold-glow), var(--gold-deep)); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.size-proof span { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.size-proof em { color: var(--gold-deep); font-style: normal; }

.burst { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 640px; height: 640px; pointer-events: none; z-index: 1; }
.ray {
  position: absolute; top: 50%; left: 50%; width: 2px; height: 230px;
  background: linear-gradient(to top, var(--gold), transparent);
  transform-origin: top center; opacity: 0.4;
  animation: rayPulse 3.2s ease-in-out infinite;
}
@keyframes rayPulse { 0%, 100% { opacity: 0.22; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .ray { animation: none; opacity: 0.3; } }

/* Trust strip */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--gold-pale), var(--cream)); }
.trust-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; padding: 18px 20px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--gray-600); }
.trust-item svg { color: var(--gold-deep); }

/* Products */
.products { padding: 76px 0; background: linear-gradient(180deg, var(--white), var(--gold-pale) 120%); }
.loading-row { display: flex; align-items: center; gap: 10px; color: var(--gray-600); padding: 40px 0; justify-content: center; }

/* Capacity/category showcase sections */
.p-section { padding: 52px 0; border-top: 1px solid var(--border); }
.p-section:first-of-type { border-top: none; }
.p-section-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.p-section:nth-of-type(even) .p-section-inner { direction: rtl; }
.p-section:nth-of-type(even) .p-section-inner > * { direction: ltr; }
.p-section-info h2 { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; margin: 6px 0 12px; letter-spacing: -0.01em; }
.p-section-info p { color: var(--gray-600); font-size: 14.5px; line-height: 1.6; margin: 0 0 20px; max-width: 420px; }
.p-section-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.p-section-media { border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, var(--gold-pale), var(--cream)); }
.wholesale-note { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; color: var(--gold-deep); background: var(--gold-pale); display: inline-block; padding: 5px 10px; border-radius: 6px; margin: 0 0 16px; border: 1px solid var(--gold-glow); }
.wholesale-note.compact { font-size: 10.5px; padding: 4px 8px; margin: 0 0 10px; }

/* Magnetic section holds two product cards side by side */
.mag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mag-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: white; }
.mag-card-media { border-radius: 0; }
.mag-card-body { padding: 16px 18px 18px; }
.mag-card-body h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; margin: 8px 0 6px; }
.mag-card-body p { font-size: 13px; color: var(--gray-600); line-height: 1.5; margin: 0 0 12px; }
.mag-card-bottom { display: flex; align-items: center; justify-content: space-between; }
@media (max-width: 720px) {
  .mag-grid { grid-template-columns: 1fr; }
}

.compact-chip { position: absolute; top: 10px; left: 10px; z-index: 2; background: white; border: 1px solid var(--gold-glow); font-size: 10px; font-weight: 700; letter-spacing: 0.02em; color: var(--gold-deep); padding: 4px 8px; border-radius: 999px; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.capacity-mono, .price-mono { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.price-mono { font-size: 14px; }

/* Carousel — cycles product photos automatically */
.carousel { position: relative; width: 100%; height: 320px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.carousel.compact { height: 190px; }
.carousel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 20px; opacity: 0; transition: opacity 0.7s ease; }
.carousel-img.active { opacity: 1; }
.carousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.c-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(140,106,30,0.25); transition: background 0.2s, transform 0.2s; }
.c-dot.active { background: var(--gold-deep); transform: scale(1.3); }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; letter-spacing: 0.01em; }
.tag-fast { background: var(--ink); color: var(--white); }
.tag-mag { background: linear-gradient(160deg, var(--gold-glow), var(--gold)); color: var(--ink); }

/* Device illustration */
.device-art { display: flex; align-items: center; justify-content: center; }
.device-body {
  position: relative; width: 80px; height: 112px; border-radius: 16px;
  background: linear-gradient(160deg, #3A3A3A, #141414);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 20px -10px rgba(20,20,20,0.5);
}
.device-bolt { color: var(--gold-glow); }
.device-dots { display: flex; gap: 5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.dot.lit { background: var(--gold-glow); box-shadow: 0 0 6px var(--gold-glow); }
.mag-ring { position: absolute; top: 10px; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(232,205,132,0.5); }

/* Why */
.why { padding: 76px 0 88px; background: linear-gradient(180deg, var(--gold-pale), var(--cream)); border-top: 1px solid var(--border); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.why-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.why-card svg { color: var(--gold-deep); margin-bottom: 12px; }
.why-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.why-card p { font-size: 13.5px; color: var(--gray-600); line-height: 1.55; margin: 0; }

/* Footer */
.site-footer { padding: 44px 0 32px; background: linear-gradient(180deg, var(--cream), var(--white)); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-logo { height: 30px; width: auto; margin-bottom: 4px; }
.footer-tag { color: var(--gray-600); font-size: 13.5px; margin: 0; }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-deep); font-weight: 700; font-size: 14px; text-decoration: none; margin-top: 4px; }
.admin-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--gray-400); font-size: 11.5px; cursor: pointer; padding: 4px; text-decoration: none; }
.admin-link:hover { color: var(--gray-600); }

/* Admin */
body.admin-body { background: var(--cream); }
.admin-gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; position: relative; }
.admin-back { position: absolute; top: 24px; left: 24px; display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--gray-600); font-size: 13.5px; font-weight: 500; cursor: pointer; text-decoration: none; }
.admin-gate-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 32px; width: 320px; text-align: center; }
.admin-gate-card svg { color: var(--ink); margin-bottom: 8px; }
.admin-gate-card h2 { font-family: 'Space Grotesk', sans-serif; font-size: 19px; margin: 4px 0; }
.admin-gate-card p { color: var(--gray-600); font-size: 13.5px; margin: 0 0 18px; }
.admin-gate-card form { display: flex; flex-direction: column; gap: 10px; }
.admin-gate-card input { border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; }
.admin-error { color: var(--danger); font-size: 12.5px; margin-top: 10px; }

.admin-shell { max-width: 900px; margin: 0 auto; padding: 24px 20px 60px; display: none; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 24px; flex-wrap: wrap; gap: 12px; }
.admin-header h2 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; margin: 0; }
.admin-status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gray-600); margin-bottom: 14px; min-height: 18px; }
.admin-status.error { color: var(--danger); }
.admin-status.ok { color: var(--success); }

.admin-form { border: 1.5px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 24px; background: white; display: none; }
.admin-form h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; margin: 0 0 14px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--gray-600); }
.admin-grid input, .admin-grid select, .admin-grid textarea { border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 11px; font-size: 14px; font-family: inherit; color: var(--ink); }
.admin-grid .span-2 { grid-column: 1 / -1; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

.photo-uploader { grid-column: 1 / -1; }
.photo-uploader > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--gray-600); margin-bottom: 8px; }
.photo-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.photo-thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--cream); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(20,20,20,0.75); color: white; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 11px; line-height: 1; padding: 0; }
.photo-thumb.uploading { display: flex; align-items: center; justify-content: center; color: var(--gray-400); }
.upload-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px dashed var(--border); background: var(--cream); border-radius: 8px; padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--gray-600); cursor: pointer; }
.upload-btn:hover { border-color: var(--ink); color: var(--ink); }
.upload-btn input { display: none; }
.upload-hint { font-size: 11.5px; color: var(--gray-400); margin: 6px 0 0; }

.admin-list { display: flex; flex-direction: column; gap: 8px; }
.admin-row { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); background: white; border-radius: 10px; padding: 12px 14px; flex-wrap: wrap; gap: 10px; }
.admin-row-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-row-name { font-weight: 600; font-size: 14px; }
.admin-row-actions { display: flex; gap: 6px; }
.admin-row-actions button { border: 1px solid var(--border); background: white; border-radius: 7px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--gray-600); }
.admin-row-actions button:hover { border-color: var(--ink); color: var(--ink); }
.admin-row-actions button.danger:hover { border-color: var(--danger); color: var(--danger); }
.admin-empty { color: var(--gray-400); font-size: 13.5px; text-align: center; padding: 24px 0; }

@media (max-width: 600px) {
  .admin-grid { grid-template-columns: 1fr; }
  .hero { padding: 68px 0 48px; }
}
