/* ==========================================================================
   MoonStar Studio - Design System & Modern Responsive Stylesheet
   Supports: Light/Dark Theme, RTL, Mobile First, High Performance
   Zero Overflow, Perfect Mobile Responsive Display
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme Variables & Tokens
   -------------------------------------------------------------------------- */
:root {
  --font-sans: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Light Palette */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-accent: rgba(99, 102, 241, 0.25);

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  /* Brand Accents */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  --primary-glow: rgba(79, 70, 229, 0.2);

  /* Hambazi Brand (Amber / Warm Orange) */
  --hambazi-primary: #f59e0b;
  --hambazi-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  --hambazi-glow: rgba(245, 158, 11, 0.25);
  --hambazi-light: #fffbeb;

  /* Dast be Dast Brand (Indigo / Violet) */
  --dast-primary: #4338ca;
  --dast-gradient: linear-gradient(135deg, #4338ca 0%, #7c3aed 100%);
  --dast-glow: rgba(67, 56, 202, 0.2);
  --dast-light: #eef2ff;

  /* Store Colors */
  --bazaar-green: #10b981;
  --bazaar-hover: #059669;
  --myket-blue: #0284c7;
  --myket-hover: #0369a1;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 40px -12px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --phone-frame-border: #1e293b;

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* Dark Theme */
html.dark {
  --bg-page: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1a2234;
  --bg-surface-subtle: #1e293b;
  --bg-card: #131b2e;
  --bg-glass: rgba(11, 15, 25, 0.9);

  --border-subtle: #1f293d;
  --border-strong: #334155;
  --border-accent: rgba(99, 102, 241, 0.35);

  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-light: rgba(99, 102, 241, 0.12);
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
  --primary-glow: rgba(99, 102, 241, 0.3);

  --hambazi-primary: #fbbf24;
  --hambazi-gradient: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  --hambazi-glow: rgba(251, 191, 36, 0.25);
  --hambazi-light: rgba(251, 191, 36, 0.1);

  --dast-primary: #818cf8;
  --dast-gradient: linear-gradient(135deg, #818cf8 0%, #a855f7 100%);
  --dast-glow: rgba(129, 140, 248, 0.25);
  --dast-light: rgba(129, 140, 248, 0.1);

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 32px -6px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 50px -10px rgba(0, 0, 0, 0.75);
  --phone-frame-border: #334155;
}

/* --------------------------------------------------------------------------
   2. Reset, Baseline & Zero-Overflow
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html {
  font-family: var(--font-sans);
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Persian number ligatures */
.num-fa {
  font-feature-settings: "ss01";
}

/* --------------------------------------------------------------------------
   3. Layout Utilities & Responsive Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

@media (max-width: 375px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (min-width: 768px) {
  .section-title-wrap {
    margin-bottom: 3.5rem;
  }
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .section-badge {
    font-size: 0.8125rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
  }
}

.section-badge-indigo {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-accent);
}

.section-badge-amber {
  background: var(--hambazi-light);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

html.dark .section-badge-amber {
  color: #fbbf24;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 1.85rem;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.35rem;
  }
}

.section-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 640px) {
  .section-desc {
    font-size: 1rem;
    line-height: 1.7;
  }
}

@media (min-width: 768px) {
  .section-desc {
    font-size: 1.125rem;
  }
}

/* --------------------------------------------------------------------------
   4. Header & Navbar
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4.25rem;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .header {
    height: 4.75rem;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}

.brand-logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #ffffff;
  background: var(--primary-gradient);
  box-shadow: 0 4px 14px var(--primary-glow);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand-logo-img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform var(--transition-fast);
}


@media (min-width: 768px) {
  .brand-logo-icon, .brand-logo-img {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
  }
}

.brand-link:hover .brand-logo-icon,
.brand-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .brand-title {
    font-size: 1.125rem;
  }
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-top: 0.15rem;
}

@media (max-width: 639px) {
  .brand-subtitle {
    display: none !important;
  }
}

.app-icon-badge {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.product-hero-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px var(--hambazi-glow);
  display: inline-block;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .product-hero-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 18px;
  }
}

/* Nav links */
.nav-menu {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link-pill {
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--hambazi-light);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

html.dark .nav-link-pill {
  color: #fbbf24;
}

/* Actions in Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .header-actions {
    gap: 0.75rem;
  }
}

.theme-toggle-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

@media (min-width: 768px) {
  .theme-toggle-btn {
    width: 2.625rem;
    height: 2.625rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
  }
}

.theme-toggle-btn:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--border-strong);
  color: var(--primary);
}

.mobile-menu-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    width: 2.625rem;
    height: 2.625rem;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
  }
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 105;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 110;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
  box-sizing: border-box;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.mobile-drawer-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.mobile-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  transition: background var(--transition-fast);
}

.mobile-nav-item a:hover {
  background: var(--bg-surface-subtle);
  color: var(--primary);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 5.75rem;
  padding-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 7.5rem;
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 992px) {
  .hero-section {
    padding-top: 9rem;
    padding-bottom: 6rem;
  }
}

.hero-glow-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  max-width: 60%;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(99, 102, 241, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(35px);
}

.hero-glow-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 180px;
  height: 180px;
  max-width: 60%;
  background: radial-gradient(circle, var(--hambazi-glow) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

@media (min-width: 768px) {
  .hero-glow-1 {
    width: 420px;
    height: 420px;
    right: -5%;
    filter: blur(45px);
  }
  .hero-glow-2 {
    width: 380px;
    height: 380px;
    left: -5%;
    filter: blur(45px);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 100%;
  gap: 2.25rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-content {
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .hero-content {
    text-align: right;
  }
}

.hero-spotlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  transition: all var(--transition-fast);
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .hero-spotlight-pill {
    font-size: 0.8125rem;
    padding: 0.45rem 1.1rem;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }
}

.hero-spotlight-pill:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.hero-spotlight-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  flex-shrink: 0;
}

.hero-spotlight-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 3.15rem;
    line-height: 1.25;
  }
}

.text-gradient-primary {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: var(--hambazi-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 992px) {
  .hero-desc {
    margin-left: 0;
    margin-right: 0;
    font-size: 1.125rem;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 992px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

/* Trust / Metric stats below hero */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .hero-stats-row {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-stat-item {
  text-align: center;
  min-width: 0;
}

@media (min-width: 992px) {
  .hero-stat-item {
    text-align: right;
  }
}

.hero-stat-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

@media (min-width: 640px) {
  .hero-stat-val {
    font-size: 1.5rem;
  }
}

.hero-stat-lbl {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: block;
  font-weight: 500;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .hero-stat-lbl {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }
}

/* --------------------------------------------------------------------------
   6. Official Store Download Badges (Cafe Bazaar & Myket)
   -------------------------------------------------------------------------- */
.store-badges-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .store-badges-group {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem;
  }
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  color: var(--text-main);
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
}

@media (min-width: 480px) {
  .store-badge {
    width: auto;
    min-width: 155px;
    flex: 1;
    max-width: 240px;
  }
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.store-badge-bazaar:hover {
  border-color: var(--bazaar-green);
}

.store-badge-myket:hover {
  border-color: var(--myket-blue);
}

.store-icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-icon-bazaar {
  background: rgba(16, 185, 129, 0.12);
  color: var(--bazaar-green);
}

.store-icon-myket {
  background: rgba(2, 132, 199, 0.12);
  color: var(--myket-blue);
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.2;
}

.store-badge-subtitle {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.store-badge-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 640px) {
  .btn {
    width: auto;
    font-size: 0.9375rem;
    padding: 0.8rem 1.5rem;
  }
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
  color: #ffffff;
}

.btn-amber {
  background: var(--hambazi-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--hambazi-glow);
}

.btn-amber:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--hambazi-glow);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   8. Product Showcase (Cards, Dual Display & Flagship)
   -------------------------------------------------------------------------- */
.product-card-flagship,
.product-card-standard {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.25rem 0.875rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.product-card-flagship {
  border: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 30px -10px var(--hambazi-glow), var(--shadow-md);
}

.product-card-standard {
  border: 1px solid var(--border-subtle);
}

@media (max-width: 375px) {
  .product-card-flagship,
  .product-card-standard {
    padding: 1rem 0.65rem;
    border-radius: var(--radius-md);
  }
}

@media (min-width: 480px) {
  .product-card-flagship,
  .product-card-standard {
    padding: 1.75rem 1.25rem;
  }
}

@media (min-width: 768px) {
  .product-card-flagship,
  .product-card-standard {
    padding: 2.75rem 2.25rem;
    border-radius: var(--radius-xl);
  }
}

.product-card-standard:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--border-strong);
}

.product-grid {
  display: grid;
  grid-template-columns: 100%;
  gap: 2rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 375px) {
  .product-title {
    font-size: 1.125rem;
  }
}

@media (min-width: 480px) {
  .product-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .product-title {
    font-size: 2rem;
  }
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.75;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 375px) {
  .product-desc {
    font-size: 0.8125rem;
    line-height: 1.65;
  }
}

@media (min-width: 640px) {
  .product-desc {
    font-size: 0.9375rem;
    line-height: 1.8;
  }
}

@media (min-width: 768px) {
  .product-desc {
    font-size: 1.05rem;
  }
}

/* Feature mini-bullets in product cards */
.feature-bullets-grid {
  display: grid;
  grid-template-columns: 100%;
  gap: 0.65rem;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .feature-bullets-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
  }
}

.feature-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

@media (max-width: 375px) {
  .feature-bullet-item {
    padding: 0.5rem 0.6rem;
    gap: 0.5rem;
  }
}

.feature-bullet-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.bullet-icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

html.dark .bullet-icon-amber {
  color: #fbbf24;
}

.bullet-icon-indigo {
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary);
}

.bullet-icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

html.dark .bullet-icon-emerald {
  color: #34d399;
}

.bullet-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.bullet-text h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.15rem;
}

