/* ==========================================================================
   کافه‌تک (CafeTech) - استایل‌های اختصاصی وبسایت معرفی و لندینگ استارتاپ
   هایپر مدرن، انیمیشن‌های روان، تار نوری، گلس‌مورفیسم و تعاملی
   ========================================================================== */

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

:root {
  /* Surfaces */
  --bg-dark: #07090e;
  --bg-surface: #0e121b;
  --bg-card: rgba(18, 23, 34, 0.72);
  --bg-card-hover: rgba(28, 36, 52, 0.88);
  --bg-input: #121622;

  /* Glassmorphism & Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.16);
  --border-focus: #6366f1;
  --glass-blur: blur(20px);

  /* Brand Accents */
  --brand-gold: #f59e0b;
  --brand-gold-light: #fbbf24;
  --brand-gold-glow: 0 0 35px rgba(245, 158, 11, 0.35);

  --brand-indigo: #6366f1;
  --brand-indigo-light: #818cf8;
  --brand-indigo-glow: 0 0 35px rgba(99, 102, 241, 0.4);

  --brand-emerald: #10b981;
  --brand-rose: #f43f5e;
  --brand-cyan: #06b6d4;

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  /* Geometry */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);

  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Background Interactive Canvas */
#ambientCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-indigo), var(--brand-gold));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Container & Sections */
.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.landing-section {
  padding: 85px 0;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .landing-section {
    padding: 48px 0;
  }
}

/* --------------------------------------------------------------------------
   Sticky Glass Navbar & Mobile Drawer
   -------------------------------------------------------------------------- */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(7, 9, 14, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 900;
  transition: var(--transition-normal);
}

.landing-nav.scrolled {
  height: 70px;
  background: rgba(7, 9, 14, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #6366f1 0%, #f59e0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45); }
  50% { transform: scale(1.04); box-shadow: 0 6px 26px rgba(245, 158, 11, 0.5); }
}

.nav-brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.nav-brand-title span {
  color: var(--brand-gold);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-gold);
  transition: var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

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

/* Mobile Nav Toggle Button */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-light);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--brand-gold);
}

/* Mobile Nav Backdrop */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 850;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-only-action {
  display: none;
}

/* Navbar Responsive Behavior */
@media (max-width: 992px) {
  .landing-nav {
    height: 70px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-actions .nav-btn-demo {
    display: none;
  }

  .nav-actions .nav-btn-cta {
    padding: 8px 14px;
    font-size: 12px;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    right: 14px;
    left: 14px;
    background: rgba(12, 16, 25, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 40px rgba(99, 102, 241, 0.2);
    z-index: 950;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: #e2e8f0;
    border-radius: var(--radius-xs);
    transition: var(--transition-fast);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--brand-gold);
  }

  .mobile-only-action {
    display: block;
  }
}

@media (max-width: 480px) {
  .nav-brand-title {
    font-size: 18px;
  }
  .nav-logo-box {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
  .nav-actions .nav-btn-cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Buttons & Micro-interactions
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.55);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #07090e;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 170px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--brand-indigo-light);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 22px;
  letter-spacing: -1px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #f59e0b 60%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

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

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 36px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
}

.stat-item h3 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  font-family: 'Plus Jakarta Sans', 'Vazirmatn', sans-serif;
}

.stat-item span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   3D Tilt Smartphone Device Mockup
   -------------------------------------------------------------------------- */
.device-mockup-wrapper {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.device-frame {
  width: 320px;
  height: 620px;
  background: #000;
  border-radius: 46px;
  border: 10px solid #1e2433;
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.9), 0 0 50px rgba(99, 102, 241, 0.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.device-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #1e2433;
  border-radius: 14px;
  z-index: 10;
}

.device-screen {
  width: 100%;
  height: 100%;
  background: #0c0e14;
  overflow-y: auto;
  position: relative;
  padding: 44px 14px 14px 14px;
}

/* Floating interactive badges on the mockup */
.mockup-floating-badge {
  position: absolute;
  background: rgba(18, 23, 34, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  animation: floatAnim 4s ease-in-out infinite;
  z-index: 20;
}

.badge-top-left {
  top: 12%;
  right: -30px;
  animation-delay: 0s;
}

.badge-bottom-right {
  bottom: 14%;
  left: -40px;
  animation-delay: 2s;
}

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

/* Hero & Device Mobile Overrides */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats-row {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 105px;
    padding-bottom: 40px;
  }

  .hero-pill {
    font-size: 11.5px;
    padding: 5px 12px;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.35;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
  }

  .hero-desc {
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 22px;
    padding: 0 4px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 28px;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 13.5px;
    justify-content: center;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 20px;
  }

  .stat-item h3 {
    font-size: 18px;
  }

  .stat-item span {
    font-size: 10.5px;
    line-height: 1.35;
  }

  /* Device Mockup Stacked on Mobile (Prevents Horizontal Overflow) */
  .device-mockup-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 8px 0;
    width: 100%;
    max-width: 100%;
    perspective: none;
  }

  .mockup-floating-badge {
    position: static;
    margin: 8px auto;
    width: 90%;
    max-width: 275px;
    animation: none;
    transform: none !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    padding: 10px 14px;
    box-sizing: border-box;
  }

  .badge-top-left {
    order: 1;
    margin-bottom: 14px;
  }

  .device-frame {
    order: 2;
    width: 270px;
    height: 520px;
    border-width: 8px;
    border-radius: 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.2);
    transform: none !important;
    margin: 0 auto;
  }

  .badge-bottom-right {
    order: 3;
    margin-top: 14px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 23px;
  }
}

