/* ================================================================
   WeOrbis Brand Website — Design System & Styles
   Aligned with Genesis Tourism UI + Mobile App color tokens
   ================================================================ */

/* ===== 1. DESIGN TOKENS ===== */
:root {
  /* Primary — Indigo (from product ecosystem) */
  --primary-50:  #EEF2FF;
  --primary-100: #E0E7FF;
  --primary-200: #C7D2FE;
  --primary-300: #A5B4FC;
  --primary-400: #818CF8;
  --primary-500: #6366F1;
  --primary-600: #4F46E5;
  --primary-700: #4338CA;
  --primary-800: #3730A3;
  --primary-900: #312E81;

  /* Neutral — Slate (from product ecosystem) */
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* Semantic */
  --green: #22C55E;
  --green-dark: #16A34A;
  --amber: #F59E0B;
  --amber-dark: #D97706;
  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --red: #EF4444;

  /* Theme mappings — Dark */
  --bg-body:      var(--slate-900);
  --bg-surface:   var(--slate-800);
  --bg-surface-2: var(--slate-700);
  --text-1:       #FFFFFF;
  --text-2:       var(--slate-400);
  --text-3:       var(--slate-600);
  --border:       rgba(241, 245, 249, 0.1);
  --shadow:       rgba(0, 0, 0, 0.2);
  --shadow-lg:    rgba(0, 0, 0, 0.4);

  /* Shared */
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1120px;
  --transition: 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

/* ===== 2. RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary-600);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }


/* ===== 3. LAYOUT ===== */
.page-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -12px var(--shadow);
  overflow: hidden;
  margin: 1.25rem;
  transition: background var(--transition), border-color var(--transition);
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}
section { padding: 100px 0; }


/* ===== 4. TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.2; color: var(--text-1); }
h2 { font-size: 2.5rem; font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-2); }
strong { color: var(--primary-300); }

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-300);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 600px;
  margin-bottom: 3.5rem;
}

/* Center headers for sections with centered content */
.modules,
.mobile-section,
.process,
.faq { text-align: center; }
.modules .section-sub,
.mobile-section .section-sub,
.process .section-sub { margin-left: auto; margin-right: auto; }
.modules .mod-grid,
.mobile-section .devices,
.faq .faq-list { text-align: left; }
.process .steps { text-align: center; }


/* ===== 5. BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }
.btn-white {
  background: #fff;
  color: var(--slate-900);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-ghost-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); }
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-300);
  margin-bottom: 1.5rem;
}


/* ===== 6. HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-surface) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--transition), border-color var(--transition);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { height: 30px; width: auto; }
.logo-text { font-weight: 700; font-size: 1.25rem; color: var(--text-1); }

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--primary-300); }

.nav-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

/* Language switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--transition);
}
.lang-btn:hover { border-color: var(--primary-600); color: var(--primary-600); }
.flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px var(--shadow-lg);
  min-width: 150px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all var(--transition);
}
.lang-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  font-size: 0.8125rem;
  color: var(--text-1);
  transition: background var(--transition);
}
.lang-option:hover { background: var(--bg-surface-2); }
.lang-option.active { color: var(--primary-600); font-weight: 600; }

/* Hamburger */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  z-index: 101;
}
.hamburger {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  transition: all 0.25s ease;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  transition: all 0.25s ease;
}
.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }
.nav-toggle.active .hamburger { transform: rotate(135deg); }
.nav-toggle.active .hamburger::before,
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(90deg); }

/* Mobile menu */
.mobile-menu {
  position: absolute;
  top: 65px;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateY(-120%);
  transition: transform 0.3s ease;
  z-index: 99;
  box-shadow: 0 10px 30px var(--shadow);
}
.mobile-menu.active { transform: translateY(0); }
.mobile-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-1);
  padding: 8px 0;
}
.mobile-cta { width: 100%; text-align: center; margin-top: 0.5rem; }


