/* ===== Zamyu — Lovable-style Design ===== */
:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-light: #dcfce7;
  --ink: #111827;
  --ink-deep: #0f172a;
  --white: #ffffff;
  --slate: #f8fafc;
  --border: #e5e7eb;
  --muted: #6b7280;
  --text: #374151;
  --radius: 20px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--ink);
}

h1 { font-size: clamp(2.75rem, 6.5vw, 4.75rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.65rem); }
h3 { font-size: 1.1rem; margin-bottom: 0.35em; }

p { margin: 0 0 1em; color: var(--muted); }

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.narrow { width: min(720px, calc(100% - 48px)); margin-inline: auto; }
.center { text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 12px; z-index: 1000;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.eyebrow.light { color: #86efac; }
.accent { color: var(--green); }
.text-link { color: var(--green-dark); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 22px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.btn-dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.15);
}
.btn-dark:hover { background: var(--ink-deep); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}
.btn-primary:hover { background: var(--green-dark); }

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: #d1d5db; box-shadow: var(--shadow); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding-inline: 14px;
  font-weight: 500;
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Header — Square-style morphing nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    background 350ms ease-in-out,
    backdrop-filter 350ms ease-in-out,
    -webkit-backdrop-filter 350ms ease-in-out,
    box-shadow 350ms ease-in-out,
    border-color 350ms ease-in-out;
}

.site-header.is-morphed {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.logo { display: inline-flex; flex-shrink: 0; z-index: 2; align-items: center; background: none; }

.logo-header,
.logo-footer {
  background: none;
  padding: 0;
  border-radius: 0;
}

.logo img {
  height: 44px;
  width: auto;
  max-width: 148px;
  display: block;
  background: transparent;
  object-fit: contain;
}

.logo-header img {
  height: 44px;
  width: auto;
  max-width: 148px;
  transition: none;
}

.logo-footer img {
  height: 52px;
  max-width: 176px;
  width: auto;
  object-fit: contain;
}

.nav-menu { display: contents; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  transition: opacity 350ms ease-in-out, transform 350ms ease-in-out;
  will-change: opacity, transform;
}

.nav-links a {
  padding: 8px 11px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--ink); background: var(--slate); }

.site-header.is-morphed .nav-links {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.nav-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.nav-actions-top {
  transition: opacity 350ms ease-in-out, transform 350ms ease-in-out;
  will-change: opacity, transform;
}

.site-header.is-morphed .nav-actions-top {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.nav-ctas {
  position: absolute;
  right: 0;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(calc(-50% + 14px));
  pointer-events: none;
  transition: opacity 350ms ease-in-out, transform 350ms ease-in-out;
  will-change: opacity, transform;
  z-index: 2;
}

.site-header.is-morphed .nav-ctas {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.btn-nav {
  padding: 8px 16px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-ctas .btn-demo {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-width: 1.5px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: opacity 350ms ease-in-out, transform 350ms ease-in-out;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.site-header.is-morphed .nav-toggle {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 56px;
  background: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero-orb-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(34, 197, 94, 0.22), transparent 70%);
  animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  top: 20%;
  right: -10%;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.06), transparent 70%);
  animation: orbFloat 15s ease-in-out infinite reverse;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}

@keyframes orbFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(20px); }
}

.hero-center {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroLineIn 0.8s var(--ease) forwards;
}

.hero-line:nth-child(2) { animation-delay: 0.15s; }

@keyframes heroLineIn {
  to { opacity: 1; transform: translateY(0); }
}

.announce-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 32px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.announce-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.08), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}

.announce-pill:hover {
  border-color: #bbf7d0;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.12);
  transform: translateY(-1px);
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.announce-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
  animation: pulse 1.8s ease-in-out infinite;
}

.announce-arrow { color: #9ca3af; }

.underline-arch {
  position: relative;
  display: inline-block;
  color: var(--green);
}

.underline-arch::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -0.12em;
  height: 0.55em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' fill='none'%3E%3Cpath d='M6 22 Q200 2 394 22' stroke='%2322C55E' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  transform: scaleX(0);
  transform-origin: center bottom;
  animation: archDraw 0.9s var(--ease) 0.55s forwards;
}

@keyframes archDraw {
  to { transform: scaleX(1); }
}

.hero .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  max-width: 38em;
  color: var(--text);
  margin: 0 auto 28px;
  line-height: 1.65;
}