/* --------------------------------------------------------------------------
   INTERACTIVE MENU DEMO SHOWCASE
   -------------------------------------------------------------------------- */
.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .section-title-wrap {
    margin-bottom: 28px;
  }
  .section-title {
    font-size: 23px;
    line-height: 1.35;
    margin-bottom: 10px;
  }
  .section-desc {
    font-size: 13.5px;
    line-height: 1.7;
    padding: 0 4px;
  }
}

/* Interactive Tabs */
.demo-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.demo-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.demo-tab-btn.active {
  background: var(--brand-indigo);
  color: #fff;
  border-color: var(--brand-indigo-light);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* Demo Cart Floating Pill */
.demo-cart-pill {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 13px;
  color: var(--brand-gold);
}

.demo-cart-pill strong {
  background: var(--brand-gold);
  color: #000;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .demo-tabs-bar {
    gap: 8px;
    margin-bottom: 22px;
  }
  .demo-tab-btn {
    padding: 8px 14px;
    font-size: 12px;
    flex: 1 1 calc(50% - 8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .demo-cart-pill {
    width: fit-content;
    margin: 8px auto 0 auto !important;
    font-size: 12px;
    padding: 6px 14px;
  }
}

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

@media (max-width: 640px) {
  .interactive-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.interactive-dish-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  transition: var(--transition-normal);
  overflow: hidden;
}

.interactive-dish-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--brand-indigo-glow);
}

.dish-img-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
}

.dish-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.dish-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dish-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.dish-en {
  font-size: 11.5px;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', sans-serif;
  margin-bottom: 8px;
}

.dish-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.dish-size-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.size-pill {
  flex: 1;
  padding: 7px 6px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.size-pill.active {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
  border-color: var(--brand-indigo);
  font-weight: 700;
}

.dish-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.dish-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-gold);
}

/* --------------------------------------------------------------------------
   INTERACTIVE ROI & COST-SAVING CALCULATOR
   -------------------------------------------------------------------------- */
.calculator-box {
  background: linear-gradient(145deg, rgba(14, 18, 27, 0.9) 0%, rgba(10, 13, 20, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .calculator-box {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    gap: 26px;
    border-radius: var(--radius-md);
  }
}

.calculator-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-indigo), var(--brand-emerald));
}

.calc-slider-group {
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .calc-slider-group {
    margin-bottom: 18px;
  }
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calc-slider-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.calc-slider-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-gold);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (max-width: 768px) {
  .calc-slider-title {
    font-size: 13px;
  }
  .calc-slider-val {
    font-size: 14.5px;
  }
}

.calc-range-input {
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: #1e2536;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-gold);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.7);
  transition: transform 0.15s ease;
}

.calc-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Result Card */
.calc-result-card {
  background: rgba(22, 28, 42, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .calc-result-card {
    padding: 20px 14px;
    border-radius: var(--radius-sm);
  }
}

.calc-result-num {
  font-size: 38px;
  font-weight: 900;
  color: var(--brand-emerald);
  margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

@media (max-width: 768px) {
  .calc-result-num {
    font-size: 27px;
    line-height: 1.2;
  }
}

@media (max-width: 400px) {
  .calc-result-num {
    font-size: 23px;
  }
}

/* --------------------------------------------------------------------------
   LIVE BARISTA TICKET SIMULATOR
   -------------------------------------------------------------------------- */
.ticket-simulator-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

#btnSimulateOrder {
  max-width: 100%;
}

@media (max-width: 768px) {
  .ticket-simulator-wrap {
    width: 100%;
    gap: 18px;
  }

  #btnSimulateOrder {
    width: 100%;
    padding: 13px 16px !important;
    font-size: 13px !important;
    line-height: 1.5;
    white-space: normal;
    text-align: center;
  }
}

.thermal-ticket {
  width: 320px;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 8px 8px 0 0;
  padding: 22px 20px 30px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  font-family: 'Vazirmatn', monospace;
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .thermal-ticket {
    width: 100%;
    max-width: 290px;
    padding: 18px 14px 24px 14px;
    box-sizing: border-box;
  }
}

.thermal-ticket.printed {
  transform: translateY(0);
  opacity: 1;
}

.ticket-header {
  text-align: center;
  border-bottom: 2px dashed #94a3b8;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.ticket-header h4 {
  font-size: 16px;
  font-weight: 800;
}

.ticket-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 600;
}

