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

:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-secondary: 'Outfit', sans-serif;

  /* Color Palette */
  --primary: hsl(28, 100%, 53%);
  --primary-rgb: 255, 122, 0;
  --primary-hover: hsl(28, 100%, 47%);
  --primary-light: hsl(28, 100%, 96%);
  
  --success: hsl(150, 84%, 37%);
  --success-light: hsl(150, 84%, 96%);
  
  --info: hsl(210, 100%, 50%);
  --info-light: hsl(210, 100%, 96%);
  
  --danger: hsl(354, 84%, 57%);
  --danger-light: hsl(354, 84%, 96%);
  
  --dark: hsl(220, 20%, 10%);
  --dark-soft: hsl(220, 15%, 16%);
  --light: hsl(220, 20%, 97%);
  --white: #ffffff;
  
  --text-main: hsl(220, 20%, 15%);
  --text-muted: hsl(220, 10%, 45%);
  --text-light: hsl(220, 10%, 65%);
  
  --border: hsl(220, 15%, 90%);
  --border-light: hsl(220, 15%, 95%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-orange: 0 10px 30px rgba(255, 122, 0, 0.2);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
  --phone-scale: 1.0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light);
}
::-webkit-scrollbar-thumb {
  background: hsl(220, 10%, 80%);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 122, 0, 0.3);
}

.btn-secondary {
  background-color: var(--light);
  color: var(--dark);
  border: 1px solid var(--border);
}

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

