/* Tinglish VK Realty — signature homepage layer */

body.tinglish-home {
  --tl-navy: #0d1a5c;
  --tl-navy-deep: #070f3a;
  --tl-gold: #c9a84c;
  --tl-gold-glow: rgba(201, 168, 76, 0.35);
  --tl-mint: #63dcb4;
  --tl-mint-glow: rgba(99, 220, 180, 0.28);
  --tl-glass: rgba(255, 255, 255, 0.72);
  --tl-glass-border: rgba(255, 255, 255, 0.55);
  --tl-glass-shadow:
    0 0 0 1px rgba(18, 18, 26, 0.06),
    0 8px 32px -8px rgba(13, 26, 92, 0.14),
    0 24px 64px -24px rgba(13, 26, 92, 0.18);
  --tl-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --tl-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
}

body.tinglish-home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* scroll progress */
.tl-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 300;
  background: rgba(18, 18, 26, 0.06);
  pointer-events: none;
}

.tl-scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-dim), var(--tl-mint));
  box-shadow: 0 0 12px var(--tl-mint-glow);
  transition: width 0.08s linear;
}

/* section rail */
.tl-section-rail {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}

.tl-section-dot {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(18, 18, 26, 0.14);
  cursor: pointer;
  transition: transform 0.25s var(--tl-spring), background 0.25s var(--tl-ease);
}

.tl-section-dot::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s var(--tl-ease);
}

.tl-section-dot:hover::after,
.tl-section-dot.is-active::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.tl-section-dot.is-active {
  background: var(--tl-mint);
  box-shadow: 0 0 0 4px var(--tl-mint-glow);
  transform: scale(1.15);
}

/* nav upgrade */
body.tinglish-home .site-nav {
  padding-top: 18px;
}

body.tinglish-home .nav-links {
  gap: 12px;
  padding: 6px 8px 6px 20px;
  background: var(--tl-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--tl-glass-border);
  border-radius: 999px;
  box-shadow: 0 4px 24px -8px rgba(13, 26, 92, 0.12);
}

body.tinglish-home .nav-link.nav-cta {
  padding: 8px 18px;
  background: var(--text);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--tl-ease), box-shadow 0.2s ease, background 0.2s ease;
}

body.tinglish-home .nav-link.nav-cta:hover {
  background: var(--tl-navy);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(13, 26, 92, 0.35);
}

body.tinglish-home .nav-link:not(.nav-cta) {
  font-size: 0.78rem;
  font-weight: 500;
}

/* glass copy panels */
body.tinglish-home .copy-panel {
  padding: clamp(22px, 3vw, 32px);
  background: var(--tl-glass);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--tl-glass-border);
  border-radius: 20px;
  box-shadow: var(--tl-glass-shadow);
  transform: translateY(14px);
  transition:
    opacity 0.55s var(--tl-ease),
    transform 0.65s var(--tl-spring),
    clip-path 0.08s linear;
}

body.tinglish-home .copy-panel.active {
  transform: translateY(0);
}

body.tinglish-home .copy-panel--occlude {
  background: rgba(255, 255, 255, 0.82);
}

body.tinglish-home .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  margin-bottom: 16px;
  background: rgba(99, 220, 180, 0.12);
  border: 1px solid rgba(99, 220, 180, 0.28);
  border-radius: 999px;
  letter-spacing: 0.1em;
}

body.tinglish-home .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tl-mint);
  box-shadow: 0 0 8px var(--tl-mint-glow);
  animation: tl-pulse 2.2s ease-out infinite;
}

@keyframes tl-pulse {
  0% { box-shadow: 0 0 0 0 var(--tl-mint-glow); }
  70% { box-shadow: 0 0 0 8px rgba(99, 220, 180, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 220, 180, 0); }
}

body.tinglish-home .copy-panel h2 {
  font-weight: 800;
  font-size: clamp(1.55rem, 2.9vw, 2.35rem);
  line-height: 1.06;
}

body.tinglish-home .copy-panel h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--tl-navy) 0%, #2a3fa8 55%, var(--tl-gold) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.tinglish-home .telugu-accent {
  font-family: "Noto Sans Telugu", "Tiro Telugu", serif;
  font-weight: 500;
  color: var(--tl-navy);
  -webkit-text-fill-color: var(--tl-navy);
}

/* hero stats */
.tl-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 4px;
}

.tl-stat-chip {
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(18, 18, 26, 0.06);
  border-radius: 12px;
  text-align: center;
}

.tl-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--tl-navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tl-stat-val--gold { color: var(--tl-gold-dim, var(--gold-dim)); }

.tl-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* CTAs */
body.tinglish-home .cta-row {
  gap: 10px;
  margin-top: 18px;
}

.tl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--tl-ease), box-shadow 0.2s ease, background 0.2s ease;
}

.tl-btn:active { transform: scale(0.97); }

.tl-btn--primary {
  color: #04140d;
  background: linear-gradient(135deg, var(--tl-mint) 0%, #4ec99e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 16px -4px var(--tl-mint-glow);
}

.tl-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 24px -6px var(--tl-mint-glow);
}

.tl-btn--primary.is-playing {
  background: linear-gradient(135deg, #4ec99e 0%, var(--tl-mint) 100%);
}

.tl-btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(18, 18, 26, 0.1);
}