/* ===== 7. HERO ===== */
.hero {
  position: relative;
  background: var(--slate-900);
  overflow: hidden;
  padding: 100px 0 60px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow.g1 {
  width: 600px;
  height: 600px;
  top: -20%;
  left: -10%;
  background: rgba(79, 70, 229, 0.2);
}
.hero-glow.g2 {
  width: 500px;
  height: 500px;
  bottom: -20%;
  right: -5%;
  background: rgba(99, 102, 241, 0.12);
}
.hero-container { position: relative; z-index: 2; }
.hero-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}
.hero-title strong { color: var(--primary-400); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--slate-300);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* ===== 8. DASHBOARD MOCKUP ===== */
.hero-visual {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  perspective: 1200px;
}
.dashboard {
  background: var(--slate-800);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  transform: rotateX(2deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotateX(2deg) translateY(0); }
  50% { transform: rotateX(2deg) translateY(-8px); }
}
.dash-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--slate-900);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot.r { background: #EF4444; }
.dash-dot.y { background: #F59E0B; }
.dash-dot.g { background: #22C55E; }
.dash-url {
  margin-left: 12px;
  font-size: 0.7rem;
  color: var(--slate-500);
  background: rgba(255,255,255,0.05);
  padding: 3px 12px;
  border-radius: 4px;
  flex: 1;
  max-width: 280px;
}
.dash-body { display: flex; min-height: 260px; }
.dash-sidebar {
  width: 52px;
  background: rgba(0,0,0,0.2);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.sb-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--primary-600);
  margin: 0 auto 8px;
}
.sb-item {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  margin: 0 4px;
}
.sb-item.active { background: var(--primary-500); }
.sb-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 4px 0; }
.dash-main { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; }

/* Stats row */
.dm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dm-stat {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}
.dm-stat-lbl { width: 50%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-bottom: 6px; }
.dm-stat-num { width: 35%; height: 8px; background: rgba(255,255,255,0.15); border-radius: 3px; margin-bottom: 8px; }
.dm-stat-bar { height: 4px; border-radius: 2px; background: var(--c); width: var(--w); opacity: 0.7; }

/* Chart + Map panels */
.dm-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.dm-chart {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
}
.dm-chart-title { width: 40%; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; margin-bottom: 10px; }
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  flex: 1;
}
.c-bar {
  flex: 1;
  height: var(--h);
  background: var(--primary-500);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  animation: bar-grow 1.5s ease-out forwards;
  transform-origin: bottom;
}
.c-bar:nth-child(even) { background: var(--primary-400); opacity: 0.5; }
@keyframes bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.dm-map {
  position: relative;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}
.map-line {
  position: absolute;
  background: rgba(255,255,255,0.04);
}
.map-line.h { left: 0; right: 0; height: 1px; }
.map-line.v { top: 0; bottom: 0; width: 1px; }
.map-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary-400);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.map-dot.pulse { animation: map-pulse 2s ease-in-out infinite; background: var(--green); }
@keyframes map-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* Table rows */
.dm-table { display: flex; flex-direction: column; gap: 4px; }
.dm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.green { background: var(--green); }
.dot.blue { background: var(--blue); }
.dot.amber { background: var(--amber); }
.row-line {
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  flex: 1;
}
.row-line.w60 { max-width: 60%; }
.row-line.w45 { max-width: 45%; }
.row-line.w70 { max-width: 70%; }
.pill {
  font-size: 0.55rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pill.green { background: rgba(34,197,94,0.15); color: #4ade80; }
.pill.blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
.pill.amber { background: rgba(245,158,11,0.15); color: #fbbf24; }

/* Floating cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 3;
}
.fc-left {
  bottom: 25%;
  left: -30px;
  animation: float-l 5s ease-in-out infinite;
}
.fc-right {
  top: 30%;
  right: -24px;
  animation: float-r 5.5s ease-in-out infinite;
}
@keyframes float-l {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float-r {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.fc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fc-icon.green { background: var(--green); }
.fc-icon.blue { background: var(--blue); }
.fc-title { font-size: 0.8rem; font-weight: 600; color: var(--text-1); white-space: nowrap; }
.fc-sub { font-size: 0.7rem; color: var(--text-2); white-space: nowrap; }


/* ===== 9. METRICS ===== */
.metrics {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.metrics-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.metric { text-align: center; }
.metric-val {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-300);
  line-height: 1;
  margin-bottom: 4px;
}
.metric-label {
  font-size: 0.8125rem;
  color: var(--text-2);
  font-weight: 500;
}
.metric-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}


/* ===== 10. PLATFORM / BENTO ===== */
.platform {
  background: var(--bg-surface-2);
  transition: background var(--transition);
  text-align: center;
}
.platform .section-sub { margin-left: auto; margin-right: auto; }
.platform .bento { text-align: left; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  overflow: hidden;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow-lg), 0 0 0 1px rgba(99,102,241,0.2);
}
.bento-card.featured {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--bg-surface) 60%, rgba(79,70,229,0.08));
  border-color: rgba(99,102,241,0.15);
}
.bento-card.wide { grid-column: span 2; }

