﻿/* =========================================================
   NIVAK TECHNOLOGIES — PREMIUM HOME PAGE
   ========================================================= */

.hero {
  isolation: isolate;
  min-height: min(900px, calc(100vh - var(--header-height)));
  padding-block: 110px 120px;

  background:
    linear-gradient(
      115deg,
      rgba(52, 120, 219, 0.08),
      transparent 40%
    ),
    linear-gradient(
      245deg,
      rgba(245, 130, 32, 0.09),
      transparent 42%
    );
}

.hero::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -3;

  background-image:
    linear-gradient(
      rgba(21, 34, 56, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(21, 34, 56, 0.035) 1px,
      transparent 1px
    );

  background-size: 48px 48px;

  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.75),
      transparent 92%
    );
}

html[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    );
}

.hero-grid {
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(360px, 0.78fr);

  gap: clamp(48px, 7vw, 96px);
}

.hero-content h1 {
  max-width: 800px;
  margin-bottom: 28px;

  font-size: clamp(3.25rem, 6vw, 6.25rem);
  letter-spacing: -0.055em;
}

.hero-content h1 .gradient-text {
  display: block;

  background-image:
    linear-gradient(
      100deg,
      var(--color-primary-600) 4%,
      #6574bd 48%,
      var(--color-accent-500) 96%
    );
}

.hero-description {
  max-width: 650px;
  margin-bottom: 0;

  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.8;
}

.hero-actions {
  margin-top: 34px;
}

.hero-highlights {
  gap: 0;
  margin-top: 46px;
}

.hero-highlights div {
  min-width: 145px;
  padding-right: 26px;
  margin-right: 26px;

  border-right: 1px solid var(--color-border);
}

.hero-highlights div:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero-highlights strong {
  color: var(--color-text);

  font-size: 1.55rem;
  line-height: 1;
}

.hero-highlights span {
  margin-top: 7px;
  max-width: 130px;

  line-height: 1.45;
}

.hero-visual {
  perspective: 1200px;
}

.hero-panel {
  padding: 38px;

  border-radius: 36px;

  background:
    linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 255, 255, 0.74)
    );

  box-shadow:
    0 42px 100px rgba(7, 26, 56, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  transform:
    rotateY(-4deg)
    rotateX(1.5deg);
}

html[data-theme="dark"] .hero-panel {
  background:
    linear-gradient(
      150deg,
      rgba(22, 39, 65, 0.98),
      rgba(12, 25, 43, 0.88)
    );

  box-shadow:
    0 42px 100px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-panel:hover {
  transform:
    rotateY(0)
    rotateX(0)
    translateY(-6px);

  transition: transform 420ms ease;
}

.hero-panel .app-symbol {
  width: 70px;
  height: 70px;
  margin-top: 24px;

  border-radius: 22px;

  font-size: 1.08rem;
}

.hero-panel h2 {
  margin-top: 24px;

  letter-spacing: -0.045em;
}

.hero-panel p {
  font-size: 0.98rem;
  line-height: 1.75;
}

.hero-panel-tags span {
  padding: 8px 12px;

  border-color: rgba(52, 120, 219, 0.15);
}

.hero-orb {
  width: 460px;
  height: 460px;

  opacity: 0.24;
  filter: blur(44px);
}

.hero-orb--one {
  left: -240px;
}

.hero-orb--two {
  right: -230px;
}

#apps {
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(52, 120, 219, 0.035) 18%,
      rgba(245, 130, 32, 0.025) 82%,
      transparent
    );
}

#apps .section-heading {
  margin-bottom: 54px;
}

#apps .section-heading h2 {
  max-width: 760px;

  letter-spacing: -0.045em;
}

.app-card {
  min-height: 100%;
  padding: 30px;

  border-radius: 28px;
}

.app-card:nth-child(1) {
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(52, 120, 219, 0.12),
      transparent 34%
    ),
    var(--color-surface);
}

.app-card:nth-child(2) {
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(245, 130, 32, 0.12),
      transparent 34%
    ),
    var(--color-surface);
}

.app-card:nth-child(3) {
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(139, 79, 220, 0.12),
      transparent 34%
    ),
    var(--color-surface);
}

.app-card:nth-child(4) {
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(22, 131, 83, 0.12),
      transparent 34%
    ),
    var(--color-surface);
}

.app-card h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: -0.035em;
}

.app-card p {
  min-height: 76px;
}

.app-card .text-link {
  margin-top: 8px;
}

.company-strip {
  position: relative;
  overflow: hidden;

  padding: 52px;

  border-radius: 34px;

  background:
    linear-gradient(
      125deg,
      rgba(52, 120, 219, 0.08),
      rgba(255, 255, 255, 0.4) 46%,
      rgba(245, 130, 32, 0.09)
    );
}

html[data-theme="dark"] .company-strip {
  background:
    linear-gradient(
      125deg,
      rgba(52, 120, 219, 0.12),
      rgba(16, 30, 51, 0.72) 46%,
      rgba(245, 130, 32, 0.1)
    );
}

.company-strip::after {
  content: "NIVAK";

  position: absolute;
  right: -22px;
  bottom: -48px;

  color: var(--color-text);

  font-size: clamp(6rem, 13vw, 11rem);
  font-weight: 950;
  letter-spacing: -0.08em;

  opacity: 0.025;
  pointer-events: none;
}

.company-strip h2 {
  position: relative;
  z-index: 1;

  max-width: 620px;

  letter-spacing: -0.045em;
}

.company-strip p {
  position: relative;
  z-index: 1;

  font-size: 1.02rem;
  line-height: 1.85;
}

.value-card {
  min-height: 270px;
}

.value-card .card-icon {
  width: 48px;
  height: 48px;

  color: var(--color-primary-600);
  font-size: 0.84rem;
}

.value-card h3 {
  margin-top: 26px;
}

.value-card p {
  line-height: 1.8;
}

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding: 54px;

  background:
    linear-gradient(
      120deg,
      #0b2e63,
      #174b96 52%,
      #2864bd
    );
}

.cta-panel::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 255, 255, 0.18),
      transparent 34%
    ),
    linear-gradient(
      120deg,
      transparent,
      rgba(245, 130, 32, 0.1)
    );
}

.cta-panel h2 {
  max-width: 620px;

  letter-spacing: -0.045em;
}

.site-footer {
  margin-top: 24px;
}

.footer-grid {
  gap: 58px;
}

.footer-description {
  margin-top: 22px;

  line-height: 1.75;
}

@media (max-width: 1000px) {
  .hero {
    padding-block: 90px;
  }

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

  .hero-content {
    max-width: 800px;
  }

  .hero-visual {
    width: min(100%, 620px);
  }

  .hero-panel {
    transform: none;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-block: 70px;
  }

  .hero-content h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .hero-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-highlights div {
    min-width: 0;
    padding: 0 0 18px;
    margin: 0;

    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .hero-highlights div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .hero-panel,
  .company-strip,
  .cta-panel {
    padding: 26px;
  }

  .app-card p {
    min-height: auto;
  }
}