.bullet-text p {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   9. Phone Mockup Frames (Responsive & Elegant)
   -------------------------------------------------------------------------- */
.phone-mockup-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0.5rem 0;
}

.phone-frame {
  width: 100%;
  max-width: 220px;
  border: 6px solid var(--phone-frame-border);
  border-radius: 28px;
  background: #000000;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .phone-frame {
    max-width: 250px;
    border-width: 8px;
    border-radius: 34px;
  }
}

@media (min-width: 768px) {
  .phone-frame {
    max-width: 280px;
    border-width: 9px;
    border-radius: 40px;
  }
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 12px;
  background: var(--phone-frame-border);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 20;
}

@media (min-width: 640px) {
  .phone-notch {
    width: 90px;
    height: 14px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
}

.phone-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Floating overlay badge */
.floating-stat-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 25;
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 639px) {
  .floating-stat-badge {
    position: static !important;
    margin-top: 0.75rem;
    width: fit-content;
  }
  .badge-top-left, .badge-bottom-right {
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }
}

@media (min-width: 640px) {
  .floating-stat-badge {
    position: absolute;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
  }
  .badge-top-left {
    top: 8%;
    left: -0.5rem;
  }
  .badge-bottom-right {
    bottom: 8%;
    right: -0.5rem;
  }
}

