/* JazzaGo platform marketing — isolated from tenant app styles */

:root {
  --jg-bg: #f7f8fc;
  --jg-surface: #ffffff;
  --jg-ink: #0b1220;
  --jg-ink-muted: #5b6478;
  --jg-ink-soft: #8b93a7;
  --jg-border: rgba(11, 18, 32, 0.08);
  --jg-accent: #e53e3e;
  --jg-accent-dark: #c53030;
  --jg-accent-glow: rgba(229, 62, 62, 0.35);
  --jg-navy: #0b1220;
  --jg-navy-mid: #151d32;
  --jg-blue: #2563eb;
  --jg-radius: 16px;
  --jg-radius-sm: 10px;
  --jg-shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 32px rgba(11, 18, 32, 0.06);
  --jg-shadow-lg: 0 24px 64px rgba(11, 18, 32, 0.12);
  --jg-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --jg-max: 1180px;
}

.jg-body {
  font-family: var(--jg-font);
  background: var(--jg-bg);
  color: var(--jg-ink);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.jg-body a { text-decoration: none; }

/* ── Top bar ── */
.jg-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--jg-border);
}

.jg-topbar-inner {
  max-width: var(--jg-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.jg-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--jg-ink);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.jg-logo img { width: 36px; height: 36px; border-radius: 10px; }

.jg-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.jg-nav a {
  color: var(--jg-ink-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.jg-nav a:hover {
  color: var(--jg-ink);
  background: rgba(11, 18, 32, 0.04);
}

.jg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.jg-btn-primary {
  background: linear-gradient(135deg, var(--jg-accent), var(--jg-accent-dark));
  color: #fff;
  box-shadow: 0 4px 20px var(--jg-accent-glow);
}

.jg-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--jg-accent-glow);
  color: #fff;
}

.jg-btn-ghost {
  background: transparent;
  color: var(--jg-ink);
  border: 1.5px solid var(--jg-border);
}

.jg-btn-ghost:hover {
  background: var(--jg-surface);
  border-color: rgba(11, 18, 32, 0.15);
  color: var(--jg-ink);
}

.jg-btn-white {
  background: #fff;
  color: var(--jg-ink);
}

.jg-btn-white:hover { background: #f1f5f9; color: var(--jg-ink); }

.jg-btn-lg { padding: 14px 28px; font-size: 0.97rem; }

/* ── Hero ── */
.jg-hero-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 10% -10%, rgba(37, 99, 235, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(229, 62, 62, 0.14), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--jg-bg) 100%);
  border-bottom: 1px solid var(--jg-border);
}

.jg-hero-grid {
  max-width: var(--jg-max);
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.jg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jg-accent-dark);
  background: rgba(229, 62, 62, 0.08);
  border: 1px solid rgba(229, 62, 62, 0.15);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.jg-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jg-accent);
}

.jg-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  color: var(--jg-ink);
}

.jg-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--jg-accent), #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.jg-hero-lead {
  font-size: 1.12rem;
  color: var(--jg-ink-muted);
  max-width: 32rem;
  margin: 0 0 28px;
  line-height: 1.65;
}

.jg-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
}

.jg-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  font-size: 0.82rem;
  color: var(--jg-ink-soft);
}

.jg-hero-meta strong {
  display: block;
  font-size: 1.15rem;
  color: var(--jg-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Product preview mock */
.jg-preview {
  position: relative;
  border-radius: 20px;
  background: var(--jg-navy);
  box-shadow: var(--jg-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.jg-preview-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.jg-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.jg-preview-url {
  margin-left: 8px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: ui-monospace, monospace;
}

.jg-preview-body { padding: 20px; }

.jg-preview-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.jg-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.jg-preview-tile {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.jg-preview-tile span {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.jg-preview-tile.accent {
  background: linear-gradient(135deg, rgba(229, 62, 62, 0.35), rgba(229, 62, 62, 0.15));
  border-color: rgba(229, 62, 62, 0.35);
}

.jg-preview-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--jg-accent-glow), transparent 70%);
  bottom: -80px;
  right: -40px;
  pointer-events: none;
}

/* ── Sections ── */
.jg-section {
  max-width: var(--jg-max);
  margin: 0 auto;
  padding: 72px 24px;
}

.jg-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.jg-section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.jg-section-head p {
  color: var(--jg-ink-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Logo strip */
.jg-logos {
  border-bottom: 1px solid var(--jg-border);
  background: #fff;
  padding: 28px 24px;
}

.jg-logos-inner {
  max-width: var(--jg-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
}

.jg-logos-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--jg-ink-soft);
}

.jg-logos-item {
  font-weight: 800;
  font-size: 1rem;
  color: var(--jg-ink-muted);
  opacity: 0.7;
}

/* Bento features */
.jg-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.jg-bento-card {
  background: var(--jg-surface);
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-radius);
  padding: 28px;
  box-shadow: var(--jg-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.jg-bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--jg-shadow-lg);
}

.jg-bento-card.col-6 { grid-column: span 6; }
.jg-bento-card.col-4 { grid-column: span 4; }
.jg-bento-card.col-8 { grid-column: span 8; }

.jg-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(229, 62, 62, 0.12), rgba(229, 62, 62, 0.04));
  color: var(--jg-accent-dark);
}

.jg-bento-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.jg-bento-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--jg-ink-muted);
  line-height: 1.55;
}

