/* ===== Variables ===== */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --blue-pale: #eff6ff;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-gray: #f8fafc;
  --bg-section: #f1f5f9;
  --border: #e2e8f0;
  --green: #22c55e;
  --shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.text-blue { color: var(--blue); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.logo { display: flex; flex-direction: column; }
.logo-main {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}
.logo-wai { color: var(--text); }
.logo-pos { color: var(--blue); }
.logo-tagline {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 500;
}
.nav {
  display: flex;
  gap: 1.75rem;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active { color: var(--blue); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: linear-gradient(180deg, var(--bg-gray) 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
}
.hero-title .text-blue { display: block; font-size: clamp(2.5rem, 5vw, 3.75rem); }
.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #111;
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.store-btn:hover { opacity: 0.85; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn small {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.trust-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Tablet mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.tablet-stand {
  position: relative;
  z-index: 2;
}
.tablet {
  width: min(520px, 100%);
  aspect-ratio: 4/3;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  transform: perspective(800px) rotateY(-4deg);
}
.tablet-screen {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
}
.tablet-base {
  width: 180px;
  height: 12px;
  background: linear-gradient(180deg, #333, #111);
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
  position: relative;
}
.tablet-base::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 6px;
  background: #222;
  border-radius: 50%;
}
.hero-plant {
  position: absolute;
  right: -10px;
  bottom: 30px;
  width: 50px;
  height: 70px;
  background: linear-gradient(180deg, #86efac 0%, #22c55e 40%, #fff 40%);
  border-radius: 4px 4px 8px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.hero-plant::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 30px;
  background: radial-gradient(ellipse, #4ade80 30%, transparent 70%);
}

/* POS UI inside tablet */
.pos-ui {
  display: grid;
  grid-template-columns: 70px 1fr 110px;
  height: 100%;
  font-size: 5px;
}
.pos-sidebar {
  background: var(--blue);
  color: #fff;
  padding: 6px 4px;
}
.pos-logo-mini {
  font-weight: 800;
  font-size: 6px;
  margin-bottom: 8px;
  text-align: center;
}
.pos-nav { display: flex; flex-direction: column; gap: 4px; }
.pos-nav-item {
  padding: 3px 4px;
  border-radius: 3px;
  font-size: 4.5px;
  opacity: 0.7;
}
.pos-nav-item.active { background: rgba(255,255,255,0.2); opacity: 1; }
.pos-main { padding: 6px; overflow: hidden; }
.pos-tabs { display: flex; gap: 4px; margin-bottom: 5px; }
.pos-tab {
  padding: 2px 6px;
  background: var(--border);
  border-radius: 999px;
  font-size: 4.5px;
  font-weight: 600;
}
.pos-tab.active { background: var(--blue); color: #fff; }
.pos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.pos-item {
  background: #fff;
  border-radius: 4px;
  padding: 3px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.pos-item-img {
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  margin-bottom: 2px;
}
.pos-item-img.img2 { background: linear-gradient(135deg, #f87171, #ef4444); }
.pos-item-img.img3 { background: linear-gradient(135deg, #fb923c, #ea580c); }
.pos-item-img.img4 { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.pos-item-img.img5 { background: linear-gradient(135deg, #a3e635, #84cc16); }
.pos-item-img.img6 { background: linear-gradient(135deg, #c084fc, #a855f7); }
.pos-item span { display: block; font-size: 4px; color: var(--text-muted); }
.pos-item strong { font-size: 5px; color: var(--blue); }
.pos-cart {
  background: #fff;
  border-left: 1px solid var(--border);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
}
.pos-cart h4 { font-size: 5px; margin-bottom: 4px; }
.cart-items { flex: 1; }
.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 4px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 5px;
  font-weight: 700;
  border-top: 1px solid var(--border);
  padding-top: 4px;
  margin-bottom: 4px;
}
.cart-total strong { color: var(--blue); }
.pos-pay-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 4px;
  font-size: 4.5px;
  font-weight: 700;
  cursor: pointer;
}

/* ===== Section titles ===== */
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3rem;
}
.section-title.with-lines {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.section-title.with-lines::before,
.section-title.with-lines::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== Industries ===== */
.industries {
  padding: 4rem 0;
  background: var(--bg);
}
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 2.5rem;
}
.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 90px;
}
.industry-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.industry-icon svg { width: 32px; height: 32px; }
.industry-item:hover .industry-icon {
  transform: translateY(-4px);
  background: var(--blue-light);
}
.industry-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===== Features ===== */
.features {
  padding: 4rem 0 5rem;
  background: var(--bg-gray);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
.feature-card {
  text-align: center;
  padding: 0 1rem;
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 40px; height: 40px; }
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Mobile Showcase ===== */
.mobile-showcase {
  padding: 5rem 0;
  background: var(--bg);
  overflow: hidden;
}
.mobile-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
}
.mobile-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.mobile-text p {
  color: var(--text-muted);
  font-size: 1rem;
}
.phones-row {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.phone {
  flex-shrink: 0;
  width: 130px;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 8px 6px;
  box-shadow: var(--shadow);
}
.phone-notch {
  width: 40px;
  height: 5px;
  background: #333;
  border-radius: 999px;
  margin: 0 auto 6px;
}
.phone-screen {
  background: #f8fafc;
  border-radius: 14px;
  height: 220px;
  padding: 8px 6px;
  font-size: 7px;
  overflow: hidden;
}
.screen-header {
  font-weight: 700;
  font-size: 8px;
  margin-bottom: 6px;
  color: var(--text);
}
.stat-cards { display: flex; gap: 4px; margin-bottom: 6px; }
.stat {
  flex: 1;
  background: #fff;
  border-radius: 4px;
  padding: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.stat span { display: block; font-size: 5px; color: var(--text-muted); }
.stat strong { font-size: 7px; color: var(--blue); }
.mini-chart {
  background: #fff;
  border-radius: 4px;
  padding: 4px;
}
.chart-label { font-size: 5px; color: var(--text-muted); margin-bottom: 2px; }
.mini-chart svg { width: 100%; height: 40px; }
.menu-list { display: flex; flex-direction: column; gap: 4px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border-radius: 4px;
  padding: 3px;
}
.menu-thumb {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  flex-shrink: 0;
}
.menu-thumb.t2 { background: linear-gradient(135deg, #f87171, #ef4444); }
.menu-thumb.t3 { background: linear-gradient(135deg, #fb923c, #ea580c); }
.menu-item div span { display: block; font-weight: 600; font-size: 6px; }
.menu-item div small { color: var(--blue); font-size: 5px; }
.menu-item button {
  margin-left: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  font-size: 8px;
  line-height: 1;
  cursor: pointer;
}
.bill-items { margin-bottom: 6px; }
.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 6px;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.bill-total { font-size: 7px; font-weight: 700; margin-bottom: 6px; }
.bill-btn {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px;
  font-size: 6px;
  font-weight: 700;
  cursor: pointer;
}
.order-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.order-tabs span {
  font-size: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--border);
  font-weight: 600;
}
.order-tabs span.active { background: var(--blue); color: #fff; }
.order-list { display: flex; flex-direction: column; gap: 3px; }
.order-card {
  background: #fff;
  border-radius: 4px;
  padding: 4px;
  display: flex;
  flex-direction: column;
}
.order-card span { font-weight: 700; font-size: 6px; }
.order-card small { font-size: 5px; color: var(--text-muted); }
.report-stat {
  background: #fff;
  border-radius: 4px;
  padding: 4px;
  margin-bottom: 6px;
}
.report-stat span { font-size: 5px; color: var(--text-muted); display: block; }
.report-stat strong { font-size: 8px; color: var(--blue); }
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
  padding-top: 4px;
}
.bar {
  flex: 1;
  background: var(--blue);
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
}

/* ===== Download CTA ===== */
.download-cta {
  padding: 4rem 0;
  background: var(--blue-pale);
}
.download-inner {
  display: grid;
  grid-template-columns: 1.2fr auto 1fr;
  gap: 2.5rem;
  align-items: center;
}
.download-left h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}
.download-qr {
  text-align: center;
}
.download-qr p {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.qr-code {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.qr-code svg { width: 100%; height: 100%; }
.download-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.download-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* ===== Contact ===== */
.contact {
  padding: 4rem 0;
  background: var(--bg);
}
.contact-inner {
  max-width: 640px;
  text-align: center;
}
.contact-inner h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.contact-inner > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.contact-form { text-align: left; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-gray);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.contact-form textarea { margin-bottom: 1rem; resize: vertical; }
.contact-form .btn { width: 100%; padding: 0.85rem; }

/* ===== Footer ===== */
.footer {
  padding: 1.5rem 0;
  background: var(--bg-section);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.footer p {
  font-size: 0.8rem;
  color: var(--text-light);
}
.footer-links {
  display: flex;
  gap: 1.25rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-links a.active {
  color: var(--blue);
}

/* ===== Legal pages ===== */
.legal-page {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: var(--bg-gray);
  min-height: 100vh;
}
.legal-content {
  max-width: 760px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
.legal-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.legal-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.legal-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.75;
}
.legal-content section {
  margin-bottom: 2rem;
}
.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
}
.legal-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 0.5rem;
}
.legal-content p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}
.legal-content li {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.7;
  margin-bottom: 0.35rem;
}
.legal-content a {
  color: var(--blue);
  font-weight: 500;
}
.legal-content a:hover {
  text-decoration: underline;
}
.legal-contact {
  background: var(--blue-pale);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.legal-contact p {
  margin-bottom: 0.35rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .tablet { transform: none; max-width: 420px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-inner { grid-template-columns: 1fr; text-align: center; }
  .phones-row { justify-content: center; }
  .download-inner { grid-template-columns: 1fr; text-align: center; }
  .download-checklist { align-items: center; }
  .store-buttons { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .btn-demo { display: none; }
  .features-grid { grid-template-columns: 1fr; gap: 2rem; }
  .industry-grid { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .section-title.with-lines::before,
  .section-title.with-lines::after { display: none; }
  .section-title.with-lines { justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding-top: calc(var(--header-h) + 2rem); }
  .store-btn { flex: 1; min-width: 140px; justify-content: center; }
  .phone { width: 110px; }
  .phone-screen { height: 190px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