.bento-top { margin-bottom: auto; }
.bento-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-300);
  margin-bottom: 12px;
}
.bento-label svg { stroke: var(--primary-300); }
.bento-card h3 { margin-bottom: 8px; }
.bento-card > .bento-top > p { font-size: 0.9rem; line-height: 1.6; }

/* Bento visualizations */
.bento-viz {
  margin-top: 20px;
  flex: 1;
  min-height: 0;
}

/* Route viz */
.viz-route {
  position: relative;
  min-height: 160px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 12px;
}
.route-svg { width: 100%; height: auto; }
.route-draw {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-route 3s ease forwards;
}
@keyframes draw-route {
  to { stroke-dashoffset: 0; }
}
.viz-tag {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Booking viz */
.viz-booking {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--bg-surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.mc-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-200), var(--primary-400));
  flex-shrink: 0;
}
.mc2 .mc-img { background: linear-gradient(135deg, #99F6E4, #14B8A6); }
.mc-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mc-line { height: 5px; border-radius: 3px; background: var(--text-3); }
.mc-line.w70 { width: 70%; }
.mc-line.w60 { width: 60%; }
.mc-line.w50 { width: 50%; }
.mc-line.w40 { width: 40%; }
.mc-line.light { opacity: 0.5; }
.mc-price { font-size: 0.9rem; font-weight: 700; color: var(--primary-300); white-space: nowrap; }

/* Tracking viz */
.viz-tracking {
  position: relative;
  min-height: 110px;
  background: var(--slate-900);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.map-svg { width: 100%; height: auto; display: block; }
.track-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}
.track-badge.sm { font-size: 0.55rem; padding: 1px 6px; }

/* Analytics viz */
.viz-analytics {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}
.ana-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex: 1;
  height: 80px;
}
.ana-bar {
  flex: 1;
  height: var(--h);
  background: var(--primary-800);
  border-radius: 3px 3px 0 0;
  transition: height 0.5s ease;
}
.ana-bar.hl { background: var(--primary-400); }
.ana-kpis {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.ana-kpi {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-2);
  white-space: nowrap;
}
.ana-kpi strong { color: var(--text-1); font-weight: 700; margin-left: 4px; }
.kpi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.kpi-dot.green { background: var(--green); }
.kpi-dot.blue { background: var(--blue); }
.kpi-dot.amber { background: var(--amber); }

/* Phone viz */
.viz-phone {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.mini-phone {
  width: 100px;
  background: var(--slate-800);
  border-radius: 14px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.mp-notch {
  width: 32px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 0 auto 8px;
}
.mp-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 4px;
}
.mp-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
}
.mp-line.w70 { width: 70%; }
.mp-line.w55 { width: 55%; }
.mp-line.w65 { width: 65%; }
.mp-line.w45 { width: 45%; }

/* API viz */
.viz-api {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1fr;
  gap: 12px 10px;
  align-items: center;
  padding-top: 8px;
}
.api-node {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  white-space: nowrap;
}
.api-node.center {
  background: var(--primary-600);
  color: #fff;
  border-color: var(--primary-600);
}
.api-line {
  height: 2px;
  background: var(--border);
  position: relative;
}
.api-line::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--primary-400);
  border-right: 2px solid var(--primary-400);
  transform: rotate(45deg);
}


/* ===== 11. MODULES ===== */
.modules {
  background: var(--bg-surface);
  transition: background var(--transition);
}
.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mod-card {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all 0.3s ease;
}
.mod-card:hover {
  border-color: var(--primary-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}
.mod-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--primary-300);
}
.mod-icon svg { stroke: currentColor; }
.mod-card h4 { margin-bottom: 4px; font-size: 0.9rem; }
.mod-card p { font-size: 0.8rem; line-height: 1.5; }