/* Badges */
.badge-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--dark);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  gap: 12px;
  font-family: var(--font-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.download-badge:hover {
  background-color: var(--dark-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.download-badge svg,
.download-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.download-badge svg {
  fill: currentColor;
}

.download-badge .badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.download-badge .badge-text span:first-child {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.download-badge .badge-text span:last-child {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-secondary);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

header.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition);
}

header.scrolled .nav-container {
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark);
}

.logo-text {
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.logo-pos {
  font-weight: 300;
  color: var(--dark);
}

/* Adjust colors for dark footers */
footer .logo {
  color: var(--white);
}

footer .logo-text,
footer .logo-pos {
  color: var(--white);
}

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

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a.btn {
  color: var(--white);
}

.nav-links a.btn-primary {
  color: var(--white);
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* Sticky Scroll Showcase Section */
.scroll-story-container {
  height: 480vh; /* Expanded height to handle 5 screens smoothly */
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(255, 122, 0, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(15, 23, 42, 0.02) 0%, transparent 50%);
}

.sticky-viewport {
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-sticky-grid {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  height: 100%;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  transform-origin: left center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), hsl(15, 100%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

/* Mouse Scroll indicator hint */
.scroll-indicator-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.mouse-icon {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-muted);
  border-radius: 10px;
  position: relative;
}

.mouse-icon .wheel {
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* Centering Phone Wrapper */
.simulator-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.device-frame {
  width: 330px;
  height: 670px;
  background-color: #0b0b0f;
  border-radius: 40px;
  border: 10px solid #1a1a24;
  box-shadow: var(--shadow-lg), 0 30px 70px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: scale(var(--phone-scale)) translateZ(0);
  transform-origin: center center;
}

.device-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background-color: #000;
  border-radius: 12px;
  z-index: 99;
}

/* Mobile App Layout inside simulator */
.app-screen {
  flex: 1;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  image-rendering: -webkit-optimize-contrast;
}

.app-screen * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-header {
  padding: 40px 16px 12px;
  background-color: #ffffff;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1d20;
}

.app-header p {
  font-size: 0.75rem;
  color: #6c757d;
}

.app-header .privacy-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: #6c757d;
  flex-direction: column;
}

.app-switch {
  width: 34px;
  height: 18px;
  background-color: #e9ecef;
  border-radius: 9px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.app-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.app-switch.active {
  background-color: #4cd964;
}

.app-switch.active::after {
  left: 18px;
}

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Screen Home Specifics */
.app-banner {
  background: linear-gradient(135deg, #ff7a00, #ff5500);
  border-radius: 14px;
  padding: 20px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 122, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.app-banner.green {
  background: linear-gradient(135deg, #42b883, #34a853);
  box-shadow: 0 6px 16px rgba(52, 168, 83, 0.15);
}

.app-banner svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.app-banner span {
  font-weight: 600;
  font-size: 0.95rem;
}

.app-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.app-stat-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #f1f3f5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.app-stat-label {
  font-size: 0.65rem;
  color: #868e96;
  margin-bottom: 4px;
}

.app-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #212529;
}

/* Screen Bills Specifics */
.app-tab-bar {
  display: flex;
  background-color: #f1f3f5;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.app-tab {
  flex: 1;
  padding: 6px 12px;
  font-size: 0.75rem;
  text-align: center;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.app-tab.active {
  background-color: #ff7a00;
  color: #fff;
}

.table-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.table-card {
  background-color: #fff;
  border-radius: 12px;
  border-left: 4px solid #34a853;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.table-card.billed {
  border-left-color: #007bff;
}

.table-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: #212529;
}

.table-status {
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.table-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #34a853;
}

.table-card.billed .table-status::before {
  background-color: #007bff;
}

.table-action {
  font-size: 0.65rem;
  color: #868e96;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.table-bill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.table-amount {
  font-weight: 700;
  font-size: 0.8rem;
  color: #007bff;
}

.table-items {
  font-size: 0.6rem;
  color: #868e96;
}

.table-pay-btn {
  background-color: #007bff;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

/* Screen Orders Specifics */
.order-card {
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid #f1f3f5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  padding: 12px;
  border-left: 4px solid #dc3545;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.order-id {
  font-weight: 700;
  font-size: 0.75rem;
  color: #212529;
}

.order-meta {
  display: flex;
  gap: 4px;
  align-items: center;
}

.order-table-badge {
  background-color: #f1f3f5;
  color: #495057;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.order-status-badge {
  background-color: #dc3545;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.order-time {
  font-size: 0.6rem;
  color: #868e96;
  margin-bottom: 8px;
}

.order-items {
  font-size: 0.7rem;
  color: #495057;
  border-bottom: 1px dashed #e9ecef;
  padding-bottom: 8px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total {
  font-size: 0.75rem;
  font-weight: 700;
}

.order-paid-status {
  font-size: 0.65rem;
  color: #ff7a00;
  font-weight: 600;
}

.order-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.app-btn-sm {
  flex: 1;
  padding: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.app-btn-sm.print {
  background-color: #f1f3f5;
  color: #495057;
  border: 1px solid #dee2e6;
}

.app-btn-sm.pay {
  background-color: #34a853;
  color: #fff;
}

/* Screen Menu Specifics */
.app-menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-menu-item {
  background-color: #fff;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  border: 1px solid #f1f3f5;
}

.app-menu-img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #faf6f2;
}

.app-menu-img svg {
  width: 100%;
  height: 100%;
}

.app-menu-info {
  flex: 1;
}

.app-menu-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #212529;
}

.app-menu-cat {
  font-size: 0.65rem;
  color: #868e96;
}

.app-menu-price {
  font-weight: 700;
  font-size: 0.8rem;
  color: #ff7a00;
  margin-top: 2px;
}

.app-menu-actions {
  display: flex;
  gap: 6px;
}

.app-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.app-action-btn.edit {
  background-color: #f1f3f5;
  color: #495057;
}

.app-action-btn.delete {
  background-color: #dc3545;
  color: #fff;
}

.app-btn-large {
  background-color: #ff7a00;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
}

/* Screen Settings/More Specifics */
.app-settings-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  border: 1px solid #f1f3f5;
  margin-bottom: 12px;
}

.app-settings-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #212529;
  margin-bottom: 14px;
}

.app-settings-header svg {
  width: 16px;
  height: 16px;
  stroke: #495057;
}

.app-form-group {
  margin-bottom: 12px;
}

.app-form-group label {
  display: block;
  font-size: 0.65rem;
  color: #868e96;
  margin-bottom: 4px;
  font-weight: 600;
}

.app-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #212529;
  background-color: #fff;
  outline: none;
}

.app-input:focus {
  border-color: #ff7a00;
}

.app-btn-logout {
  background-color: #fff0f0;
  color: #dc3545;
  border: 1px solid #ffdddd;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
  margin-top: auto;
}

/* Bottom Nav bar */
.app-nav {
  height: 54px;
  background-color: #ffffff;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 4px;
}

.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #868e96;
  font-size: 0.6rem;
  cursor: pointer;
  position: relative;
}

.app-nav-item.active {
  color: #ff7a00;
}

.app-nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.app-nav-item .badge {
  position: absolute;
  top: -2px;
  right: 6px;
  background-color: #dc3545;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dynamic Scroll Callouts */
.scroll-callouts-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  max-width: var(--container-width);
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.scroll-callout {
  position: absolute;
  width: 290px;
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: auto;
}

.scroll-callout.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-callout .callout-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.scroll-callout h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.scroll-callout p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Position Callouts Left & Right of the Simulator */
#callout-home {
  left: 10%;
  top: 35%;
}

#callout-bills {
  right: 10%;
  top: 45%;
}

#callout-orders {
  left: 10%;
  top: 55%;
}

#callout-menu {
  right: 10%;
  top: 38%;
}

#callout-settings {
  left: 10%;
  top: 48%;
}

@media (max-width: 1024px) {
  .hero-sticky-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    height: 100%;
    align-content: center;
  }
  .hero-text-content {
    align-items: center;
    text-align: center;
    width: 100%;
    min-width: 0;
  }
  .hero-desc {
    margin: 0 auto 36px;
  }
  .scroll-callouts-container {
    display: none;
  }
}

/* Features Grid */
.features {
  background-color: var(--light);
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 30px;
  justify-content: center;
}