/* Secondary phone in dual view */
.secondary-phone {
  display: none;
}

@media (min-width: 768px) {
  .secondary-phone {
    display: block;
    position: absolute;
    width: 68%;
    bottom: -5%;
    right: -10%;
    z-index: 5;
  }
}

/* --------------------------------------------------------------------------
   10. Feature Cards Grid & Gallery
   -------------------------------------------------------------------------- */
.cards-grid-3, .cards-grid-4 {
  display: grid;
  grid-template-columns: 100%;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (min-width: 640px) {
  .feature-card {
    padding: 1.75rem 1.5rem;
  }
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}

.feature-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.feature-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .feature-card-title {
    font-size: 1.1875rem;
    margin-bottom: 0.75rem;
  }
}

.feature-card-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (min-width: 640px) {
  .feature-card-text {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
}

/* Screenshot Preview Card */
.screenshot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .screenshot-card {
    padding: 1.25rem;
  }
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-strong);
}

.screenshot-phone-wrap {
  width: 100%;
  max-width: 190px;
  margin-bottom: 0.85rem;
}

@media (min-width: 640px) {
  .screenshot-phone-wrap {
    max-width: 220px;
    margin-bottom: 1rem;
  }
}

.screenshot-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.screenshot-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .screenshot-title {
    font-size: 0.9375rem;
    margin-bottom: 0.35rem;
  }
}

.screenshot-desc {
  font-size: 0.725rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   11. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-list {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-sizing: border-box;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  background: transparent;
  cursor: pointer;
  gap: 0.75rem;
  box-sizing: border-box;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }
}

.faq-icon {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 1.15rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .faq-answer {
    padding: 0 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.75;
  }
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.15rem;
}

/* --------------------------------------------------------------------------
   12. Contact Section
   -------------------------------------------------------------------------- */
.contact-cards-grid {
  display: grid;
  grid-template-columns: 100%;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .contact-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .contact-card {
    padding: 2rem 1.5rem;
    gap: 1rem;
  }
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.contact-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.contact-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-card-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  direction: ltr;
  display: inline-block;
  margin-top: 0.25rem;
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  transition: background-color var(--transition-normal);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .footer {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }
}

.footer-top {
  display: grid;
  grid-template-columns: 100%;
  gap: 1.75rem;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
  }
}

.footer-brand p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.75rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 360px;
  }
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .footer-col-title {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  word-break: break-word;
}

@media (min-width: 640px) {
  .footer-link {
    font-size: 0.875rem;
  }
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    padding-top: 2rem;
    flex-direction: row;
    text-align: right;
    font-size: 0.8125rem;
  }
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   Studio Brand Banner & Visual Identity Showcase
   ========================================================================== */
.studio-brand-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .studio-brand-banner {
    padding: 2.25rem 2rem;
  }
}

.studio-brand-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.studio-brand-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .studio-brand-banner-inner {
    flex-direction: row;
    text-align: right;
    gap: 2.25rem;
    align-items: center;
  }
}

.studio-brand-logo-wrap {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
  border: 2px solid rgba(56, 189, 248, 0.3);
  background: #0f172a;
}

@media (min-width: 768px) {
  .studio-brand-logo-wrap {
    width: 170px;
    height: 170px;
  }
}

.studio-brand-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-brand-banner-content {
  flex: 1;
  min-width: 0;
}

.studio-brand-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .studio-brand-title {
    font-size: 1.65rem;
  }
}

.studio-brand-en {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.studio-brand-desc {
  font-size: 0.925rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.studio-brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .studio-brand-tags {
    justify-content: flex-start;
  }
}

.studio-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-weight: 500;
}

.studio-tag i {
  color: #38bdf8;
}