/* ===== 12. MOBILE SUITE ===== */
.mobile-section {
  background: var(--bg-surface-2);
  transition: background var(--transition);
}
.devices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: end;
}
.device { text-align: center; }
.device.elevated { transform: translateY(-16px); }
.device-title { font-size: 1.05rem; margin: 20px 0 6px; }
.device-desc { font-size: 0.85rem; color: var(--text-2); max-width: 260px; margin: 0 auto; }

/* Phone frame */
.phone-frame {
  width: 180px;
  margin: 0 auto;
  background: var(--slate-900);
  border-radius: 24px;
  padding: 8px;
  border: 2px solid var(--slate-700);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.phone-notch {
  width: 48px;
  height: 5px;
  background: var(--slate-700);
  border-radius: 3px;
  margin: 4px auto 10px;
}
.phone-screen {
  background: var(--slate-800);
  border-radius: 16px;
  padding: 12px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ps-title { font-size: 0.7rem; font-weight: 700; color: var(--text-1); }
.ps-card {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}
.ps-row { display: flex; align-items: center; gap: 8px; }
.ps-lines { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ps-line { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); }
.ps-line.w80 { width: 80%; }
.ps-line.w70 { width: 70%; }
.ps-line.w60 { width: 60%; }
.ps-line.w50 { width: 50%; }
.ps-line.w45 { width: 45%; }
.ps-line.w40 { width: 40%; }
.ps-line.w35 { width: 35%; }
.ps-line.light { opacity: 0.5; }
.ps-badge {
  font-size: 0.5rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.ps-badge.green { background: rgba(34,197,94,0.15); color: #4ade80; }
.ps-badge.amber { background: rgba(245,158,11,0.15); color: #fbbf24; }
.ps-badge.blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
.ps-map {
  flex: 1;
  min-height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(34,197,94,0.1));
  margin-top: 4px;
}

/* POS phone */
.ps-tour-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}
.ps-tour-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-300), var(--primary-500));
  flex-shrink: 0;
}
.ps-tour-img.i2 { background: linear-gradient(135deg, #86EFAC, #16A34A); }
.ps-tour-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ps-tour-price { font-size: 0.7rem; font-weight: 700; color: var(--primary-400); }
.ps-btn {
  height: 28px;
  border-radius: 8px;
  background: var(--primary-600);
  margin-top: auto;
}

/* TV frame */
.tv-frame {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.tv-screen {
  position: relative;
  background: var(--slate-800);
  border-radius: 10px;
  padding: 12px;
  border: 2px solid var(--slate-700);
  min-height: 160px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.tv-stand {
  width: 40%;
  height: 6px;
  background: var(--slate-700);
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
}
.tv-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.tv-grid { display: flex; flex-direction: column; gap: 6px; }
.tv-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}
.tv-line {
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
}
.tv-line.w40 { width: 40%; }
.tv-line.w35 { width: 35%; }
.tv-line.w45 { width: 45%; }
.tv-line.w25 { width: 25%; }
.tv-line.w30 { width: 30%; }
.tv-line.w20 { width: 20%; }
.pill.sm { font-size: 0.5rem; padding: 1px 6px; }


/* ===== 13. PROCESS ===== */
.process {
  background: var(--bg-surface);
  transition: background var(--transition);
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(79,70,229,0.2);
  color: var(--primary-300);
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(79,70,229,0.15);
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.875rem; }
.step-line {
  width: 72px;
  height: 2px;
  margin-top: 26px;
  flex-shrink: 0;
  background: linear-gradient(90deg, transparent, var(--primary-700), transparent);
}


/* ===== 14. FAQ ===== */
.faq {
  background: var(--bg-surface-2);
  transition: background var(--transition);
}
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
  background: var(--bg-surface);
}
.faq-item[open] { border-color: var(--primary-500); }
.faq-q {
  padding: 18px 48px 18px 20px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  color: var(--text-1);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--text-3);
  transition: transform 0.3s ease, color 0.3s ease;
  font-weight: 400;
}
.faq-item[open] .faq-q { color: var(--primary-300); }
.faq-item[open] .faq-q::after {
  color: var(--primary-300);
  transform: translateY(-50%) rotate(45deg);
}
.faq-a {
  padding: 0 20px 18px;
  font-size: 0.925rem;
  color: var(--text-2);
  line-height: 1.7;
}


/* ===== 15. CTA ===== */
.cta-section {
  background: transparent;
  padding: 0 0 80px;
}
.cta-inner {
  background: var(--slate-900);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--slate-700);
}
.cta-inner::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(79,70,229,0.15), transparent 70%);
  pointer-events: none;
}
.cta-inner::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(99,102,241,0.1), transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.cta-text {
  font-size: 1.1rem;
  color: var(--slate-300);
  max-width: 520px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}


