/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  transition: all 0.3s, transform 0.3s;
}
.nav.hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.nav-logo {
  font-size: 20px; font-weight: 800; color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--gray-600);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient);
  position: relative; overflow: hidden;
  text-align: center; color: var(--white);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.05) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; padding: 0 32px; }
.hero-badge {
  display: inline-block; padding: 6px 20px; border-radius: 50px;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 500; margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero h1 { font-size: 56px; font-weight: 900; margin-bottom: 20px; letter-spacing: -1px; line-height: 1.2; }
.hero h1 em { font-style: normal; color: rgba(255,255,255,0.85); font-weight: 300; }
.hero p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto 40px; line-height: 1.8; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border-radius: 50px;
  background: var(--white); color: var(--primary);
  font-size: 15px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.25); }

/* floating shapes */
.shape { position: absolute; border-radius: 50%; opacity: 0.1; }
.shape-1 { width: 400px; height: 400px; background: var(--white); top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: var(--white); bottom: -80px; left: -80px; }
.shape-3 { width: 150px; height: 150px; background: var(--accent); top: 40%; left: 10%; opacity: 0.15; }

/* ── Section common ── */
.section { padding: 100px 32px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-block; padding: 4px 16px; border-radius: 50px;
  background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(0,210,211,0.1));
  color: var(--primary); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.section-header h2 {
  font-size: 36px; font-weight: 800; color: var(--gray-900);
  margin-bottom: 12px; letter-spacing: -0.5px;
}
.section-header p { font-size: 16px; color: var(--gray-600); max-width: 600px; margin: 0 auto; }

