/* ==========================================================================
   PAGES — Page-specific styles (enhanced theme)
   ========================================================================== */

/* ---- Home: Hero split layout ---- */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.home-hero__visual {
  position: relative;
}

.home-hero__graphic {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 30%, #c7d2fe 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.home-hero__graphic::before {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  background: conic-gradient(from 45deg, transparent, rgba(var(--color-primary-rgb), 0.1), transparent, rgba(249, 115, 22, 0.06), transparent);
  animation: rotate-slow 16s linear infinite;
}

@keyframes rotate-slow {
  to { transform: rotate(360deg); }
}

.home-hero__graphic-inner {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  background-color: var(--surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-xl);
}

.home-hero__graphic-block {
  width: 60%;
  height: 12px;
  background: linear-gradient(90deg, var(--color-gray-100), var(--color-gray-200));
  border-radius: var(--radius-sm);
}

.home-hero__graphic-block:nth-child(2) {
  width: 45%;
  background: linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.2), rgba(249, 115, 22, 0.15));
}

.home-hero__graphic-block:nth-child(3) {
  width: 50%;
}

.home-hero__float {
  position: absolute;
  background-color: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-bright);
  z-index: 2;
  animation: float 3.5s ease-in-out infinite;
  border: 1px solid var(--surface-border);
}

.home-hero__float--1 {
  top: 10%;
  right: -5%;
}

.home-hero__float--2 {
  bottom: 15%;
  left: -5%;
  animation-delay: -1.8s;
}

.home-hero__float-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.home-hero__float-dot--green {
  background-color: var(--color-success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}
.home-hero__float-dot--blue {
  background-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(var(--color-primary-rgb), 0.5);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- About page ---- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-intro__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe, #ddd6fe);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
}

.about-intro__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(var(--color-primary-rgb), 0.08) 100%);
}

.about-intro__image span {
  color: var(--text-muted);
  font-size: var(--text-sm);
  position: relative;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.about-value {
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.about-value:hover {
  background-color: var(--surface-1);
  box-shadow: var(--shadow-lg);
}

.about-value__icon {
  width: 60px;
  height: 60px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  background: var(--gradient-primary);
  color: var(--surface-0);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.25);
}

.about-value__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--text-heading);
}

.about-value__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---- Services detail ---- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding-block: var(--space-12);
}

.service-detail:not(:last-child) {
  border-bottom: 1px solid var(--surface-border);
}

.service-detail--reverse {
  direction: rtl;
}

.service-detail--reverse > * {
  direction: ltr;
}

.service-detail__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--surface-border);
}

.service-detail:nth-child(1) .service-detail__visual {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}
.service-detail:nth-child(2) .service-detail__visual {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.service-detail:nth-child(3) .service-detail__visual {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.service-detail__visual span {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  position: relative;
}

.service-detail__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  background: rgba(var(--color-primary-rgb), 0.1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.service-detail__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  color: var(--text-heading);
}

.service-detail__text {
  color: var(--text-body);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.service-detail__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-detail__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-body);
}

.service-detail__list-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-info__item {
  display: flex;
  gap: var(--space-4);
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--gradient-primary);
  color: var(--surface-0);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.25);
}

.contact-info__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-heading);
  margin-bottom: var(--space-1);
}

.contact-info__value {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.contact-form-card {
  background-color: var(--surface-1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.contact-form-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  color: var(--text-heading);
}

.contact-form-card__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

/* ---- Products page ---- */
.products-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.products-showcase .product-card:first-child {
  grid-column: 1 / -1;
}

/* ==========================================================================
   MODEST UI PAGE OVERRIDES
   ========================================================================== */

.home-hero__graphic,
.about-intro__image,
.service-detail__visual {
  background: #eef2ff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.home-hero__graphic::before {
  opacity: 0.25;
}

.home-hero__graphic-inner {
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.home-hero__graphic-block {
  background: #e5e7eb;
}

.home-hero__graphic-block:nth-child(2) {
  background: #dbeafe;
}

.home-hero__float {
  background: #ffffff;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.about-value:hover,
.trust-item:hover {
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.service-detail:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.service-detail__label {
  background: #eff6ff;
  color: var(--color-primary);
}

.contact-form-card::before {
  background: var(--color-accent);
}

/* ==========================================================================
   PREMIUM SAAS PASS — Page-level Noise Reduction
   ========================================================================== */

.home-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-intro__image img,
.service-detail__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero {
  gap: 2.25rem;
}

.home-hero__graphic {
  border-radius: 14px;
  background: #f3f6fb;
}

.home-hero__graphic::before {
  display: none;
}

.home-hero__graphic-inner {
  border-radius: 12px;
  width: 80%;
  height: 80%;
}

.home-hero__float {
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.products-showcase .product-card:first-child {
  min-height: 100%;
}

.products-showcase .product-card:first-child .product-card__desc {
  max-width: 78ch;
}

.contact-form-card {
  border-radius: 14px;
}
