/* ============================================
   ECOM EDGE GUIDE — Design System v2
   Premium production quality
   8px grid · Modular type scale · Spring easing
   ============================================ */

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

/* --- Design Tokens --- */
:root {
  /* Color */
  --bg-deep: #040707;
  --bg-surface: #0A0D0D;
  --text-primary: #FFFFFF;
  --text-body: rgba(255,255,255,0.75);
  --text-muted: rgba(255,255,255,0.4);
  --text-faint: rgba(255,255,255,0.2);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.14);
  --glass: rgba(255,255,255,0.04);
  --glass-strong: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.08);

  /* Type scale — presentation-sized (+2px) */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 26px;
  --text-2xl: 34px;
  --text-3xl: 44px;

  /* Spacing (8px grid) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-10: 80px;

  /* Shape */
  --radius: 6px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-glass: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);

  /* Motion */
  --ease-spring: cubic-bezier(.17,.67,.29,1.36);
  --ease-smooth: cubic-bezier(.4,0,.2,1);

  /* Font */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
}

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

/* --- Base --- */
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: var(--text-md);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Ambient Blobs --- */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  background: rgba(255,255,255,0.025);
  width: 450px; height: 450px;
  top: 5%; left: 10%;
  animation: drift 14s ease-in-out infinite alternate;
}
.blob-2 {
  background: rgba(255,255,255,0.018);
  width: 380px; height: 380px;
  top: 50%; right: 5%;
  animation: drift-alt 12s ease-in-out infinite alternate;
}
.blob-3 {
  background: rgba(255,255,255,0.012);
  width: 320px; height: 320px;
  bottom: 5%; left: 30%;
  animation: breathe 10s ease-in-out infinite;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.08); }
}
@keyframes drift-alt {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-25px, 15px) scale(1.05); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* --- Layout --- */
.container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-3) var(--space-10);
}

/* ============================================
   NAVIGATION — Horizontal
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4,7,7,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: var(--space-7);
}
.nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-md);
  letter-spacing: 1.5px;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-brand:hover { opacity: 0.7; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 6px var(--space-2);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: all 0.2s var(--ease-smooth);
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass);
}
.nav-link.active {
  color: var(--text-primary);
  background: var(--glass-strong);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-1);
  margin-left: auto;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-muted);
  transition: all 0.3s var(--ease-smooth);
}
.nav-toggle:hover span { background: var(--text-primary); }

/* Mobile dropdown */
.nav-dropdown {
  display: none;
  position: fixed;
  top: var(--space-7);
  left: 0;
  right: 0;
  background: rgba(4,7,7,0.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2) var(--space-3);
  z-index: 99;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown.open { display: flex; }
.nav-dropdown .nav-link {
  font-size: var(--text-base);
  padding: var(--space-1) var(--space-2);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  text-align: center;
  margin-bottom: var(--space-7);
  padding-top: var(--space-1);
}
.page-header .tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-2);
  letter-spacing: -1px;
}
.page-header .subtitle {
  font-size: var(--text-lg);
  color: var(--text-body);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* ============================================
   SECTION LABELS
   ============================================ */
.section-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  margin-top: var(--space-6);
  padding-left: 4px;
}

/* ============================================
   WHY BOX
   ============================================ */
.why-box {
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  margin-bottom: var(--space-7);
  border-left: 3px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-glass);
}
.why-box h3 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}
.why-box p {
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: 1.7;
}

/* ============================================
   STEP NUMBER
   ============================================ */
.step-number {
  width: var(--space-4);
  height: var(--space-4);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #040707;
  flex-shrink: 0;
}

/* ============================================
   DIVIDER & FOOTER
   ============================================ */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-6) 0;
}
.footer {
  text-align: center;
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 1.5px;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section { margin-top: var(--space-7); }
.faq-section h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.faq-item {
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  margin-bottom: var(--space-1);
  overflow: hidden;
  transition: all 0.2s var(--ease-smooth);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-md);
  font-weight: 600;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s var(--ease-smooth);
}
.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-question .toggle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-spring);
}
.faq-item.open .faq-question .toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease-smooth); }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding: 0 var(--space-3) var(--space-3);
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: 1.7;
}

/* ============================================
   PASSWORD GATE
   ============================================ */
.password-gate {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg-deep);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-3);
}
.password-gate.hidden { display: none; }
.password-gate h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.password-gate p {
  color: var(--text-body);
  font-size: var(--text-base);
  margin-top: calc(var(--space-2) * -1);
}
.password-gate input {
  width: 280px;
  padding: var(--space-2);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-md);
  outline: none;
  text-align: center;
  transition: border-color 0.2s;
}
.password-gate input:focus { border-color: rgba(255,255,255,0.2); }
.password-gate input::placeholder { color: var(--text-muted); }
.password-gate button {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.93);
  color: #040707;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}
.password-gate button:hover {
  background: #FFFFFF;
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.08);
}
.password-gate button:active {
  transform: scale(0.97);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.password-gate .error-msg {
  color: #FF6B6B;
  font-size: var(--text-sm);
  min-height: 20px;
}

.content-wrapper { display: none; }
.content-wrapper.visible { display: block; }

/* ============================================
   WATCH THE VIDEO CARD
   ============================================ */
.video-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-5);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
  text-decoration: none;
  transition: all 0.25s var(--ease-spring);
  cursor: pointer;
}
.video-card:hover {
  background: var(--glass-strong);
  border-color: var(--border-hover);
  transform: translateY(-1px) scale(1.005);
}
.video-card:active {
  transform: scale(0.97);
}
.video-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.video-card-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--text-primary);
  margin-left: 2px;
}
.video-card-text {
  display: flex;
  flex-direction: column;
}
.video-card-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}
.video-card-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  margin-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.footer-request {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 10px var(--space-3);
  margin-bottom: var(--space-3);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s var(--ease-spring);
}
.footer-request:hover {
  background: var(--glass-strong);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.footer-request:active {
  transform: scale(0.97);
}
.footer-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  line-height: 1.6;
}
.footer-note a {
  color: var(--text-body);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-note a:hover {
  color: var(--text-primary);
}
.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .video-card { padding: var(--space-2); }
}
@media (max-width: 640px) {
  .container { padding: var(--space-5) var(--space-2) var(--space-8); }
  .page-header h1 { font-size: 30px; }
  .nav { padding: 0 var(--space-2); }
  .blob { display: none; }
  .video-card { gap: var(--space-1); }
  .video-card-icon { width: 36px; height: 36px; }
  .footer { padding: var(--space-4) var(--space-2); }
}
