/* CRMGO marketing landing page */

body.marketing-home {
  background: #f2f5f8;
  padding: 1.25rem 0 2.5rem;
}

html[data-theme="dark"] body.marketing-home {
  background: var(--bg0);
}

body.marketing-home .shell {
  width: min(1320px, calc(100% - 2rem));
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

body.marketing-home .topbar {
  position: relative;
  width: auto;
  max-width: none;
  margin: 0 0 0.75rem;
  padding: 0;
  gap: 0.35rem;
  align-items: center;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

body.marketing-home .brand {
  align-items: center;
  line-height: 0;
}

body.marketing-home .brand-text {
  display: none;
}

body.marketing-home .brand-mark {
  width: 168px;
  height: 66px;
  max-width: none;
  border-radius: 0;
}

body.marketing-home .nav-drawer > a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  background: transparent;
  box-shadow: none;
  transition: background .15s ease, color .15s ease;
}

body.marketing-home .nav-drawer > a:hover {
  background: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
  box-shadow: none;
}

body.marketing-home .theme-toggle,
body.marketing-home .lang-picker-toggle {
  box-shadow:
    0 4px 14px rgba(21, 101, 192, 0.22),
    0 2px 6px rgba(15, 35, 55, 0.1);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

body.marketing-home .theme-toggle:hover,
body.marketing-home .lang-picker-toggle:hover {
  background: var(--panel-strong);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow:
    0 8px 22px rgba(21, 101, 192, 0.28),
    0 4px 10px rgba(15, 35, 55, 0.12);
  transform: translateY(-2px);
}

body.marketing-home .nav-menu-btn {
  box-shadow: 0 1px 3px rgba(15, 35, 55, 0.08);
}

body.marketing-home .nav-menu-btn:hover {
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.12);
}

body.marketing-home .lang-picker-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, var(--accent) 30%);
}

body.marketing-home .crmgo-footer {
  border-top: none;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  text-align: center;
}

/* Main white card (below header) */
.crmgo-card {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(15, 35, 55, 0.07);
  box-shadow:
    0 1px 2px rgba(15, 35, 55, 0.04),
    0 8px 32px rgba(15, 35, 55, 0.06);
  padding: 0 2.5rem 2rem;
  overflow: hidden;
}

html[data-theme="dark"] .crmgo-card {
  background: var(--panel-strong);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

/* Hero — full width to the card's right edge */
body.marketing-home .crmgo-hero {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: block;
  max-width: none;
  width: calc(100% + 2.5rem);
  margin-right: -2.5rem;
  padding: 2rem 0 2.5rem;
  animation: rise .55s ease both;
}

body.marketing-home .crmgo-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 362px;
  height: 275px;
  background: url('/static/img/hero-bg-grm.png') no-repeat right top;
  background-size: 362px 275px;
  mix-blend-mode: screen;
  opacity: 0.92;
  filter: blur(0.6px);
  pointer-events: none;
}

html[data-theme="dark"] body.marketing-home .crmgo-hero::after {
  mix-blend-mode: lighten;
  opacity: 0.35;
}

body.marketing-home .crmgo-hero-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.crmgo-hero-label {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.crmgo-hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
}

.crmgo-hero-lead {
  margin: 0;
  max-width: 52rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.crmgo-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.crmgo-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, #1a365d 0%, #1565c0 55%, #1976d2 100%);
  box-shadow:
    0 4px 14px rgba(21, 101, 192, 0.35),
    0 1px 3px rgba(15, 35, 55, 0.12);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.crmgo-btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.06);
  box-shadow:
    0 6px 20px rgba(21, 101, 192, 0.42),
    0 2px 6px rgba(15, 35, 55, 0.14);
  transform: translateY(-1px);
}

.crmgo-btn-secondary {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  transition: color .15s ease;
}

.crmgo-btn-secondary:hover {
  color: var(--accent);
  text-decoration: none;
}

/* About section */
.crmgo-about {
  padding: 0 0 2rem;
  border-top: 1px solid rgba(15, 35, 55, 0.07);
  margin-top: 0.25rem;
}

html[data-theme="dark"] .crmgo-about {
  border-top-color: var(--line);
}

.crmgo-about p {
  margin: 2rem 0 0;
  max-width: 52rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* Key capabilities grid */
.crmgo-capabilities {
  padding-bottom: 0.5rem;
}

.crmgo-capabilities-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.crmgo-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.crmgo-capability-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(15, 35, 55, 0.09);
  border-radius: 14px;
  padding: 1rem 1.05rem 1.05rem;
  box-shadow: 0 2px 8px rgba(15, 35, 55, 0.04);
  transition: box-shadow .2s ease, border-color .2s ease;
}

html[data-theme="dark"] .crmgo-capability-card {
  background: var(--panel);
  border-color: var(--line);
}

.crmgo-capability-card:hover {
  box-shadow: 0 4px 16px rgba(15, 35, 55, 0.08);
  border-color: rgba(21, 101, 192, 0.18);
}

.crmgo-capability-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.crmgo-cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  flex-shrink: 0;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #1a365d 0%, #1565c0 55%, #1976d2 100%);
}

.crmgo-cap-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.crmgo-capability-card h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.crmgo-capability-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Platform tenant gallery on marketing home */
.marketing-home .crmgo-card .crmgo-presentation {
  padding: 2rem 2.5rem 2rem;
  border-top: 1px solid rgba(15, 35, 55, 0.08);
}

html[data-theme="dark"] .marketing-home .crmgo-card .crmgo-presentation {
  border-top-color: var(--line);
}

