/* ==========================================================================
   MEGA COLORFUL SUITE CSS — 4 Websites · 20 Restaurant Demos · 20 Landing Demos
   Vibrant Multi-Palette Design · Interactive POS & Software · Fast Load
   ========================================================================== */

:root {
  --focus-ring: #174bd2;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --border-strong: #CBD5E1;

  --primary: #FF5A1F;
  --primary-dark: #D9460F;
  --primary-soft: #FFF4ED;
  --accent-grad: linear-gradient(135deg, #FF5A1F 0%, #FFBE0B 100%);

  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);

  --font-sans: 'Sukhumvit Set', 'Leelawadee UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

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

html {
  scroll-padding-block-start:110px;
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, span, a, button, input, select, li {
  line-height: 1.55;
  letter-spacing: normal;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Rainbow Top Ecosystem Switcher */
.eco-topbar {
  background: linear-gradient(90deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
  color: #F8FAFC;
  font-size: 0.86rem;
  padding: 10px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

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

.eco-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.eco-pill {
  text-decoration: none;
  color: #E2E8F0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.eco-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  color: #FFF;
}

.eco-pill.active-eater { background: linear-gradient(135deg, #FF5A1F, #F59E0B); color: #FFF; border-color: transparent; }
.eco-pill.active-ez { background: linear-gradient(135deg, #2563EB, #06B6D4); color: #FFF; border-color: transparent; }
.eco-pill.active-ap { background: linear-gradient(135deg, #059669, #10B981); color: #FFF; border-color: transparent; }
.eco-pill.active-sw { background: linear-gradient(135deg, #7C3AED, #EC4899); color: #FFF; border-color: transparent; }

/* Main Sticky Navbar */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(14px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 900;
  font-size: 1.4rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-grad);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 700;
  font-size: 0.95rem;
}

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

/* Buttons */
.btn-grad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-grad);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}

.btn-grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FFFFFF;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.18s, border-color 0.18s, background 0.18s, color 0.18s;
}

.btn-chip:hover, .btn-chip.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Colorful Demo Cards Grid (20 items) */
.demo-grid-20 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.colorful-card {
  background: #FFFFFF;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.card-banner {
  position: relative;
  height: 175px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.card-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.45s ease;
}

.colorful-card:hover .card-banner img {
  transform: scale(1.06);
}

.card-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-banner-top, .card-banner-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.theme-swatch-pill {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.sub-url-pill {
  background: rgba(15, 23, 42, 0.88);
  color: #38BDF8;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.card-body-pad {
  padding: 18px 20px;
}

.card-foot-bar {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #FAFAFA;
}

/* Interactive Browser Mockup Window */
.live-stage-window {
  background: #FFFFFF;
  border-radius: 26px;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window-topbar {
  background: #0F172A;
  color: #FFF;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-url {
  flex: 1;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.12);
  color: #38BDF8;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

/* Inputs */
.input-modern, .select-modern {
  background: #FFFFFF;
  border: 1.5px solid var(--border-strong);
  color: var(--text-main);
  padding: 11px 15px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}

.input-modern:focus, .select-modern:focus {
  border-color: var(--primary);
  outline: none;
}

/* Native Dialog Modal */
dialog {
  margin: auto;
  background: #FFFFFF;
  color: var(--text-main);
  border: none;
  border-radius: 28px;
  padding: 0;
  max-width: 980px;
  width: 95%;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.45);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

/* Footer */
.mega-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 48px 0;
  margin-top: 72px;
}

.mega-footer a {
  color: #F8FAFC;
  text-decoration: none;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shared keyboard and numeric primitives; all existing class names are retained. */
:is(a,button,summary,input,select,textarea):focus-visible,.input-modern:focus-visible,.select-modern:focus-visible {
  outline:3px solid var(--focus-ring);
  outline-offset:3px;
}
button,summary { touch-action:manipulation; }
input,select,textarea { min-height:44px; }
dialog { overscroll-behavior:contain; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