.lede-highlight {
  display: block;
  margin-top: 8px;
  color: var(--green-dark);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
  min-height: 56px;
  transition: opacity 350ms ease-in-out, transform 350ms ease-in-out;
  will-change: opacity, transform;
}

.hero-ctas.is-docked {
  opacity: 0;
  transform: translateY(-28px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .nav-links,
  .nav-actions-top,
  .nav-ctas,
  .nav-toggle,
  .hero-ctas {
    transition: none !important;
  }
}

.btn-glow {
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.2), 0 0 0 0 rgba(34, 197, 94, 0);
  animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(17, 24, 39, 0.2), 0 0 0 0 rgba(34, 197, 94, 0); }
  50% { box-shadow: 0 4px 24px rgba(17, 24, 39, 0.2), 0 0 0 8px rgba(34, 197, 94, 0.08); }
}

.btn-demo {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 12px 24px;
  font-family: inherit;
}

.btn-demo:hover {
  background: var(--slate);
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.demo-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  display: grid;
  place-items: center;
}

.demo-play svg { width: 14px; height: 14px; margin-left: 2px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0 0 20px;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.badge-item svg { width: 14px; height: 14px; color: var(--green-dark); }
.badge-dot { opacity: 0.5; }

.hero-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-social p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.hero-social strong { color: var(--ink); }

.hero-avatars {
  display: flex;
}

.hero-avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -8px;
  background: linear-gradient(135deg, #86efac, #22c55e);
}

.hero-avatars span:nth-child(2) { background: linear-gradient(135deg, #bbf7d0, #16a34a); }
.hero-avatars span:nth-child(3) { background: linear-gradient(135deg, #d1fae5, #0f172a); }
.hero-avatars span:nth-child(4) { background: linear-gradient(135deg, #86efac, #111827); }
.hero-avatars span:nth-child(5) { background: linear-gradient(135deg, #4ade80, #15803d); }
.hero-avatars span:first-child { margin-left: 0; }

.hero-mini-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 20px;
  text-align: center;
  min-width: 100px;
  transition: transform 0.2s, border-color 0.2s;
}

.mini-stat:hover {
  transform: translateY(-2px);
  border-color: #bbf7d0;
}

.mini-stat strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.mini-stat span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  animation: bounceHint 2s ease-in-out infinite;
}

.hero-scroll-hint svg { width: 20px; height: 20px; }

.hero-scroll-hint:hover { color: var(--green-dark); }

@keyframes bounceHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Hero dashboard */
.hero-dashboard {
  margin-top: 56px;
  position: relative;
}

.dashboard-wrap {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}

.dashboard-main {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: floatY 6s ease-in-out infinite;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--slate);
  gap: 12px;
}

.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 4px 10px;
  border-radius: 999px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s infinite;
}

.dash-logo { height: 24px; width: auto; }

.dash-nav {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

.dash-nav .active { color: var(--ink); font-weight: 600; }

.dash-body { display: flex; min-height: 280px; }

.dash-sidebar {
  width: 160px;
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  background: #fafafa;
}

.dash-nav-item {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.dash-nav-item.active {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
}

.dash-content { flex: 1; padding: 20px; }

.dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dash-card {
  background: var(--slate);
  border-radius: 14px;
  padding: 14px;
}

.dash-card span { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 4px; }
.dash-card strong { font-size: 1.25rem; letter-spacing: -0.02em; display: block; }
.dash-card .up { font-style: normal; font-size: 0.75rem; color: var(--green-dark); font-weight: 600; }

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
}

.chart-bar {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--green), #86efac);
  animation: growBar 1s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 0.08s);
}

.card-ai p { margin: 0 0 10px; font-size: 0.88rem; color: var(--ink); font-weight: 500; }

.float-btn {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.float-btn:hover { background: #bbf7d0; }

.float-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
}

.card-revenue {
  top: 12%;
  right: -4%;
  min-width: 160px;
  animation: floatY 5s ease-in-out infinite 0.3s;
}

.card-revenue .float-label { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.card-revenue strong { font-size: 1.5rem; letter-spacing: -0.03em; display: block; }
.card-revenue .up { font-style: normal; font-size: 0.8rem; color: var(--green-dark); font-weight: 600; }

.card-ai {
  bottom: 10%;
  left: -6%;
  max-width: 220px;
  animation: floatY 7s ease-in-out infinite 0.6s;
}

.ai-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.dash-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.module-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 8px;
  border-radius: 14px;
  background: var(--slate);
  border: 1px solid transparent;
  text-align: center;
  animation: moduleSoft 5.5s ease-in-out infinite;
  animation-delay: calc(var(--d, 0) * 0.35s);
}

.module-tile span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.soft-chart {
  height: 72px;
  opacity: 0.9;
}

@keyframes moduleSoft {
  0%, 100% {
    background: var(--slate);
    border-color: transparent;
    transform: translateY(0);
  }
  50% {
    background: var(--green-light);
    border-color: rgba(34, 197, 94, 0.18);
    transform: translateY(-2px);
  }
}

/* Demo section & modal */
.demo-section { background: linear-gradient(180deg, var(--slate) 0%, var(--white) 100%); }

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.demo-perks {
  margin: 24px 0;
  display: grid;
  gap: 12px;
}

.demo-perks li {
  padding-left: 28px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}

.demo-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center/10px no-repeat;
}

.demo-contact-meta p { margin-bottom: 6px; font-size: 0.92rem; }

.demo-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.demo-form h3 { margin-bottom: 4px; font-size: 1.25rem; }
.demo-form-sub { font-size: 0.88rem; margin-bottom: 20px; color: var(--muted); }

.demo-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.demo-form .btn { width: 100%; margin-top: 4px; }

.form-status {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--green-dark);
  min-height: 1.2em;
  text-align: center;
}

/* Demo modal */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.demo-modal[hidden] { display: none; }

.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.demo-modal-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.demo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--slate);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.2s;
}

.demo-modal-close:hover { background: var(--border); color: var(--ink); }

.demo-form-modal label { margin-bottom: 12px; }

/* Floating demo button */
.floating-demo {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.35);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

.floating-demo.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-demo:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.floating-demo svg { width: 16px; height: 16px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes growBar { from { height: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Trust carousel */
.trust-section { padding: 48px 0 64px; }

.trust-label {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 28px;
}

.trust-carousel {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trust-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: trustMarquee 35s linear infinite;
}

.trust-track span {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #d1d5db;
  white-space: nowrap;
}

.trust-carousel:hover .trust-track { animation-play-state: paused; }

@keyframes trustMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Stats */
.stats-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 6px;
}

.stat span { color: var(--muted); font-size: 0.92rem; }

/* Sections */
.section { padding: 100px 0; }
.section.alt { background: var(--slate); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head.center { margin-inline: auto; }
.section-head p:last-child { margin-bottom: 0; }

/* Platform grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d1fae5;
}

.platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.platform-icon svg { width: 22px; height: 22px; }
.platform-card p { margin-bottom: 16px; font-size: 0.92rem; }

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
  transition: gap 0.2s;
}

.learn-more:hover { gap: 8px; }

/* Split sections */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-grid.reverse .split-copy { order: 2; }
.split-grid.reverse .showcase-mock,
.split-grid.reverse .ai-chat { order: 1; }

.split-copy p { font-size: 1.02rem; }

.check-list {
  margin: 24px 0 28px;
  display: grid;
  gap: 12px;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* AI section */
.ai-section {
  background: linear-gradient(180deg, #f0fdf4 0%, var(--white) 100%);
}

.ai-chat .chat-window {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.chat-header img { height: 24px; width: auto; }

.chat-bubble {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.chat-bubble.user {
  background: var(--slate);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-bubble.bot {
  background: var(--green-light);
  color: var(--ink);
  border-bottom-right-radius: 4px;
}

.chat-actions { display: flex; gap: 8px; margin-top: 8px; }

/* Mockups */
.mockup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--slate);
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mock-bar span:nth-child(1) { background: #fca5a5; }
.mock-bar span:nth-child(2) { background: #fcd34d; }
.mock-bar span:nth-child(3) { background: #86efac; }
.mock-bar strong { margin-left: 8px; font-size: 0.82rem; }

.pos-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; min-height: 280px; }

.pos-menu { padding: 14px; display: grid; gap: 8px; }

.pos-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
}

.pos-item.active { border-color: var(--green); background: #f0fdf4; }
.pos-item em { font-style: normal; color: var(--muted); }

.pos-ticket {
  background: var(--ink-deep);
  color: var(--white);
  padding: 20px;
}

.pos-ticket h4 { color: var(--white); margin-bottom: 14px; font-size: 0.95rem; }
.pos-ticket p { color: #94a3b8; margin-bottom: 6px; font-size: 0.85rem; }

.pos-total {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid #334155;
}

.pos-total strong { font-size: 1.3rem; }
.pos-ticket .btn { width: 100%; margin-top: 4px; }

/* Phone mock */
.phone-mock {
  width: 260px;
  margin-inline: auto;
  background: var(--ink-deep);
  color: var(--white);
  border-radius: 32px;
  padding: 20px 18px 28px;
  box-shadow: var(--shadow-lg);
  border: 4px solid #1e293b;
}

.phone-notch {
  width: 72px;
  height: 8px;
  background: #334155;
  border-radius: 999px;
  margin: 0 auto 16px;
}

.phone-logo { height: 22px; margin-bottom: 14px; }
.phone-title { color: #e2e8f0; font-weight: 600; margin-bottom: 14px; font-size: 0.95rem; }

.phone-stat {
  background: #1e293b;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.phone-stat span { color: #94a3b8; }
.phone-stat strong { color: var(--white); }

/* BI mock */
.bi-layout { padding: 20px; }

.bi-chart-wrap { height: 120px; margin-bottom: 16px; }
.bi-chart-wrap svg { width: 100%; height: 100%; }

.line-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 1.8s var(--ease) forwards;
}

@keyframes drawLine { to { stroke-dashoffset: 0; } }

.bi-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bi-metrics div {
  background: var(--slate);
  border-radius: 12px;
  padding: 12px;
}

.bi-metrics span { display: block; font-size: 0.72rem; color: var(--muted); }
.bi-metrics strong { font-size: 1.1rem; }

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.industry-card {
  display: block;
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s;
  min-height: 120px;
}

.industry-card:hover {
  transform: translateY(-3px);
  border-color: #bbf7d0;
}

.industry-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* FAQ */
.faq-list { display: grid; gap: 10px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 20px;
}

.faq-item[open] { border-color: #bbf7d0; }

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--green-dark);
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p { padding-bottom: 18px; margin: 0; font-size: 0.92rem; }

/* CTA */
.cta-section { padding: 40px 0 80px; }

.cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #14532d 100%);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.cta-box h2 { color: var(--white); max-width: 16em; margin-inline: auto; }
.cta-box p { color: #cbd5e1; margin-bottom: 28px; }
.cta-box .hero-ctas { margin-bottom: 0; }
.cta-box .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }

/* Footer */
.site-footer {
  background: var(--ink-deep);
  color: #94a3b8;
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin: 16px 0 20px;
  max-width: 28em;
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.site-footer ul { display: grid; gap: 10px; }

.site-footer a {
  color: #94a3b8;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--white); }

.newsletter {
  display: flex;
  gap: 8px;
  max-width: 320px;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #1e293b;
  color: var(--white);
  font-family: inherit;
  font-size: 0.88rem;
}

.newsletter input:focus {
  outline: none;
  border-color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  font-size: 0.82rem;
}

.footer-bottom p { margin: 0; color: #64748b; }

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a { color: #64748b; }
.footer-legal a:hover { color: var(--white); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .split-grid,
  .split-grid.reverse,
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-grid.reverse .split-copy,
  .split-grid.reverse .showcase-mock,
  .split-grid.reverse .ai-chat { order: unset; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .card-revenue { right: 0; }
  .card-ai { left: 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 16px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s var(--ease);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links { flex-direction: column; flex: none; }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { width: 100%; }

  .site-header.is-morphed .nav-menu {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
  }

  .nav-ctas {
    right: 0;
    gap: 6px;
  }

  .nav-ctas .btn-nav,
  .nav-ctas .btn-demo {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .platform-grid,
  .industry-grid,
  .stats-grid,
  .footer-grid,
  .dash-cards,
  .bi-metrics,
  .pos-layout { grid-template-columns: 1fr; }

  .dash-sidebar { display: none; }
  .float-card { display: none; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }

  .hero { padding: 48px 0 32px; }
  .hero-mini-stats { gap: 8px; }
  .mini-stat { min-width: 80px; padding: 10px 14px; }
  .hero-social { flex-direction: column; text-align: center; }
  .floating-demo { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 0.85rem; }
  .section { padding: 72px 0; }
  .cta-box { padding: 48px 24px; }

  .newsletter { flex-direction: column; max-width: 100%; }
  .newsletter .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }

  .trust-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 24px;
  }
}
