/* TicareX — Ana sayfa: ultra premium efekt katmanı */

@property --rx-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.page-home {
  background: #070d14;
  overflow-x: clip;
}

.page-home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(255, 184, 0, 0.10), transparent 55%),
    radial-gradient(ellipse 45% 35% at 88% 38%, rgba(126, 87, 194, 0.07), transparent 55%),
    radial-gradient(ellipse 45% 35% at 8% 70%, rgba(38, 198, 218, 0.06), transparent 55%);
}

.page-home .site-header,
.page-home .landing-hero,
.page-home .hx-marquee,
.page-home .section,
.page-home .cta-band,
.page-home .site-footer {
  position: relative;
  z-index: 2;
}

/* ── Scroll progress / partiküller / spotlight ── */

.rx-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  background: linear-gradient(90deg, #ffb800, #ffd24d, #ffb800);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.6);
  pointer-events: none;
}

.rx-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.rx-spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(
    560px circle at var(--sx, 50%) var(--sy, 35%),
    rgba(255, 184, 0, 0.055),
    transparent 70%
  );
}

.rx-spotlight.is-on { opacity: 1; }

/* ── Hero girişi ── */

.page-home .hero-badge {
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  opacity: 0;
  animation: hxFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

a.hero-badge:hover {
  border-color: rgba(255, 184, 0, 0.7);
  background: rgba(255, 184, 0, 0.16);
  transform: translateY(-1px);
}

.page-home .hero-badge::before {
  animation: hxBlink 1.6s ease-in-out infinite;
}

.page-home .hero-title-line1,
.page-home .hero-title-line2,
.page-home .hero-title-line3 {
  display: inline-block;
  opacity: 0;
  transform: translateY(26px);
  animation: hxFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-home .hero-title-line1 { animation-delay: 0.2s; }
.page-home .hero-title-line2 { animation-delay: 0.32s; }
.page-home .hero-title-line3 { animation-delay: 0.44s; }

.page-home .landing-hero h1 em {
  background: linear-gradient(110deg, #8a6400 0%, #ffb800 22%, #ffe9a8 40%, #ffb800 58%, #8a6400 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hxShimmer 5s linear 1.4s infinite;
}

.page-home .hero-lead {
  opacity: 0;
  animation: hxFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.page-home .hero-actions {
  opacity: 0;
  animation: hxFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

/* ── Marquee ── */

.hx-marquee {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  margin: 6px 0 56px;
  border-top: 1px solid rgba(255, 184, 0, 0.14);
  border-bottom: 1px solid rgba(255, 184, 0, 0.14);
  background: rgba(255, 184, 0, 0.025);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.hx-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: hxMarquee 32s linear infinite;
  will-change: transform;
}

.hx-marquee-seq {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 238, 244, 0.5);
  white-space: nowrap;
}

.hx-marquee-seq em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 184, 0, 0.5);
}

.hx-marquee-seq .hx-star {
  color: rgba(255, 184, 0, 0.55);
  font-size: 0.95rem;
}

/* ── Scroll reveal (yalnızca JS yüklendiyse) ── */

.fx .page-home [data-reveal] {
  opacity: 0;
  translate: 0 42px;
}

.fx .page-home [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 110ms),
    translate 0.85s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 110ms);
}

/* ── Section head ── */

.page-home .section-label {
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  font-family: var(--font-display);
  font-weight: 800;
}

/* ── Feature kartları: accent + dönen kenarlık + mouse glow + tilt ── */

.page-home .feature-grid {
  perspective: 1400px;
}

.page-home .feature-card {
  --accent: var(--gold);
  --mx: 50%;
  --my: 50%;
  --tx: 0deg;
  --ty: 0deg;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(
      420px circle at var(--mx) var(--my),
      color-mix(in srgb, var(--accent) 8%, transparent),
      transparent 65%
    ),
    linear-gradient(155deg, rgba(24, 33, 46, 0.96), rgba(8, 12, 19, 0.99));
  transform: rotateX(var(--tx)) rotateY(var(--ty)) translateZ(0);
  transform-style: preserve-3d;
  transition: border-color 0.25s, transform 0.25s ease, box-shadow 0.25s;
}

.page-home .feature-card:hover {
  transform: rotateX(var(--tx)) rotateY(var(--ty)) translateZ(0);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
}

.page-home .feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--rx-angle),
    transparent 0%,
    color-mix(in srgb, var(--accent) 80%, white) 12%,
    transparent 26%,
    transparent 55%,
    color-mix(in srgb, var(--accent) 45%, transparent) 68%,
    transparent 82%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rxSpin 7s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-home .feature-card:hover::after { opacity: 1; }

.page-home .feature-icon {
  color: var(--accent);
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.02);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow:
    0 0 26px color-mix(in srgb, var(--accent) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.page-home .feature-points li::before {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, white));
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* ── Keyframes ── */

@keyframes hxFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hxShimmer {
  to { background-position: -200% center; }
}

@keyframes hxMarquee {
  to { transform: translateX(-50%); }
}

@keyframes hxBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes rxSpin {
  to { --rx-angle: 360deg; }
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .hx-marquee { margin-bottom: 40px; }
  .rx-spotlight { display: none; }
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-badge,
  .page-home .hero-title-line1,
  .page-home .hero-title-line2,
  .page-home .hero-title-line3,
  .page-home .hero-lead,
  .page-home .hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .page-home .landing-hero h1 em {
    animation: none;
    background-position: 50% center;
  }

  .fx .page-home [data-reveal] {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .page-home .feature-card {
    transform: none;
  }

  .page-home .feature-card::after,
  .page-home .hero-badge::before,
  .hx-marquee-track {
    animation: none !important;
  }

  .rx-particles,
  .rx-spotlight { display: none; }
}
