/* TupApp 2.0 — restrained corporate refinement layer */
:root {
  --radius-lg: 18px;
  --radius-xl: 26px;
  --container-max: 1200px;
  --shadow-card: 0 18px 55px rgba(24, 39, 75, 0.075);
  --shadow-card-hover: 0 26px 70px rgba(24, 39, 75, 0.12);
}

body {
  background-image:
    radial-gradient(circle at 12% 4%, rgba(var(--color-primary-rgb), .045), transparent 24rem),
    radial-gradient(circle at 88% 9%, rgba(var(--color-tertiary-rgb), .04), transparent 22rem);
  background-attachment: fixed;
}

.navbar {
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.navbar-brand span {
  font-weight: 820;
  letter-spacing: -.035em;
}

.navbar-nav a {
  font-size: .88rem;
  font-weight: 600;
}

.hero {
  min-height: min(780px, 92svh);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 8% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

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

.hero h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: .97;
  letter-spacing: -.065em;
}

.hero-description {
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.75;
}

.btn {
  min-height: 48px;
  padding-inline: 1.35rem;
  font-weight: 720;
  letter-spacing: -.01em;
}

.btn-primary {
  box-shadow: 0 12px 26px rgba(var(--color-primary-rgb), .2);
}

.section {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.section-header {
  max-width: 760px;
  margin-inline: auto;
}

.section-header h2 {
  letter-spacing: -.045em;
}

.section-label {
  letter-spacing: .14em;
  font-size: .72rem;
}

.glass-card {
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.values-grid {
  gap: 1.25rem;
}

.value-card {
  text-align: left;
  padding: 2rem;
}

.value-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(var(--color-primary-rgb), .08);
  font-size: 1.35rem;
}

.app-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(var(--color-primary-rgb), .18);
  background:
    radial-gradient(circle at 12% 50%, rgba(var(--color-primary-rgb), .11), transparent 27rem),
    var(--bg-glass);
}

.app-showcase::after {
  content: "";
  position: absolute;
  right: -7rem;
  top: -7rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(var(--color-primary-rgb), .12);
  border-radius: 50%;
}

.app-showcase-icon {
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(var(--color-primary-rgb), .18);
}

.product-grid {
  gap: 1rem;
}

.product-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
}

.product-card .product-platform {
  margin-top: auto;
}

.product-status {
  border: 1px solid rgba(var(--color-primary-rgb), .16);
}

.trust-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  box-shadow: var(--shadow-card);
}

.trust-item {
  border: 0;
  border-right: 1px solid var(--border-subtle);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.trust-item:last-child {
  border-right: 0;
}

.footer {
  border-top: 1px solid var(--border-subtle);
}

/* Olarya: real product imagery without theatrical motion */
.product-preview {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 8rem) 0;
  background:
    radial-gradient(circle at 50% 65%, rgba(111,91,214,.13), transparent 35rem),
    var(--bg-secondary);
}

.product-preview .animate-on-scroll {
  opacity: 1;
  transform: none;
}

.product-preview .container {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}

.preview-copy h2 {
  margin: .7rem 0 1rem;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.preview-copy p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.device-gallery {
  min-height: 590px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.6rem, 2vw, 1.4rem);
}

.device-shot {
  width: min(28%, 220px);
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 32px;
  background: linear-gradient(145deg, #303644, #080b10);
  box-shadow: 0 24px 55px rgba(25,25,45,.2);
}

.device-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
}

.device-shot-main {
  width: min(34%, 260px);
  transform: translateY(-12px);
  box-shadow: 0 34px 75px rgba(65,45,110,.28);
}

.device-shot-side:first-child { transform: rotate(-4deg) translateY(24px); }
.device-shot-side:last-child { transform: rotate(4deg) translateY(24px); }

@media (max-width: 800px) {
  body { background-attachment: scroll; }
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 4.5rem);
    padding-bottom: 4rem;
  }
  .product-preview .container { grid-template-columns: 1fr; text-align: center; }
  .device-gallery { min-height: auto; }
  .device-shot { width: 29%; border-radius: 24px; padding: 5px; }
  .device-shot img { border-radius: 19px; }
  .trust-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .trust-item { border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
  .trust-item:nth-child(2n) { border-right: 0; }
}

@media (max-width: 480px) {
  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.35rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }
  .device-gallery { gap: .35rem; }
  .device-shot-side { width: 27%; }
  .device-shot-main { width: 39%; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .device-shot, .glass-card, .btn { transition: none !important; }
}