.ticket-footer {
  border-top: 2px dashed #94a3b8;
  padding-top: 12px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   INTERACTIVE BENTO GRID
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.bento-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

@media (max-width: 768px) {
  .bento-card {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow-card), 0 0 35px rgba(99, 102, 241, 0.15);
}

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}

@media (max-width: 768px) {
  .bento-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-bottom: 14px;
  }
}

.bento-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .bento-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }
}

.bento-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .bento-card p {
    font-size: 13px;
    line-height: 1.65;
  }
}

/* --------------------------------------------------------------------------
   PLANS & PRICING
   -------------------------------------------------------------------------- */
.billing-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  background: rgba(18, 23, 34, 0.7);
  padding: 8px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
}

.billing-toggle-wrapper:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .billing-toggle-wrapper {
    gap: 10px;
    padding: 6px 14px;
    max-width: 100%;
  }
}

.billing-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.billing-label.active {
  color: #fff;
  font-weight: 800;
}

.billing-label.yearly {
  color: var(--brand-gold);
}

@media (max-width: 768px) {
  .billing-label {
    font-size: 11.5px;
  }
}

.toggle-switch-track {
  width: 58px;
  height: 30px;
  background: #1b2232;
  border-radius: 99px;
  position: relative;
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

@media (max-width: 768px) {
  .toggle-switch-track {
    width: 50px;
    height: 26px;
  }
}

.toggle-switch-knob {
  width: 22px;
  height: 22px;
  background: var(--brand-gold);
  border-radius: 50%;
  position: absolute;
  top: 3px;
  right: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .toggle-switch-knob {
    width: 18px;
    height: 18px;
    top: 3px;
    right: 4px;
  }
}

/* When yearly is active: track glows and knob smoothly slides left */
.toggle-switch-track.active {
  background: linear-gradient(135deg, var(--brand-indigo), #7c3aed);
  border-color: var(--brand-indigo-light);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.45);
}

.toggle-switch-track.active .toggle-switch-knob {
  transform: translateX(-28px);
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .toggle-switch-track.active .toggle-switch-knob {
    transform: translateX(-24px);
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

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

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

@media (max-width: 768px) {
  .pricing-card {
    padding: 26px 18px;
    border-radius: var(--radius-md);
  }
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.15);
}

.pricing-card.featured {
  border: 2px solid var(--brand-indigo);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--brand-indigo-glow);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-indigo), #a855f7);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.plan-price {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 18px 0;
}

@media (max-width: 768px) {
  .plan-price {
    font-size: 28px;
    margin: 14px 0;
  }
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
  color: #cbd5e1;
  margin-bottom: 28px;
  flex: 1;
}

@media (max-width: 768px) {
  .plan-features {
    font-size: 13px;
    gap: 10px;
    margin-bottom: 22px;
  }
}

/* --------------------------------------------------------------------------
   LEAD CONSULTATION FORM
   -------------------------------------------------------------------------- */
.consultation-section {
  padding: 90px 0;
  position: relative;
}

@media (max-width: 768px) {
  .consultation-section {
    padding: 45px 0;
  }
}

.lead-form-box {
  background: linear-gradient(145deg, rgba(14, 18, 27, 0.95) 0%, rgba(9, 12, 18, 0.98) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-card), 0 0 50px rgba(99, 102, 241, 0.2);
}

@media (max-width: 768px) {
  .lead-form-box {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.lead-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .lead-input-group {
    margin-bottom: 14px;
  }
}

.lead-input-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .lead-input-group label {
    font-size: 12.5px;
  }
}

.lead-input-group input,
.lead-input-group select,
.lead-input-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  transition: var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .lead-input-group input,
  .lead-input-group select,
  .lead-input-group textarea {
    font-size: 16px !important; /* Critical: prevents auto-zoom on iOS */
    padding: 12px 14px;
    border-radius: var(--radius-xs);
  }
}

.lead-input-group input:focus,
.lead-input-group select:focus,
.lead-input-group textarea:focus {
  outline: none;
  border-color: var(--brand-indigo);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

/* --------------------------------------------------------------------------
   FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 768px) {
  .faq-list {
    gap: 10px;
  }
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

@media (max-width: 768px) {
  .faq-question {
    padding: 14px 16px;
    font-size: 14px;
  }
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--brand-gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .faq-answer {
    padding: 0 16px;
    font-size: 13px;
    line-height: 1.7;
  }
}

.faq-item.open .faq-answer {
  padding-bottom: 18px;
}

@media (max-width: 768px) {
  .faq-item.open .faq-answer {
    padding-bottom: 14px;
  }
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.landing-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px 0;
  background: rgba(5, 7, 10, 0.95);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .landing-footer {
    padding: 40px 0 24px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
    text-align: center;
  }
}

.footer-copy {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .footer-copy {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    font-size: 11.5px;
  }
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATION COMPONENT
   -------------------------------------------------------------------------- */
.landing-toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 420px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.landing-toast-item {
  pointer-events: auto;
  background: rgba(22, 28, 40, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
