/* ═══════════════════════════════════════════════════════════════════════
   SMART IMPRINT — Home page
   Josh.ai-inspired: full-bleed photography, frosted glass, airy type.
   Everything is namespaced under .jhome so no other page is affected.
   ═══════════════════════════════════════════════════════════════════════ */

.jhome {
  --j-radius: 32px;
  --j-radius-sm: 20px;
  --j-pad: clamp(3.5rem, 8vw, 7.5rem);
  --j-glass: rgba(255, 255, 255, .14);
  --j-glass-line: rgba(255, 255, 255, .22);
  /* One soft warm grey carries both headings and body — hierarchy comes from
     size and weight alone. This is what keeps the page calm rather than corporate. */
  --j-ink: #575755;
  --j-ink-soft: #6f6f6c;
}

[data-theme="dark"] .jhome {
  --j-ink: #e2e2df;
  --j-ink-soft: #a8a8a3;
}

/* ─────────────  Typography  ───────────── */
.jhome .j-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}

.jhome .j-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: normal;
  color: var(--j-ink);
  margin: 0;
}

.jhome .j-title strong {
  font-weight: 600;
}

.jhome .j-lead {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--j-ink-soft);
  max-width: 62ch;
}

.jhome .j-section {
  padding: var(--j-pad) 0;
}

.jhome .j-section-head {
  max-width: 780px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.jhome .j-section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ─────────────  Hero  ───────────── */
.jhome .j-hero {
  position: relative;
  min-height: clamp(520px, 82vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  /* Solid base so the white copy stays legible even if the photo never paints */
  background-color: #14161a;
}

.jhome .j-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: -2;
}

.jhome .j-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, .34) 0%, rgba(10, 12, 16, .05) 32%, rgba(10, 12, 16, .58) 72%, rgba(10, 12, 16, .84) 100%);
}

.jhome .j-hero-inner {
  width: 100%;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.25rem);
  color: #fff;
}

.jhome .j-hero .j-title {
  color: #fff;
  max-width: 17ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.jhome .j-hero .j-lead {
  color: rgba(255, 255, 255, .92);
  max-width: 54ch;
  margin-top: 1.15rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .38);
}

/* Glass badge above the headline */
.jhome .j-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  background: var(--j-glass);
  border: 1px solid var(--j-glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  margin-bottom: 1.25rem;
}

.jhome .j-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, .25);
}

/* Hero CTAs */
.jhome .j-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.9rem;
}

.jhome .j-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.jhome .j-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 30px rgba(192, 57, 43, .35);
}

.jhome .j-btn-primary:hover {
  background: var(--brand-hover);
  color: #fff;
  transform: translateY(-2px);
}

.jhome .j-btn-glass {
  background: var(--j-glass);
  border-color: var(--j-glass-line);
  color: #fff;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.jhome .j-btn-glass:hover {
  background: rgba(255, 255, 255, .24);
  color: #fff;
  transform: translateY(-2px);
}

/* Glass status chips — the Josh "2 ON / 16 OPEN" motif, as trust signals */
.jhome .j-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.jhome .j-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: var(--j-glass);
  border: 1px solid var(--j-glass-line);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  color: #fff;
  font-size: .84rem;
  line-height: 1;
}

.jhome .j-chip i {
  font-size: .95rem;
  color: var(--accent);
}

.jhome .j-chip b {
  font-weight: 700;
}

.jhome .j-chip span {
  color: rgba(255, 255, 255, .78);
}

/* ─────────────  Brand strip  ───────────── */
.jhome .j-brands {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.jhome .j-brands-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding: 1.6rem 0;
}

.jhome .j-brand-item {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--j-ink-soft);
  white-space: nowrap;
}

/* ─────────────  Alternating feature rows  ───────────── */
.jhome .j-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.jhome .j-feature:last-child {
  margin-bottom: 0;
}

.jhome .j-feature.reverse .j-feature-media {
  order: 2;
}

.jhome .j-feature-media {
  position: relative;
  border-radius: var(--j-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  box-shadow: 0 24px 60px rgba(13, 27, 62, .13);
}

.jhome .j-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s cubic-bezier(.2, .7, .3, 1);
}

.jhome .j-feature-media:hover img {
  transform: scale(1.04);
}

.jhome .j-feature-title {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--j-ink);
  margin: .65rem 0 .8rem;
}

.jhome .j-feature-body {
  color: var(--j-ink-soft);
  font-weight: 300;
  line-height: 1.7;
  font-size: 1.02rem;
}

.jhome .j-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.15rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--brand);
  text-decoration: none;
}

.jhome .j-link i {
  transition: transform .25s ease;
}

.jhome .j-link:hover {
  color: var(--brand-hover);
}

.jhome .j-link:hover i {
  transform: translateX(4px);
}

/* ─────────────  Solution tiles (image-backed, glass label)  ───────────── */
.jhome .j-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.jhome .j-tile {
  position: relative;
  display: block;
  border-radius: var(--j-radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  text-decoration: none;
  background: var(--bg-alt);
  isolation: isolate;
}

.jhome .j-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .9s cubic-bezier(.2, .7, .3, 1);
}

.jhome .j-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 12, 16, .06) 30%, rgba(10, 12, 16, .72) 100%);
}

.jhome .j-tile:hover img {
  transform: scale(1.06);
}

