/* ══════════════════════════════════════════════════════════════════
   TRACKTELE STYLE • TUFAN LANDING PAGE
   Matching: BOSS-NEXUS.TRACKTELE.NET
   ══════════════════════════════════════════════════════════════════ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  background: #0b0b0b;
  color: #f4f4f4;
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  cursor: pointer;
  position: relative;
  user-select: none;
}

:root {
  --lime: #c8ff2e;
  --lime-shadow: #3c4f08;
  --btn-bottom-shadow: #6f8f12;
  --btn-glow: rgba(200, 255, 46, 0.55);
  --halo-glow: rgba(200, 255, 46, 0.5);
  --tt-bg: rgba(20, 20, 20, 0.8);
  --tt-fg: #8a8a8a;
  --tt-line: rgba(255, 255, 255, 0.1);
  --tt-strong: #f2f2f2;
}

/* THEMES SUPPORT */
body[data-theme="cyber_radar"] {
  --lime: #c8ff2e;
  --lime-shadow: #3c4f08;
  --btn-bottom-shadow: #6f8f12;
  --btn-glow: rgba(200, 255, 46, 0.55);
  --halo-glow: rgba(200, 255, 46, 0.5);
}

body[data-theme="luxury_gold"] {
  --lime: #ffd700;
  --lime-shadow: #594700;
  --btn-bottom-shadow: #8c7000;
  --btn-glow: rgba(255, 215, 0, 0.55);
  --halo-glow: rgba(255, 215, 0, 0.5);
}

body[data-theme="telegram_blue"] {
  --lime: #00d2ff;
  --lime-shadow: #004b5c;
  --btn-bottom-shadow: #007691;
  --btn-glow: rgba(0, 210, 255, 0.55);
  --halo-glow: rgba(0, 210, 255, 0.5);
}

body[data-theme="coral_flame"] {
  --lime: #ff3366;
  --lime-shadow: #5c0018;
  --btn-bottom-shadow: #8f0026;
  --btn-glow: rgba(255, 51, 102, 0.55);
  --halo-glow: rgba(255, 51, 102, 0.5);
}

body[data-theme="matrix_green"] {
  --lime: #00ff66;
  --lime-shadow: #00471c;
  --btn-bottom-shadow: #00732e;
  --btn-glow: rgba(0, 255, 102, 0.55);
  --halo-glow: rgba(0, 255, 102, 0.5);
}

/* Giant background typography marquee */
.type {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4vh 0;
  pointer-events: none;
  overflow: hidden;
}

.row {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  font-weight: 900;
  font-size: clamp(84px, 27vw, 170px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.row span {
  padding-right: 0.35em;
}

.row.o {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.13);
}

.row.f {
  color: rgba(200, 255, 46, 0.07);
}

body[data-theme="luxury_gold"] .row.f { color: rgba(255, 215, 0, 0.07); }
body[data-theme="telegram_blue"] .row.f { color: rgba(0, 210, 255, 0.07); }
body[data-theme="coral_flame"] .row.f { color: rgba(255, 51, 102, 0.07); }
body[data-theme="matrix_green"] .row.f { color: rgba(0, 255, 102, 0.07); }

.row.l {
  animation: left 26s linear infinite;
}

.row.r {
  animation: right 30s linear infinite;
}

@keyframes left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes right {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

/* Background Gradients */
.fade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 72% 48% at 50% 48%, rgba(11, 11, 11, 0.96) 30%, rgba(11, 11, 11, 0.55) 70%, rgba(11, 11, 11, 0.2) 100%);
}

.flare {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 120vmax;
  height: 120vmax;
  margin: -60vmax 0 0 -60vmax;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 255, 46, 0.10), rgba(200, 255, 46, 0));
  animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* Stage Container */
.stage {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 22px calc(60px + env(safe-area-inset-bottom, 0px));
}

@keyframes up {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

/* Photo as a Tilted Sticker */
.sticker {
  position: relative;
  width: 150px;
  height: 150px;
  animation: drop 0.9s cubic-bezier(0.34, 1.4, 0.64, 1) 0.1s both;
}

@keyframes drop {
  from { opacity: 0; transform: translate3d(0, -26px, 0) rotate(-14deg) scale(0.85); }
  to { opacity: 1; transform: rotate(-4deg); }
}

.sticker-in {
  position: absolute;
  inset: 0;
  animation: wobble 6s ease-in-out 1.2s infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(3deg) translate3d(0, -4px, 0); }
}

.photo {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: var(--lime);
  padding: 5px;
  box-shadow: 7px 7px 0 var(--lime-shadow), 0 18px 40px -14px rgba(200, 255, 46, 0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 25px;
  background-color: #1a1a1a;
  background-image: url('avatar.jpg');
  background-size: cover;
  background-position: center;
}

.tick {
  position: absolute;
  right: -11px;
  top: -11px;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 3px 0 #000);
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both;
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.3) rotate(-30deg); }
  to { opacity: 1; transform: none; }
}

/* Name Heading */
.name {
  margin-top: 38px;
  max-width: 100%;
  font-weight: 800;
  font-size: clamp(26px, 8vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #f4f4f4;
  overflow-wrap: break-word;
  text-wrap: balance;
  animation: up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* 3D Tactile Push-Button Key */
.cta-zone {
  position: relative;
  width: min(100%, 330px);
  margin-top: 34px;
  animation: up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.halo {
  position: absolute;
  inset: -14px;
  border-radius: 28px;
  border: 1.5px solid var(--halo-glow);
  opacity: 0;
  pointer-events: none;
  animation: halo 2.6s cubic-bezier(0.2, 0.7, 0.3, 1) 1.5s infinite;
}

@keyframes halo {
  0% { transform: scale(0.94); opacity: 0.9; }
  100% { transform: scale(1.08); opacity: 0; }
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70px;
  border-radius: 20px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  background: var(--lime);
  color: #0b0b0b;
  box-shadow: 0 7px 0 var(--btn-bottom-shadow), 0 7px 0 1.5px #000, 0 22px 40px -14px var(--btn-glow);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.3s ease;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  animation: sheen 3.2s ease-in-out 1.8s infinite;
}

@keyframes sheen {
  0% { left: -45%; }
  50%, 100% { left: 130%; }
}

.cta:active {
  transform: translate3d(0, 6px, 0);
  box-shadow: 0 1px 0 var(--btn-bottom-shadow), 0 1px 0 1.5px #000, 0 10px 20px -12px var(--btn-glow);
}

.cta-in {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.plane {
  width: 21px;
  height: 21px;
  flex: none;
}

/* Tap Ripple Effect */
.tap {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: tap 0.6s ease-out forwards;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 62%);
}

@keyframes tap {
  to { transform: scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