/* ── Overview Stats ── */
.overview-bg { background: var(--white); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-bottom: 60px;
}
.stat-card {
  text-align: center; padding: 32px 20px; border-radius: var(--radius);
  background: var(--gray-50); border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.stat-icon.purple { background: linear-gradient(135deg, #6C5CE7, #a29bfe); color: white; }
.stat-icon.teal { background: linear-gradient(135deg, #00D2D3, #55E6C1); color: white; }
.stat-icon.blue { background: linear-gradient(135deg, #0984e3, #74b9ff); color: white; }
.stat-icon.orange { background: linear-gradient(135deg, #e17055, #fab1a0); color: white; }
.stat-number { font-size: 32px; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--gray-600); font-weight: 500; }

/* ── Menu Structure ── */
.menu-tree {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.menu-tree-header {
  padding: 20px 28px; background: var(--gradient-dark); color: white;
  font-size: 16px; font-weight: 700;
}
.menu-group { border-bottom: 1px solid var(--gray-200); }
.menu-group:last-child { border-bottom: none; }
.menu-group-label {
  padding: 14px 28px; font-size: 14px; font-weight: 700; color: var(--gray-900);
  background: var(--gray-50); display: flex; align-items: center; gap: 10px;
}
.menu-group-label .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.dot.c1 { background: var(--primary); }
.dot.c2 { background: var(--accent); }
.dot.c3 { background: #0984e3; }
.dot.c4 { background: #e17055; }
.dot.c5 { background: #00b894; }
.dot.c6 { background: #fdcb6e; }
.dot.c7 { background: #e84393; }
.dot.c8 { background: #636e72; }
.menu-sub-items { padding: 0; }
.menu-sub-item {
  padding: 10px 28px 10px 48px; font-size: 13px; color: var(--gray-600);
  border-top: 1px solid var(--gray-100); display: flex; align-items: center; gap: 8px;
}
.menu-sub-item::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gray-400); flex-shrink: 0; }

/* ── Feature Cards ── */
.feature-section { padding: 100px 32px; }
.feature-section:nth-child(even) { background: var(--white); }
.feature-inner { max-width: 1200px; margin: 0 auto; }

.feature-header {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 40px;
}
.feature-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: white;
}
.feature-header h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.feature-header p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px; position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-section:nth-child(even) .feature-card { background: var(--gray-50); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card h4 {
  font-size: 16px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.feature-card h4 .icon { font-size: 20px; }
.feature-card p { font-size: 13px; color: var(--gray-600); margin-bottom: 12px; }
.feature-card ul { list-style: none; padding: 0; }
.feature-card li {
  font-size: 13px; color: var(--gray-600); padding: 4px 0;
  display: flex; align-items: flex-start; gap: 8px;
}
.feature-card li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  margin-top: 7px; flex-shrink: 0;
}

.c-purple li::before { background: var(--primary); }
.c-teal li::before { background: var(--accent); }
.c-blue li::before { background: #0984e3; }
.c-orange li::before { background: #e17055; }
.c-green li::before { background: #00b894; }
.c-yellow li::before { background: #fdcb6e; }
.c-pink li::before { background: #e84393; }
.c-gray li::before { background: #636e72; }

/* ── UI Preview Mock ── */
.ui-preview {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  margin-top: 32px;
}
.ui-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
}
.ui-dot { width: 10px; height: 10px; border-radius: 50%; }
.ui-dot.red { background: #ff5f57; }
.ui-dot.yellow { background: #febc2e; }
.ui-dot.green { background: #28c840; }
.ui-body { display: flex; min-height: 340px; }
.ui-sidebar {
  width: 200px; background: var(--gray-50); border-right: 1px solid var(--gray-200);
  padding: 16px 0; flex-shrink: 0;
}
.ui-sidebar-title {
  padding: 0 16px 8px; font-size: 11px; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 6px;
}
.ui-sidebar-group { margin-bottom: 12px; }
.ui-sidebar-group-label { padding: 6px 16px; font-size: 11px; font-weight: 600; color: var(--gray-700); }
.ui-sidebar-item {
  padding: 5px 16px 5px 28px; font-size: 11px; color: var(--gray-600);
  cursor: default; transition: all 0.15s;
}
.ui-sidebar-item.active { color: var(--primary); font-weight: 600; background: rgba(108,92,231,0.06); border-left: 2px solid var(--primary); }
.ui-content { flex: 1; padding: 20px 24px; }
.ui-content-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

/* Mock table */
.mock-tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid var(--gray-200); }
.mock-tab {
  padding: 8px 20px; font-size: 12px; font-weight: 500; color: var(--gray-600);
  border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: default;
}
.mock-tab.active { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }
.mock-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.mock-table th {
  text-align: left; padding: 8px 10px; background: var(--gray-50);
  font-weight: 600; color: var(--gray-600); font-size: 10px;
  border-bottom: 1px solid var(--gray-200);
}
.mock-table td {
  padding: 8px 10px; border-bottom: 1px solid var(--gray-100); color: var(--gray-600);
}
.mock-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 10px; font-weight: 600;
}
.badge-occupied { background: #dbeafe; color: #2563eb; }
.badge-vacant { background: #dcfce7; color: #16a34a; }
.badge-expiring { background: #fef3c7; color: #d97706; }
.badge-overdue { background: #fee2e2; color: #dc2626; }

/* Floor map mock */
.floor-map { display: flex; flex-direction: column; gap: 4px; }
.floor-row { display: flex; align-items: center; gap: 4px; }
.floor-label { width: 36px; font-size: 10px; font-weight: 600; color: var(--gray-600); text-align: right; padding-right: 6px; }
.room-cell {
  flex: 1; padding: 6px 8px; border-radius: 6px; font-size: 9px; text-align: center;
  min-width: 50px; max-width: 80px;
}
.room-cell.occupied { background: #dbeafe; color: #2563eb; border: 1px solid #bfdbfe; }
.room-cell.vacant { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.room-cell.expiring { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.room-cell .room-num { font-weight: 700; font-size: 10px; }
.room-cell .room-status { font-size: 8px; opacity: 0.8; }

/* ── Benefits ── */
.benefits-bg {
  background: var(--gradient); color: white; padding: 100px 32px;
}
.benefits-inner { max-width: 1200px; margin: 0 auto; }
.benefits-header { text-align: center; margin-bottom: 60px; }
.benefits-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.benefits-header p { font-size: 16px; opacity: 0.85; }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.benefit-card {
  background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); padding: 32px;
}
.benefit-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.benefit-card p { font-size: 13px; opacity: 0.85; line-height: 1.8; }
.benefit-card ul { list-style: none; padding: 0; margin-top: 8px; }
.benefit-card li { font-size: 13px; opacity: 0.85; padding: 3px 0; display: flex; align-items: center; gap: 8px; }
.benefit-card li::before { content: '\2713'; font-size: 12px; font-weight: 700; }

/* ── Footer ── */
.footer {
  background: var(--gray-900); color: rgba(255,255,255,0.6);
  padding: 48px 32px; text-align: center;
}
.footer-logo { font-size: 22px; font-weight: 800; color: white; margin-bottom: 8px; }
.footer-logo span { color: var(--accent); }
.footer p { font-size: 12px; margin-bottom: 4px; }

/* ── Hamburger Button ── */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative; z-index: 102;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--gray-700);
  border-radius: 2px; transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile Sidebar Menu Overlay ── */
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.3s;
}
.mobile-menu-overlay.open { display: block; opacity: 1; }
.mobile-menu {
  position: fixed; top: 0; right: -280px; z-index: 101;
  width: 280px; height: 100%; background: var(--white);
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transition: right 0.3s ease; padding: 80px 24px 80px;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu > a {
  display: block; padding: 14px 0; font-size: 15px; font-weight: 500;
  color: var(--gray-700); text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu > a:hover { color: var(--primary); }
.mobile-menu .mobile-menu-actions {
  display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 8px;
}
.mobile-menu .mobile-menu-actions .nav-preview-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6C5CE7, #00D2D3); color: #fff;
  padding: 10px 24px; border-radius: 50px; font-weight: 700; font-size: 14px;
  text-decoration: none;
}
.mobile-menu .mobile-menu-actions .lang-btn {
  width: 36px; height: 36px; min-width: 36px; padding: 0;
  font-size: 13px; flex-shrink: 0;
}

/* ── Tablet Breakpoint ── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 24px; }
  .feature-section { padding: 80px 24px; }
  .benefits-bg { padding: 80px 24px; }
  .nav-inner { padding: 14px 24px; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero h1 { font-size: 36px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .ui-sidebar { width: 140px; }
  .section { padding: 60px 20px; }
  .feature-section { padding: 60px 20px; }
  .section-header h2 { font-size: 28px; }
  .benefits-bg { padding: 60px 20px; }
  .benefits-header h2 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .feature-header h2 { font-size: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .ui-body { flex-direction: column; }
  .ui-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--gray-200); }
  .hero { min-height: 80vh; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 14px; }
  .hero-content { padding: 0 16px; }
  .hero-cta { padding: 12px 28px; font-size: 14px; }
  .nav-inner { padding: 12px 16px; }
  .section { padding: 48px 16px; }
  .feature-section { padding: 48px 16px; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 24px; }
  .section-header p { font-size: 14px; }
  .feature-header { flex-direction: column; gap: 12px; }
  .feature-card { padding: 20px; }
  .benefit-card { padding: 24px; }
  .benefit-card h4 { font-size: 16px; }
  .stat-card { padding: 20px 16px; }
  .stat-number { font-size: 24px; }
  .footer { padding: 32px 16px; }
  .menu-group-label { padding: 12px 16px; font-size: 13px; }
  .menu-sub-item { padding: 8px 16px 8px 32px; }
  .mock-table { font-size: 10px; }
  .mock-table th, .mock-table td { padding: 6px 6px; }
  .floor-label { width: 28px; font-size: 9px; }
  .room-cell { min-width: 40px; padding: 4px 4px; font-size: 8px; }
  .room-cell .room-num { font-size: 9px; }
}