.crmgo-presentation-head {
  text-align: left;
  margin-bottom: 1.25rem;
}

.crmgo-presentation-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.crmgo-presentation-head h2::after {
  content: "";
  display: block;
  margin: 0.65rem 0 0;
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.crmgo-presentation-video {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(15, 35, 55, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.crmgo-presentation-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.crmgo-presentation-link {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
}

html[data-theme="dark"] .crmgo-presentation-video {
  background: rgba(255, 255, 255, 0.06);
}

.marketing-home .crmgo-card .lp-section-gallery {
  padding: 0.5rem 2.5rem 2.75rem;
  margin: 0;
  border-top: 1px solid rgba(15, 35, 55, 0.08);
}

html[data-theme="dark"] .marketing-home .crmgo-card .lp-section-gallery {
  border-top-color: var(--line);
}

.marketing-home .crmgo-card .lp-section-gallery .lp-container {
  max-width: none;
  padding: 0;
}

.marketing-home .crmgo-card .lp-section-gallery .lp-section-head {
  text-align: left;
  margin-bottom: 1.35rem;
}

.marketing-home .crmgo-card .lp-section-gallery .lp-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.marketing-home .crmgo-card .lp-section-gallery .lp-section-head h2::after {
  margin: 0.65rem 0 0;
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.marketing-home .crmgo-card .lp-gallery {
  gap: 1.35rem 1.5rem;
}

.marketing-home .crmgo-card .lp-gallery[data-columns="1"] .lp-gallery-thumb {
  aspect-ratio: 21 / 10;
}

.marketing-home .crmgo-card .lp-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.marketing-home .crmgo-card .lp-gallery-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: rgba(15, 35, 55, 0.04);
  box-shadow:
    0 1px 2px rgba(15, 35, 55, 0.06),
    0 8px 28px rgba(15, 35, 55, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.marketing-home .crmgo-card .lp-gallery-thumb:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(15, 35, 55, 0.08),
    0 14px 36px rgba(21, 101, 192, 0.14);
}

.marketing-home .crmgo-card .lp-gallery-item figcaption {
  margin: 0;
  padding: 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--text);
}

html[data-theme="dark"] .marketing-home .crmgo-card .lp-gallery-thumb {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

@media (max-width: 720px) {
  .marketing-home .crmgo-card .lp-gallery {
    gap: 1.25rem;
  }

  .marketing-home .crmgo-card .lp-section-gallery {
    padding: 0.5rem 1.25rem 1.75rem;
  }

  .marketing-home .crmgo-card .lp-gallery[data-columns="1"] .lp-gallery-thumb {
    aspect-ratio: 16 / 10;
  }
}

/* Contact block on marketing home */
.crmgo-contact {
  margin-top: 2rem;
  padding: 1.75rem 0 0.5rem;
  border-top: 1px solid rgba(15, 35, 55, 0.08);
  text-align: center;
}

html[data-theme="dark"] .crmgo-contact {
  border-top-color: var(--line);
}

.crmgo-contact-title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.crmgo-contact-email {
  margin: 0;
  font-size: 1.05rem;
}

.crmgo-contact-email a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.crmgo-contact-email a:hover {
  text-decoration: underline;
}

/* Legacy quick feature cards (kept for reference) */
.crmgo-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  padding-bottom: 0.5rem;
}

.crmgo-feature-card {
  background: #ffffff;
  border: 1px solid rgba(15, 35, 55, 0.09);
  border-radius: 14px;
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: 0 2px 8px rgba(15, 35, 55, 0.04);
  transition: box-shadow .2s ease, border-color .2s ease;
}

html[data-theme="dark"] .crmgo-feature-card {
  background: var(--panel);
  border-color: var(--line);
}

.crmgo-feature-card:hover {
  box-shadow: 0 4px 16px rgba(15, 35, 55, 0.08);
  border-color: rgba(21, 101, 192, 0.18);
}

.crmgo-feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.crmgo-feature-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1100px) {
  .crmgo-capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .crmgo-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  body.marketing-home .topbar {
    position: relative;
    width: 100%;
    margin: 0 0 0.5rem;
    padding: 0;
    z-index: 50;
  }

  body.marketing-home .brand-mark {
    width: auto;
    height: auto;
    max-width: min(168px, 52vw);
    max-height: 40px;
  }

  body.marketing-home .nav-drawer {
    left: 0;
    right: 0;
    z-index: 120;
  }

  body.marketing-home .nav-drawer > a {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 0.85rem;
  }
}

@media (max-width: 640px) {
  body.marketing-home {
    padding: 0.75rem 0 1.5rem;
  }

  body.marketing-home .topbar {
    margin-bottom: 0.45rem;
  }

  .crmgo-card {
    border-radius: 20px;
    padding: 0 1.25rem 1.5rem;
  }

  body.marketing-home .crmgo-hero {
    width: calc(100% + 1.25rem);
    margin-right: -1.25rem;
    padding: 1.25rem 0 1.75rem;
  }

  body.marketing-home .crmgo-hero::after {
    width: min(362px, 58vw);
    height: auto;
    aspect-ratio: 362 / 275;
    background-size: contain;
    opacity: 0.75;
  }

  .crmgo-capabilities-grid {
    grid-template-columns: 1fr;
  }

  .crmgo-capability-card {
    padding: 0.95rem 1rem;
  }

  .crmgo-features {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) {
  body.marketing-home .nav-drawer {
    margin-right: 0.5rem;
  }
}
