/* INHYPE Home 2026 — Bento Grid, Glassmorphism, тренды UX/UI 2026 */

/* ========== Hero ========== */
.hero-2026 {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(4rem, 12vh, 8rem) clamp(1.5rem, 5vw, 3rem);
  overflow: hidden;
}

.hero-2026__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(165deg, #faf5ff 0%, #f3e9ff 35%, #fdfbff 70%, #fff 100%);
}

.hero-2026__grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-2026__inner {
  max-width: 720px;
  text-align: center;
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(32px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-2026__pill {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95) 0%, rgba(139, 92, 246, 0.9) 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.hero-2026__title {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--color-text);
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
}

.hero-2026__title-accent {
  color: var(--color-accent);
}

.hero-2026__lead {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 clamp(2rem, 5vw, 2.75rem);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-2026__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.hero-2026__cta .btn--xl {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.hero-2026__cta .btn--xl:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.4);
}

.hero-2026__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.hero-2026__link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.hero-2026__scroll {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
}

.hero-2026__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-border), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(0.6); }
}

/* ========== Sections ========== */
.home-section {
  padding: clamp(3rem, 8vh, 6rem) 0;
}

.container--wide {
  max-width: 1100px;
}

.home-section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.04em;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

.home-section__lead {
  text-align: center;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto clamp(2.5rem, 6vw, 3rem);
  line-height: 1.6;
}

.home-section__cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ========== Bento Grid ========== */
.bento-grid {
  display: grid;
  gap: 1rem;
  grid-auto-rows: minmax(140px, auto);
}

.bento-niches {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
}

.bento-niches .bento-cell--wide {
  grid-column: span 2;
}

.bento-niches .bento-cell--tall {
  grid-row: span 2;
}

.bento-solutions {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
}

.bento-solutions .bento-cell--large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-solutions .bento-cell--wide {
  grid-column: span 3;
}

/* Bento cells */
.bento-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s,
    box-shadow 0.4s,
    background 0.3s;
}

.bento-cell.is-revealed {
  animation: bentoReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}

@keyframes bentoReveal {
  to { opacity: 1; transform: translateY(0); }
}

.bento-cell:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 20px 48px rgba(124, 58, 237, 0.12);
  text-decoration: none;
  color: inherit;
}

/* Glassmorphism */
.bento-cell--glass {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bento-cell--glass:hover {
  background: rgba(255, 255, 255, 0.75);
}

.bento-cell__icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.bento-cell__icon {
  color: var(--color-accent);
}

.bento-cell__icon svg {
  width: 40px;
  height: 40px;
  opacity: 0.9;
}

.bento-cell__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.bento-cell__title {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.bento-cell__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
}

.bento-cell__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: rgba(124, 58, 237, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.bento-cell__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bento-cell__tags span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: rgba(124, 58, 237, 0.06);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.bento-cell__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: auto;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s, transform 0.25s;
}

.bento-cell:hover .bento-cell__cta {
  opacity: 1;
  transform: translateX(0);
}

.bento-cell__accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bento-cell--featured {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,245,255,0.9) 100%);
  border-color: rgba(124, 58, 237, 0.18);
}

.bento-cell__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.bento-cell__list li {
  padding-left: 1.25rem;
  position: relative;
}

.bento-cell__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.7;
}

.bento-cell__meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  opacity: 0.8;
}

.bento-cell--highlight {
  position: relative;
}

.bento-cell__glow {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Ниши секция */
.home-bento {
  background: var(--color-bg);
}

/* Решения секция */
.home-solutions {
  background: linear-gradient(180deg, #faf9fc 0%, #f5f0ff 100%);
}

/* ========== Кейсы Bento ========== */
.cases-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.case-tile {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(16px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s,
    box-shadow 0.35s;
}

.case-tile.is-revealed {
  animation: bentoReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}

.case-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.08);
  text-decoration: none;
  color: inherit;
}

.case-tile__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--color-text);
}

.case-tile__industry {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: auto;
}

.case-tile__arrow {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s, transform 0.25s;
}

.case-tile:hover .case-tile__arrow {
  opacity: 1;
  transform: translateX(0);
}

.home-cases {
  background: var(--color-bg);
}

/* ========== CTA ========== */
.home-cta-block {
  position: relative;
  padding: clamp(3rem, 8vh, 5rem) 0;
  overflow: hidden;
}

.home-cta-block__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(165deg, rgba(243, 233, 255, 0.8) 0%, rgba(237, 233, 254, 0.5) 50%, #fff 100%);
  border-top: 1px solid rgba(124, 58, 237, 0.08);
}

.home-cta-block__grain {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.home-cta-block__inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.home-cta-block__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 900;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

.home-cta-block__lead {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
  line-height: 1.6;
}

/* ========== Адаптив ========== */
@media (max-width: 768px) {
  .hero-2026 { padding: clamp(3rem, 10vh, 5rem) 1.25rem; }
  .hero-2026__pill { padding: 0.4rem 1rem; font-size: 0.6875rem; letter-spacing: 0.08em; }
  .hero-2026__title { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .hero-2026__cta { flex-direction: column; }
  .hero-2026__cta .btn--xl { width: 100%; max-width: 320px; }

  .bento-niches {
    grid-template-columns: 1fr;
  }
  .bento-niches .bento-cell--wide { grid-column: span 1; }
  .bento-niches .bento-cell--tall { grid-row: span 1; }

  .bento-solutions {
    grid-template-columns: 1fr;
  }
  .bento-solutions .bento-cell--large { grid-column: span 1; grid-row: span 1; }
  .bento-solutions .bento-cell--wide { grid-column: span 1; }

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

@media (min-width: 769px) and (max-width: 1024px) {
  .bento-solutions {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-solutions .bento-cell--large { grid-column: span 2; grid-row: span 1; }
  .bento-solutions .bento-cell--wide { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-2026__inner { animation: none; }
  .hero-2026__scroll-line { animation: none; }
  .bento-cell, .case-tile { opacity: 1; transform: none; }
  .bento-cell.is-revealed, .case-tile.is-revealed { animation: none; }
}