.tl-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.85);
}

.tl-btn-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
}

.tl-btn-icon svg {
  width: 14px;
  height: 14px;
}

/* live call floater */
.tl-live-call {
  position: fixed;
  left: clamp(16px, 3vw, 32px);
  bottom: clamp(20px, 4vh, 36px);
  z-index: 140;
  width: min(320px, calc(100vw - 32px));
  padding: 14px 16px;
  background: linear-gradient(145deg, var(--tl-navy-deep) 0%, var(--tl-navy) 70%, #1a2d8f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 48px -12px rgba(7, 15, 58, 0.55);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.6s var(--tl-ease), transform 0.6s var(--tl-spring);
  pointer-events: none;
}

.tl-live-call.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.tl-live-call.is-playing .tl-wave span {
  animation-duration: 0.7s;
}

.tl-live-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tl-live-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--tl-gold) 0%, #e4c878 100%);
  color: var(--tl-navy-deep);
  border-radius: 50%;
}

.tl-live-meta {
  flex: 1;
  min-width: 0;
}

.tl-live-meta strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tl-live-meta span {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.tl-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.tl-wave span {
  display: block;
  width: 3px;
  height: 100%;
  background: var(--tl-mint);
  border-radius: 2px;
  transform-origin: center;
  animation: tl-wave 2.4s var(--tl-ease) infinite;
}

.tl-wave span:nth-child(1) { animation-delay: 0s; height: 40%; }
.tl-wave span:nth-child(2) { animation-delay: 0.15s; height: 70%; }
.tl-wave span:nth-child(3) { animation-delay: 0.3s; height: 100%; }
.tl-wave span:nth-child(4) { animation-delay: 0.45s; height: 65%; }
.tl-wave span:nth-child(5) { animation-delay: 0.6s; height: 45%; }

@keyframes tl-wave {
  0%, 100% { transform: scaleY(1); opacity: 0.85; }
  50% { transform: scaleY(0.4); opacity: 0.45; }
}

.tl-live-bubble {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 3.2em;
  transition: opacity 0.35s ease;
}

.tl-live-bubble.is-fading { opacity: 0.35; }

.tl-live-bubble .tl-en {
  color: #e4c878;
  font-weight: 500;
}

/* spotlight section */
.tl-spotlight {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vh, 120px) clamp(24px, 5vw, 64px) clamp(80px, 14vh, 128px);
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99, 220, 180, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(201, 168, 76, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.tl-spotlight-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.tl-spotlight-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dim);
  background: rgba(99, 220, 180, 0.1);
  border: 1px solid rgba(99, 220, 180, 0.22);
  border-radius: 999px;
}

.tl-spotlight h2 {
  margin: 0 0 16px;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--text);
}

.tl-spotlight-lead {
  margin: 0 0 40px;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.tl-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.tl-feature-card {
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(18, 18, 26, 0.06);
  border-radius: 18px;
  box-shadow: 0 8px 32px -16px rgba(13, 26, 92, 0.12);
  transition: transform 0.3s var(--tl-spring), box-shadow 0.3s ease;
}

.tl-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px -20px rgba(13, 26, 92, 0.18);
}

.tl-feature-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--tl-navy) 40%, var(--muted) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tl-feature-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.tl-feature-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

/* marquee */
.tl-marquee-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tl-marquee {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: tl-marquee 42s linear infinite;
}

.tl-marquee:hover { animation-play-state: paused; }

@keyframes tl-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tl-marquee-pill {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 18, 26, 0.07);
  border-radius: 999px;
  white-space: nowrap;
}

.tl-marquee-pill em {
  font-style: normal;
  font-weight: 700;
  color: var(--tl-navy);
}

.tl-spotlight-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.tl-spotlight-cta .tl-btn--primary {
  padding: 14px 28px;
  font-size: 0.9rem;
}

/* reveal */
.tl-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--tl-ease), transform 0.7s var(--tl-spring);
}

.tl-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tl-reveal--delay { transition-delay: 0.12s; }
.tl-reveal--delay2 { transition-delay: 0.24s; }

/* loader tinglish */
body.tinglish-home .loader-wordmark .wm-realty {
  background: linear-gradient(135deg, var(--gold) 0%, var(--tl-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.tinglish-home .loader-label {
  letter-spacing: 0.18em;
}

/* responsive */
@media (max-width: 900px) {
  .tl-section-rail { display: none; }

  body.tinglish-home .copy-panel {
    padding: 20px 22px;
    border-radius: 16px;
  }

  .tl-hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .tl-stat-chip { padding: 10px 6px; }

  .tl-stat-val { font-size: 1rem; }

  .tl-live-call {
    left: 16px;
    right: 16px;
    width: auto;
    bottom: 16px;
  }

  .tl-spotlight-grid {
    grid-template-columns: 1fr;
  }

  body.tinglish-home .nav-links .nav-link:not(.nav-cta) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-marquee { animation: none; flex-wrap: wrap; width: 100%; }
  .tl-wave span { animation: none; }
  .tl-reveal { opacity: 1; transform: none; }
  .tl-live-call { opacity: 1; transform: none; }
}