﻿/* =========================================================
   NIVAK TECHNOLOGIES — SHARED APP PRODUCT PAGE
   ========================================================= */

.app-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding-block: 92px 108px;

  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(52, 120, 219, 0.15),
      transparent 35%
    ),
    radial-gradient(
      circle at 92% 20%,
      rgba(245, 130, 32, 0.12),
      transparent 32%
    );
}

.app-hero::before {
  content: "";

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

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

  background-size: 48px 48px;

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

html[data-theme="dark"] .app-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
    );
}

.app-hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(380px, 1.1fr);

  align-items: center;
  gap: clamp(52px, 7vw, 96px);
}

.app-hero-content {
  max-width: 690px;
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-bottom: 28px;
}

.app-main-icon {
  width: 88px;
  height: 88px;

  object-fit: cover;

  border-radius: 24px;

  box-shadow:
    0 22px 48px rgba(11, 46, 99, 0.22);
}

.app-identity-meta {
  display: grid;
  gap: 8px;
}

.app-hero h1 {
  margin-bottom: 22px;

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

.app-tagline {
  max-width: 620px;

  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.8;
}

.app-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 32px;
}

.app-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;

  margin-top: 38px;
  padding-top: 28px;

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

.app-meta-item {
  display: grid;
  gap: 3px;

  min-width: 110px;
}

.app-meta-item strong {
  color: var(--color-text);
  font-size: 0.96rem;
}

.app-meta-item span {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.feature-graphic-frame {
  position: relative;

  padding: 16px;

  border: 1px solid var(--color-border);
  border-radius: 30px;

  background: var(--color-surface);
  box-shadow: var(--shadow-large);

  transform: rotate(1deg);
}

.feature-graphic-frame::after {
  content: "";

  position: absolute;
  inset: 15% 8% -10%;
  z-index: -1;

  border-radius: 50%;

  background:
    linear-gradient(
      110deg,
      rgba(52, 120, 219, 0.34),
      rgba(245, 130, 32, 0.26)
    );

  filter: blur(48px);
  opacity: 0.65;
}

.feature-graphic {
  width: 100%;

  border-radius: 20px;
}

.product-section {
  position: relative;
}

.product-section--soft {
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(52, 120, 219, 0.035),
      transparent
    );
}

.product-intro {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;

  align-items: start;
}

.product-intro-copy {
  font-size: 1.08rem;
  line-height: 1.9;
}

.product-intro-copy p:last-child {
  margin-bottom: 0;
}

.feature-card {
  min-height: 260px;
}

.feature-card h3 {
  margin-top: 22px;
}

.feature-number {
  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(52, 120, 219, 0.16),
      rgba(245, 130, 32, 0.13)
    );

  color: var(--color-primary-600);

  font-size: 0.78rem;
  font-weight: 900;
}

.calculator-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calculator-chip {
  display: inline-flex;
  align-items: center;

  padding: 10px 14px;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);

  background: var(--color-surface);

  color: var(--color-text-soft);

  font-size: 0.86rem;
  font-weight: 700;
}

.screenshot-shell {
  position: relative;
}

.screenshot-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 300px);
  gap: 20px;

  overflow-x: auto;
  overscroll-behavior-inline: contain;

  padding: 12px 4px 28px;

  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.screenshot-card {
  scroll-snap-align: start;

  padding: 10px;

  border: 1px solid var(--color-border);
  border-radius: 26px;

  background: var(--color-surface);
  box-shadow: var(--shadow-small);

  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.screenshot-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.screenshot-card img {
  width: 100%;
  height: auto;

  border-radius: 18px;
}

.privacy-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;

  padding: 44px;

  border: 1px solid var(--color-border);
  border-radius: 32px;

  background:
    linear-gradient(
      135deg,
      rgba(52, 120, 219, 0.07),
      rgba(245, 130, 32, 0.06)
    );
}

.privacy-points {
  display: grid;
  gap: 14px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.privacy-points li {
  position: relative;

  padding-left: 26px;

  color: var(--color-text-soft);
  font-weight: 600;
}

.privacy-points li::before {
  content: "✓";

  position: absolute;
  left: 0;

  color: var(--color-success);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 18px;

  background: var(--color-surface);
  box-shadow: var(--shadow-small);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 20px 22px;

  color: var(--color-text);

  cursor: pointer;

  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";

  color: var(--color-primary-600);

  font-size: 1.35rem;
  line-height: 1;

  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 20px;
}

.faq-answer p {
  margin: 0;
}

.testing-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;

  padding: 46px;

  border-radius: 32px;

  background:
    linear-gradient(
      120deg,
      #0b2e63,
      #1851a0
    );

  box-shadow: var(--shadow-large);
}

.testing-panel h2,
.testing-panel p {
  color: #ffffff;
}

.testing-panel p {
  max-width: 650px;

  opacity: 0.82;
}

.testing-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  flex-shrink: 0;
}

.testing-panel .button--secondary {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

@media (max-width: 950px) {
  .app-hero-grid,
  .product-intro,
  .privacy-panel {
    grid-template-columns: 1fr;
  }

  .feature-graphic-frame {
    max-width: 760px;

    transform: none;
  }

  .testing-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .app-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.3rem);
  }

  .app-identity {
    align-items: flex-start;
  }

  .app-main-icon {
    width: 72px;
    height: 72px;

    border-radius: 20px;
  }

  .app-action-row,
  .testing-panel-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-action-row .button,
  .testing-panel-actions .button {
    width: 100%;
  }

  .privacy-panel,
  .testing-panel {
    padding: 26px;
  }

  .screenshot-scroller {
    grid-auto-columns: minmax(215px, 82vw);
  }
}
