/* SPDX-License-Identifier: MIT */
/* Copyright (C) 2026 Abhishek Sengar */

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -120px 0 0;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 12% 18%, rgb(var(--kinetix-400-rgb) / 0.18), transparent 70%),
    radial-gradient(40% 50% at 88% 12%, rgb(var(--chromaflow-400-rgb) / 0.16), transparent 70%),
    radial-gradient(45% 55% at 70% 85%, rgb(var(--intrinsicflow-400-rgb) / 0.16), transparent 70%),
    radial-gradient(35% 45% at 25% 90%, rgb(var(--specimen-400-rgb) / 0.14), transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(13, 15, 26, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 15, 26, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000000, transparent 75%);
}

.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
  }
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.hero-copy h1 {
  font-size: clamp(44px, 7.2vw, 88px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-highlight {
  background: linear-gradient(95deg, var(--kinetix) 0%, var(--chroma) 35%, var(--intrinsic) 70%, var(--specimen) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 20px;
  perspective: 1800px;
}

.hero-stack {
  position: relative;
  aspect-ratio: 16 / 11;
  transform-style: preserve-3d;
  transform: rotateX(10deg) rotateY(-16deg) rotateZ(2deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-visual:hover .hero-stack {
  transform: rotateX(4deg) rotateY(-6deg) rotateZ(0deg);
}

.hero-shot {
  position: absolute;
  width: 78%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid rgba(13, 15, 26, 0.1);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 4px rgba(13, 15, 26, 0.06), 0 30px 60px -24px rgba(13, 15, 26, 0.45);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-shot-1 {
  left: 0;
  top: 0;
  transform: translateZ(0);
}

.hero-shot-2 {
  left: 8%;
  top: 9%;
  transform: translateZ(40px);
}

.hero-shot-3 {
  left: 15%;
  top: 18%;
  transform: translateZ(80px);
}

.hero-shot-4 {
  left: 22%;
  top: 27%;
  transform: translateZ(120px);
}

.hero-visual:hover .hero-shot-2 {
  transform: translateZ(60px) translate(6px, 4px);
}

.hero-visual:hover .hero-shot-3 {
  transform: translateZ(110px) translate(12px, 8px);
}

.hero-visual:hover .hero-shot-4 {
  transform: translateZ(160px) translate(18px, 12px);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-raised);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-chip:hover {
  transform: translateY(-2px);
  border-color: var(--tool-color);
}

.hero-chip .shape-tile {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.hero-chip .shape-tile svg {
  width: 14px;
  height: 14px;
}

.studio-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .studio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.studio-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.studio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lifted), 0 24px 48px -28px rgb(var(--tool-rgb) / 0.55);
}

.studio-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--tool-soft);
}

.studio-card-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--tool-color);
}

.studio-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transform: scale(1.02);
  transform-origin: top left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.studio-card:hover .studio-card-media img {
  transform: scale(1.06);
}

.studio-card-body {
  display: grid;
  gap: 16px;
  padding: 24px;
  flex: 1;
  align-content: start;
}

.studio-card-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-card-title h3 {
  font-size: 26px;
  font-weight: 800;
}

.studio-card-title h3 a {
  text-decoration: none;
}

.studio-card-kind {
  margin: 4px 0 0;
  color: var(--tool-color);
  font-size: 14px;
  font-weight: 700;
}

.studio-card-body > p {
  margin: 0;
  color: var(--muted);
}

.studio-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 4px;
}

.hero.is-collection {
  padding-bottom: clamp(40px, 6vw, 72px);
}

.collection-hero {
  display: grid;
  justify-items: center;
  gap: 24px;
  max-width: 880px;
  text-align: center;
}

.collection-hero h1 {
  font-size: clamp(46px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.collection-hero .hero-lead {
  max-width: 40em;
}

.collection-hero .button-row,
.collection-hero .hero-points {
  justify-content: center;
}

.project-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.project-label.is-large {
  color: var(--ink-soft);
  font-size: 15px;
}

.project-feature {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
}

@media (min-width: 980px) {
  .project-feature {
    grid-template-columns: 1fr 1.1fr;
  }
}

.project-feature.is-atelier {
  background: radial-gradient(60% 80% at 100% 0%, rgb(var(--chromaflow-400-rgb) / 0.1), transparent 70%), radial-gradient(60% 80% at 100% 100%, rgb(var(--intrinsicflow-400-rgb) / 0.1), transparent 70%), var(--surface);
}

.project-feature.is-vektor-project {
  background: radial-gradient(70% 90% at 100% 0%, rgba(99, 102, 241, 0.32), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(6, 182, 212, 0.18), transparent 60%), #0d0f1a;
  border-color: #23273a;
  color: #ffffff;
}

.project-feature-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.project-feature h3 {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.project-feature p {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.is-vektor-project .project-label,
.is-vektor-project p {
  color: rgba(255, 255, 255, 0.72);
}

.project-feature-visual {
  display: block;
}

.hero-chips.is-start {
  justify-content: flex-start;
}

.brand-tile.is-vektor-tile {
  background: linear-gradient(160deg, #818cf8, #4f46e5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 0 #3730a3, 0 6px 12px -4px rgba(79, 70, 229, 0.6);
}

.brand-tile.is-vektor-tile svg {
  fill: #ffffff;
}

.button.is-vektor-button {
  --button-face: #6366f1;
  --button-edge: #3730a3;
}

.install-line {
  max-width: 100%;
  overflow-x: auto;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  white-space: nowrap;
}

.install-line code {
  padding: 0;
  background: none;
  color: #c7d2fe;
}

.vektor-preview {
  padding: 24px 20px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: var(--vk-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}

.project-upcoming {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 24px clamp(20px, 4vw, 40px);
  border-style: dashed;
  border-width: 2px;
  background: transparent;
  box-shadow: none;
}

.project-upcoming > div {
  flex: 1;
  min-width: 220px;
}

.project-upcoming h3 {
  font-size: 22px;
}

.project-upcoming p {
  margin: 6px 0 0;
  color: var(--muted);
}

.project-upcoming-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-raised);
  color: var(--muted);
  font: 700 26px/1 var(--display-font);
}

.principles {
  display: grid;
  gap: 16px;
}

@media (min-width: 680px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .principles {
    grid-template-columns: repeat(4, 1fr);
  }
}

.principle {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
}

.principle-mark {
  background: linear-gradient(95deg, var(--kinetix), var(--chroma), var(--intrinsic));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 800 28px/1 var(--display-font);
}

.principle h3 {
  font-size: 20px;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 999px) {
  .hero-stack {
    transform: rotateX(8deg) rotateY(-10deg);
  }
}

@media (max-width: 640px) {
  .hero-stack {
    aspect-ratio: auto;
    transform: none;
  }
  .hero-visual:hover .hero-stack {
    transform: none;
  }
  .hero-shot-1,
  .hero-shot-2,
  .hero-shot-3 {
    display: none;
  }
  .hero-shot-4,
  .hero-visual:hover .hero-shot-4 {
    position: static;
    width: 100%;
    transform: none;
  }
  .vektor-preview {
    transform: none;
  }
}

.learn-cards {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .learn-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.learn-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(20px, 3vw, 28px);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.learn-card:hover {
  transform: translateY(-3px);
  border-color: var(--tool-color);
}

.learn-card strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display-font);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.learn-card small {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.learn-card-arrow {
  margin-left: auto;
  color: var(--tool-color);
  font-size: 22px;
  font-weight: 700;
}