/* Steps */
.jg-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: jgstep;
}

.jg-step {
  position: relative;
  padding: 32px 28px;
  background: var(--jg-surface);
  border-radius: var(--jg-radius);
  border: 1px solid var(--jg-border);
  box-shadow: var(--jg-shadow);
}

.jg-step::before {
  counter-increment: jgstep;
  content: counter(jgstep, decimal-leading-zero);
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(229, 62, 62, 0.2);
  margin-bottom: 12px;
}

.jg-step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.jg-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--jg-ink-muted);
}

/* Split cards */
.jg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.jg-split-card {
  background: var(--jg-surface);
  border-radius: var(--jg-radius);
  border: 1px solid var(--jg-border);
  padding: 32px;
  box-shadow: var(--jg-shadow);
}

.jg-split-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.jg-split-card p {
  color: var(--jg-ink-muted);
  font-size: 0.92rem;
  margin: 0 0 16px;
}

.jg-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  background: var(--jg-bg);
  border: 1px solid var(--jg-border);
  padding: 12px 14px;
  border-radius: var(--jg-radius-sm);
  color: var(--jg-blue);
  word-break: break-all;
}

/* Dark CTA band */
.jg-cta-band {
  background: linear-gradient(135deg, var(--jg-navy) 0%, var(--jg-navy-mid) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.jg-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, var(--jg-accent-glow), transparent 55%);
  pointer-events: none;
}

.jg-cta-band-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.jg-cta-band h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.jg-cta-band p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.jg-cta-band .jg-hero-cta { justify-content: center; margin-bottom: 0; }

/* Footer */
.jg-footer {
  background: #fff;
  border-top: 1px solid var(--jg-border);
  padding: 48px 24px 32px;
}

.jg-footer-grid {
  max-width: var(--jg-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.jg-footer-brand p {
  color: var(--jg-ink-muted);
  font-size: 0.9rem;
  margin: 10px 0 0;
  max-width: 280px;
}

.jg-footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jg-ink-soft);
  margin: 0 0 14px;
}

.jg-footer-col a {
  display: block;
  color: var(--jg-ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 5px 0;
}

.jg-footer-col a:hover { color: var(--jg-accent); }

.jg-footer-bottom {
  max-width: var(--jg-max);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--jg-border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--jg-ink-soft);
}

/* Auth (platform login) */
.jg-auth-wrap {
  max-width: 420px;
  margin: 48px auto 80px;
  padding: 0 24px;
}

.jg-auth-card {
  background: var(--jg-surface);
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-radius);
  padding: 36px 32px;
  box-shadow: var(--jg-shadow-lg);
}

.jg-auth-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.jg-auth-card .sub {
  color: var(--jg-ink-muted);
  font-size: 0.92rem;
  margin: 0 0 24px;
  line-height: 1.55;
}

.jg-field { margin-bottom: 18px; }

.jg-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--jg-ink-muted);
}

.jg-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--jg-border);
  border-radius: var(--jg-radius-sm);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.jg-field input:focus {
  outline: none;
  border-color: var(--jg-accent);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

.jg-auth-footer {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--jg-ink-soft);
  text-align: center;
  line-height: 1.6;
}

.jg-auth-footer a { color: var(--jg-accent); font-weight: 600; }

.jg-flash {
  max-width: var(--jg-max);
  margin: 16px auto 0;
  padding: 0 24px;
}

.jg-flash .flash {
  padding: 12px 16px;
  border-radius: var(--jg-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.jg-flash .flash.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.jg-flash .flash.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.jg-flash .flash.warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

@media (max-width: 960px) {
  .jg-hero-grid { grid-template-columns: 1fr; padding-bottom: 48px; }
  .jg-preview { order: -1; max-width: 480px; margin: 0 auto; }
  .jg-bento-card.col-4, .jg-bento-card.col-6, .jg-bento-card.col-8 { grid-column: span 12; }
  .jg-steps, .jg-split, .jg-footer-grid { grid-template-columns: 1fr; }
  .jg-nav .jg-hide-mobile { display: none; }
}