/* ===== 16. FOOTER ===== */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-desc { font-size: 0.85rem; color: var(--text-2); max-width: 280px; line-height: 1.6; }
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col h4 { margin-bottom: 4px; font-size: 0.85rem; color: var(--text-1); }
.footer-col a {
  font-size: 0.85rem;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary-300); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
}
.powered-by { color: var(--text-3); }


/* ===== 17. ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1), transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.bento .bento-card:nth-child(2) { transition-delay: 0.05s; }
.bento .bento-card:nth-child(3) { transition-delay: 0.1s; }
.bento .bento-card:nth-child(4) { transition-delay: 0.15s; }
.bento .bento-card:nth-child(5) { transition-delay: 0.2s; }
.bento .bento-card:nth-child(6) { transition-delay: 0.25s; }


/* ===== 18. RESPONSIVE ===== */

/* Desktop */
@media (min-width: 1025px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .nav-toggle { display: none; }
}

/* Tablet */
@media (max-width: 1024px) {
  .page-wrapper { border-radius: 0; border: none; box-shadow: none; margin: 0; }
  .hero-title { font-size: 2.75rem; }
  .section-title { font-size: 2rem; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.featured { grid-row: span 2; }
  .bento-card.wide { grid-column: span 2; }
  .mod-grid { grid-template-columns: repeat(3, 1fr); }
  .devices { gap: 24px; }
  .phone-frame { width: 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .float-card { display: none; }
}

/* Mobile */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .container { padding: 0 1.25rem; }
  .hero { padding: 60px 0 32px; }
  .hero-title { font-size: 2.1rem; }
  .hero-sub { font-size: 1rem; }
  .section-title { font-size: 1.75rem; }
  .section-sub { font-size: 1rem; margin-bottom: 2.5rem; }

  .bento { grid-template-columns: 1fr; }
  .bento-card.featured,
  .bento-card.wide { grid-row: auto; grid-column: auto; }
  .mod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mod-card { padding: 16px; }
  .mod-card h4 { font-size: 0.85rem; }
  .mod-card p { font-size: 0.75rem; }

  .devices { grid-template-columns: 1fr; gap: 40px; }
  .device.elevated { transform: none; }
  .phone-frame { width: 200px; }
  .tv-frame { max-width: 320px; }

  .steps { flex-direction: column; align-items: center; }
  .step-line { width: 2px; height: 32px; margin: 0; }
  .step { padding: 0; max-width: 320px; }

  .metrics-row { gap: 24px; }
  .metric-sep { display: none; }
  .metric-val { font-size: 1.75rem; }

  .hero-visual { margin: 0 -0.5rem; }
  .dashboard { border-radius: 10px; }
  .dm-stats { grid-template-columns: repeat(2, 1fr); }
  .dm-panels { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dm-table { display: none; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .footer-desc { margin: 0 auto; }
  .footer-brand .logo { justify-content: center; }
  .footer-col { align-items: center; }
  .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }

  .cta-inner { padding: 56px 24px; border-radius: var(--radius-lg); }
  .cta-title { font-size: 1.75rem; }
  .cta-text { font-size: 1rem; }
  .cta-section { padding: 0 1.25rem 60px; }

  .viz-api {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .api-line { display: none; }
  .api-node { padding: 8px 16px; }
  .api-node.center { width: auto; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* Very small */
@media (max-width: 420px) {
  .mod-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.8rem; }
}