.feature-card {
  flex: 1 1 320px;
  max-width: 370px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.feature-card.success .feature-icon-wrapper {
  background-color: var(--success-light);
  color: var(--success);
}

.feature-card.info .feature-icon-wrapper {
  background-color: var(--info-light);
  color: var(--info);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Info Banner Section */
.info-banner {
  background-color: var(--white);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.info-img {
  position: relative;
}

.info-img::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.1) 0%, transparent 60%);
  z-index: -1;
}

.info-img-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.info-img-card svg {
  width: 100%;
  height: auto;
  max-width: 400px;
}

.info-content h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.info-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
}

.info-list li svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  margin-top: 4px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .info-img {
    order: 2;
  }
  .info-content h2 {
    font-size: 1.75rem;
  }
  .info-content p {
    font-size: 0.9rem;
  }
}

/* Download Call-to-action */
.download-cta {
  background: linear-gradient(135deg, var(--dark), var(--dark-soft));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.download-cta h2 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 20px;
}

.download-cta p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.download-cta .badge-row {
  justify-content: center;
}

/* Footer styling */
footer {
  background-color: var(--dark);
  color: var(--text-light);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .logo {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-links-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
}

/* Footer 768px rules consolidated into the block below */

/* Privacy Policy Layout */
.privacy-body {
  background-color: var(--light);
}

.privacy-container {
  max-width: 800px;
  margin: 120px auto 80px;
  background-color: var(--white);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.privacy-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.privacy-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.privacy-header p {
  color: var(--text-muted);
}

.privacy-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
  color: var(--dark);
}

.privacy-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.privacy-content ul {
  margin-bottom: 24px;
  padding-left: 20px;
  color: var(--text-muted);
}

.privacy-content li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .privacy-container {
    padding: 30px 20px;
    margin-top: 100px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Mobile menu and navigation responsiveness */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    z-index: 100;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 30px 40px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 90;
  }
  .nav-links.active {
    right: 0;
  }
  /* Hamburger toggle animation */
  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Mobile interactive simulator tab bar & desc rules */
.mobile-interactive-showcase {
  display: none;
}

@media (max-width: 1024px) {
  :root {
    --phone-scale: 1.0;
  }
  .scroll-story-container {
    height: auto !important;
    padding: 120px 0 60px; /* Increased top padding to clear header */
    overflow: hidden;
  }
  .sticky-viewport {
    position: relative;
    height: auto;
    top: auto;
    overflow: visible;
  }
  .hero-sticky-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    height: auto;
    padding: 0 24px;
  }
  .badge-row {
    justify-content: center;
  }
  .simulator-wrapper {
    transform: none !important;
    opacity: 1 !important;
    margin-top: 20px;
    width: calc(330px * var(--phone-scale));
    height: calc(670px * var(--phone-scale));
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    justify-self: center;
  }
  .device-frame {
    flex-shrink: 0;
  }
  .scroll-indicator-hint {
    display: none;
  }
  .mobile-interactive-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin-top: 30px;
  }
  .mobile-simulator-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    padding: 10px 4px;
    scrollbar-width: none; /* Hide scrollbars for a premium app feel */
    -ms-overflow-style: none;
    justify-content: flex-start;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
  }
  .mobile-simulator-tabs::-webkit-scrollbar {
    display: none;
  }
  .mobile-tab-btn {
    white-space: nowrap;
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
  }
  .mobile-tab-btn.active {
    background-color: var(--primary-light);
    color: var(--primary);
  }
  .mobile-simulator-desc {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    min-height: 140px;
  }
  .mobile-desc-card {
    display: none;
    animation: fadeInUp 0.4s ease forwards;
  }
  .mobile-desc-card.active {
    display: block;
  }
  .mobile-desc-card .callout-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .mobile-desc-card h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--dark);
  }
  .mobile-desc-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  :root {
    --phone-scale: 0.92;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .info-img-card {
    padding: 15px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .section-desc {
    font-size: 0.9rem;
    margin-bottom: 40px;
  }
  .download-cta {
    padding: 50px 20px;
  }
  .download-cta h2 {
    font-size: 2rem;
  }
  .download-cta p {
    font-size: 0.95rem;
  }
  .feature-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --phone-scale: 0.88;
  }
  .hero-title {
    font-size: 2.05rem;
  }
  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .section-desc {
    font-size: 0.85rem;
    margin-bottom: 30px;
  }
  .download-cta {
    padding: 40px 16px;
  }
  .download-cta h2 {
    font-size: 1.65rem;
  }
  .download-cta p {
    font-size: 0.85rem;
    margin-bottom: 28px;
  }
  .info-content h2 {
    font-size: 1.5rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
  }
  .badge-row {
    gap: 10px;
  }
  .download-badge {
    padding: 8px 16px;
    gap: 10px;
  }
  .download-badge .badge-text span:last-child {
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  :root {
    --phone-scale: 0.80;
  }
}

@media (max-width: 340px) {
  :root {
    --phone-scale: 0.72;
  }
}