.jhome .j-tile-label {
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .85rem;
  padding: .8rem .95rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  color: #fff;
}

.jhome .j-tile-label .t {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}

.jhome .j-tile-label .s {
  font-size: .8rem;
  color: rgba(255, 255, 255, .8);
  margin-top: .2rem;
  font-weight: 300;
}

/* Tile variant for categories with no photograph yet — deliberate, not a gap */
.jhome .j-tile--flat {
  background: linear-gradient(150deg, #2b2f38 0%, #1c1f26 55%, #14161a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.jhome .j-tile--flat::after {
  background: linear-gradient(180deg, rgba(212, 168, 83, .1) 0%, rgba(10, 12, 16, .5) 100%);
}

.jhome .j-tile-icon {
  font-size: 2.6rem;
  color: var(--accent);
  opacity: .9;
  transform: translateY(-18px);
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.jhome .j-tile--flat:hover .j-tile-icon {
  transform: translateY(-24px);
}

/* ─────────────  App / control showcase  ───────────── */
.jhome .j-app {
  background: linear-gradient(165deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.jhome .j-devices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

.jhome .j-device {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(13, 27, 62, .2);
  max-width: 300px;
  width: 100%;
}

.jhome .j-device img {
  width: 100%;
  height: auto;
  display: block;
}

.jhome .j-device.lift {
  transform: translateY(-24px);
}

/* ─────────────  Process  ───────────── */
.jhome .j-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.jhome .j-step {
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.jhome .j-step-num {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: .6rem;
}

.jhome .j-step h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--j-ink);
  margin-bottom: .5rem;
}

.jhome .j-step p {
  color: var(--j-ink-soft);
  font-size: .94rem;
  font-weight: 300;
  line-height: 1.65;
  margin: 0;
}

/* ─────────────  Stats  ───────────── */
.jhome .j-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.jhome .j-stat-num {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -.03em;
  color: var(--j-ink);
  line-height: 1;
}

.jhome .j-stat-label {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--j-ink-soft);
  margin-top: .6rem;
}

/* ─────────────  Closing CTA + form  ───────────── */
.jhome .j-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--j-pad) 0;
  /* Solid base so the white copy stays legible even if the photo never paints */
  background-color: #14161a;
}

.jhome .j-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.jhome .j-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(12, 14, 18, .93) 0%, rgba(12, 14, 18, .82) 45%, rgba(12, 14, 18, .55) 100%);
}

.jhome .j-cta .j-title,
.jhome .j-cta .j-eyebrow {
  color: #fff;
}

.jhome .j-cta .j-lead {
  color: rgba(255, 255, 255, .84);
}

.jhome .j-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.jhome .j-check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: #fff;
}

.jhome .j-check i {
  color: var(--accent);
  font-size: 1.05rem;
  margin-top: .1rem;
}

.jhome .j-check .l {
  font-weight: 600;
  font-size: .95rem;
}

.jhome .j-check .s {
  font-size: .82rem;
  color: rgba(255, 255, 255, .68);
  font-weight: 300;
}

/* Frosted form panel */
.jhome .j-form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--j-radius);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
}

.jhome .j-form h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.jhome .j-form .form-control,
.jhome .j-form .form-select {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  border-radius: 12px;
  padding: .7rem .9rem;
  font-size: .93rem;
}

.jhome .j-form .form-control::placeholder {
  color: rgba(255, 255, 255, .58);
}

.jhome .j-form .form-control:focus,
.jhome .j-form .form-select:focus {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(212, 168, 83, .7);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, .18);
  color: #fff;
}

/* Native dropdown options render on the OS layer — keep them readable */
.jhome .j-form .form-select option {
  color: #14161a;
  background: #fff;
}

.jhome .j-form .btn-primary {
  border-radius: 999px;
  padding: .8rem 1rem;
  font-weight: 600;
  background: var(--brand);
  border-color: var(--brand);
}

.jhome .j-form .btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

/* ─────────────  Dark mode  ───────────── */
[data-theme="dark"] .jhome .j-feature-media {
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

[data-theme="dark"] .jhome .j-app {
  background: linear-gradient(165deg, var(--bg-alt) 0%, var(--bg) 100%);
}

[data-theme="dark"] .jhome .j-device {
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}

/* ─────────────  Responsive  ───────────── */
@media (max-width: 991.98px) {
  .jhome .j-feature {
    grid-template-columns: 1fr;
  }

  .jhome .j-feature.reverse .j-feature-media {
    order: 0;
  }

  .jhome .j-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .jhome .j-steps {
    grid-template-columns: 1fr;
  }

  .jhome .j-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .jhome .j-device.lift {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .jhome .j-tiles {
    grid-template-columns: 1fr;
  }

  .jhome .j-checks {
    grid-template-columns: 1fr;
  }

  .jhome .j-hero {
    min-height: 78vh;
  }
}

/* Browsers without backdrop-filter get a solid fallback so text stays legible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .jhome .j-badge,
  .jhome .j-chip,
  .jhome .j-btn-glass,
  .jhome .j-tile-label {
    background: rgba(20, 22, 26, .62);
  }

  .jhome .j-form {
    background: rgba(20, 22, 26, .82);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jhome .j-feature-media img,
  .jhome .j-tile img {
    transition: none;
  }

  .jhome .j-feature-media:hover img,
  .jhome .j-tile:hover img {
    transform: none;
  }
}
