/* Homepage - full-bleed hero + denser section rhythm */

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  color: #f5f6f8;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.04);
  animation: hero- ken 18s var(--ease) both;
}

@keyframes hero-ken {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img {
    animation: none;
    transform: scale(1.02);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 10, 14, 0.88) 0%, rgba(8, 10, 14, 0.55) 38%, rgba(8, 10, 14, 0.12) 68%, rgba(8, 10, 14, 0.35) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.45) 0%, transparent 32%, rgba(8, 10, 14, 0.55) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - var(--gutter) * 2, var(--container));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.5rem) 0 3.5rem;
  display: grid;
  align-items: center;
  max-width: var(--container);
}

.hero-copy {
  max-width: 36rem;
  padding: 1.25rem 2rem 1.25rem 0;
  background: linear-gradient(90deg, rgba(8, 10, 14, 0.55) 0%, rgba(8, 10, 14, 0.28) 70%, transparent 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: hero-rise 0.8s var(--ease) both;
  }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.22s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.3s; }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .brand-mark {
  margin-bottom: 0.85rem;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

.hero .brand-mark .brand-plain {
  color: #fff;
}

.hero .brand-mark span:not(.brand-plain) {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.94);
  max-width: 16em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
  display: inline-block;
  padding-bottom: 0.12em;
  line-height: 1.15;
}

.hero-desc {
  margin-top: 1.15rem;
  font-size: 1.08rem;
  color: rgba(242, 244, 247, 0.82);
  max-width: 34ch;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.85rem;
}

.hero .btn-primary {
  box-shadow: var(--shadow-accent);
}

.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.trust-bar {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, #000);
  backdrop-filter: blur(10px);
}

.trust-bar-inner {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trust-bar-inner strong {
  color: var(--text);
  font-weight: 650;
}

.trust-bar-inner span {
  position: relative;
  padding-left: 1rem;
}

.trust-bar-inner span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.products-dual {
  display: grid;
  gap: 1.5rem;
}

.product-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.product-panel:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

.product-panel > div:first-child {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  align-content: center;
}

.product-panel.is-flip {
  grid-template-columns: 0.95fr 1.05fr;
}

.product-panel.is-flip .product-media {
  order: -1;
}

.product-kicker {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.product-panel h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.product-panel p {
  color: var(--text-secondary);
  max-width: 46ch;
  line-height: 1.7;
}

.product-media {
  min-height: 100%;
}

.product-media.media-frame {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
}

.product-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  aspect-ratio: auto;
}

.bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.9rem;
}

.bento-cell {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1.45rem;
  display: grid;
  gap: 0.6rem;
  min-height: 170px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.bento-cell:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.bento-cell h3 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.bento-cell p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.bento-cell i {
  color: var(--accent);
  font-size: 1.35rem;
}

.bento-cell.wide {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  padding: 0;
  min-height: 360px;
}

.bento-cell.wide .bento-media {
  position: absolute;
  inset: 0;
}

.bento-cell.wide .bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-cell.wide .bento-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(8, 10, 14, 0.92));
  color: #f3f4f6;
}

.bento-cell.wide .bento-copy p {
  color: rgba(243, 244, 246, 0.78);
}

.bento-cell.tint {
  background:
    linear-gradient(145deg, var(--accent-soft), transparent 55%),
    var(--bg-elevated);
}

.bento-cell.muted {
  background: var(--bg-muted);
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--border);
  margin-left: 0.35rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 1.75rem 1.6rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.timeline-item p {
  color: var(--text-secondary);
  max-width: 52ch;
  font-size: 0.95rem;
}

.cases-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.case-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow);
}

.case-card img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.case-card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: grid;
  gap: 0.55rem;
}

.case-card-body .industry {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--accent);
}

.case-card-body h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.case-card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.25rem;
}

.case-metrics span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.case-metrics strong {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.25rem;
}

@media (max-width: 1024px) {
  .hero-inner {
    padding: calc(var(--nav-h) + 2.5rem) 0 3.25rem;
  }

  .product-panel,
  .product-panel.is-flip {
    grid-template-columns: 1fr;
  }

  .product-panel.is-flip .product-media {
    order: 0;
  }

  .product-media img {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-cell.wide {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 260px;
  }

  .cases-editorial {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
  }
}
