/* ==========================================================================
   aplikasikasirrestoran.my.id - Design Tokens & Stylesheet
   POS Point of Sale Khusus Restoran, Rumah Makan & Kuliner
   ========================================================================== */

:root {
  --primary: #991b1b;           /* Deep Crimson Burgundy */
  --primary-hover: #7f1d1d;
  --primary-dark: #450a0a;
  --primary-light: #fee2e2;
  --primary-gradient: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);

  --secondary: #1a0f0d;         /* Charcoal Mahogany */
  --accent: #ea580c;            /* Spiced Flambé Orange */
  --accent-light: #ffedd5;
  --gold: #d97706;              /* Culinary Warm Gold */
  --emerald: #059669;           /* Available green */
  
  --bg-page: #faf7f5;           /* Warm Bone Porcelain */
  --bg-surface: #ffffff;
  --bg-alt: #f5eeea;            /* Warm Table Linen */
  
  --text-main: #1f1412;
  --text-muted: #574441;
  --text-sub: #786461;
  --text-white: #ffffff;
  
  --border-color: #ecdcd6;
  --border-light: #f4eae7;
  
  --shadow-sm: 0 1px 3px rgba(26, 15, 13, 0.05);
  --shadow-md: 0 4px 8px -1px rgba(26, 15, 13, 0.08), 0 2px 4px -2px rgba(26, 15, 13, 0.04);
  --shadow-lg: 0 12px 20px -3px rgba(26, 15, 13, 0.1), 0 4px 6px -4px rgba(26, 15, 13, 0.04);
  --shadow-xl: 0 20px 28px -5px rgba(26, 15, 13, 0.12), 0 8px 10px -6px rgba(26, 15, 13, 0.05);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* TOPBAR & NAVBAR */
.topbar {
  background: var(--secondary);
  color: #dfd1ce;
  font-size: 0.78rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}

.brand-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

.brand-text span {
  color: var(--primary);
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--text-sub);
  display: block;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.45);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--secondary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: #d1c4b7;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

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

/* HERO SECTION */
.hero {
  padding: 70px 0 60px;
  background: radial-gradient(circle at 80% 20%, rgba(185, 28, 28, 0.08) 0%, transparent 65%),
              radial-gradient(circle at 10% 80%, rgba(234, 88, 12, 0.06) 0%, transparent 65%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(185, 28, 28, 0.2);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -1px;
  color: var(--secondary);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
}

.stat-item p {
  font-size: 0.78rem;
  color: var(--text-sub);
  font-weight: 600;
}

/* RESTO SIMULATOR & TABLE MAP */
.resto-preview-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  padding: 26px;
}

.resto-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.resto-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-alt);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
}

.resto-tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.table-grid-sample {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.table-box {
  padding: 10px 8px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.table-box.occupied {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.table-box.available {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.table-box.active {
  outline: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.table-name {
  font-weight: 800;
  font-size: 0.82rem;
  display: block;
}

.table-status {
  font-size: 0.68rem;
  font-weight: 600;
}

.resto-bill-box {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.bill-row.total-bold {
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--secondary);
}

/* FEATURES SECTION */
.section-features {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  transition: var(--transition);
}

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

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.f-red { background: #fee2e2; color: #991b1b; }
.f-orange { background: #ffedd5; color: #ea580c; }
.f-amber { background: #fef3c7; color: #d97706; }
.f-green { background: #ecfdf5; color: #059669; }
.f-blue { background: #e0f2fe; color: #0284c7; }
.f-purple { background: #f5f3ff; color: #7c3aed; }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* PRICING */
.section-pricing {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-xl);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: white;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pricing-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 6px;
}

.pricing-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price-box {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--secondary);
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.pricing-features li i {
  color: var(--emerald);
  font-size: 0.8rem;
}

/* FAQ */
.section-faq {
  padding: 80px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.faq-answer {
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
}
