/* ==========================================================================
   MANKA FX — New York Sanctuary Redesign (Root Build)
   - Full-screen Midtown Manhattan skyscraper background
   - 52-second (45–60s) continuous slow cinematic pan
   - Soft optical blur + peaceful dark architectural twilight overlay
   - Centered identity: MANKA FX | A JOURNEY OF GROWTH. | Learn. Explore. Achieve.
   - Peaceful frosted-glass container: Featured Telegram + 2x3 aligned grid
   ========================================================================== */

:root {
  --bg-deep: #07090e;
  --glass-panel: rgba(13, 16, 23, 0.54);
  --glass-tile: rgba(255, 255, 255, 0.048);
  --glass-tile-hover: rgba(255, 255, 255, 0.098);
  --glass-featured-hover: rgba(255, 255, 255, 0.14);

  --border-glass: rgba(255, 255, 255, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(226, 211, 180, 0.44);

  --accent-champagne: #e2d3b4;
  --accent-gold: #cbb282;

  --text-primary: #f8f9fb;
  --text-secondary: rgba(240, 242, 246, 0.78);
  --text-muted: rgba(220, 224, 232, 0.52);

  --font-display: 'Cinzel', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sanctuary: 28px;
  --radius-featured: 20px;
  --radius-tile: 16px;
  --radius-pill: 9999px;

  --ease-calm: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   FULL-SCREEN NEW YORK SKYSCRAPER BACKGROUND (52s Slow Cinematic Pan)
   ========================================================================== */
.nyc-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg-deep);
}

.nyc-pan-layer {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  will-change: transform;
  animation: nycCinematicPan 24s ease-in-out infinite alternate;
}

.nyc-pan-layer picture {
  display: block;
  width: 100%;
  height: 100%;
}

.nyc-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: blur(2.6px) saturate(0.96) contrast(1.04);
  transform: scale(1.03);
}

.nyc-dark-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 9, 15, 0.48) 0%,
    rgba(7, 10, 16, 0.42) 44%,
    rgba(5, 7, 12, 0.72) 100%
  );
}

.nyc-ambient-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 88% 80% at 50% 45%,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(4, 6, 10, 0.56) 100%
  );
}

.calm-dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   CENTERED FOREGROUND STAGE
   ========================================================================== */
.foreground-stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 20px 38px;
}

.center-column {
  width: 100%;
  max-width: 590px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

/* ==========================================================================
   BRAND HERO — Centered Foreground Identity
   ========================================================================== */
.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: calmReveal 0.95s var(--ease-calm) both;
}

.profile-medallion {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(203, 178, 130, 0.36));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  margin-bottom: 13px;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.verified-seal {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent-champagne);
  color: #0a0c10;
  border: 2px solid #0b0e14;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verified-seal svg {
  width: 11px;
  height: 11px;
}

.brand-handle {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent-champagne);
  margin-bottom: 8px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.2vw, 3.1rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  line-height: 1.12;
  color: var(--text-primary);
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.growth-manifesto {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.journey-headline {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  text-transform: uppercase;
  color: rgba(248, 249, 251, 0.94);
}

.journey-pillars {
  font-family: var(--font-editorial);
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--accent-champagne);
}

.journey-welcome {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  padding-left: 0.12em;
  color: var(--text-secondary);
}

/* ==========================================================================
   PREMIUM, PEACEFUL GLASS-STYLE LINK CONTAINER
   ========================================================================== */
.glass-sanctuary {
  width: 100%;
  padding: 22px;
  border-radius: var(--radius-sanctuary);
  background: var(--glass-panel);
  backdrop-filter: blur(30px) saturate(142%);
  -webkit-backdrop-filter: blur(30px) saturate(142%);
  border: 1px solid var(--border-glass);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.17);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: calmReveal 1.02s var(--ease-calm) 0.1s both;
}

.glass-interactive {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
  transition:
    transform 0.34s var(--ease-calm),
    background 0.34s var(--ease-calm),
    border-color 0.34s var(--ease-calm),
    box-shadow 0.34s var(--ease-calm);
}

.glass-interactive::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--spot-x) var(--spot-y),
    rgba(255, 255, 255, 0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.38s ease;
  pointer-events: none;
}

.glass-interactive:hover::before {
  opacity: 1;
}

.glass-interactive:focus-visible {
  outline: 2px solid var(--accent-champagne);
  outline-offset: 2px;
}

/* 1. PROMINENT TELEGRAM FEATURED CARD */
.telegram-featured-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-featured);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.115) 0%,
    rgba(226, 211, 180, 0.085) 55%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.telegram-featured-card:hover {
  transform: translateY(-2px);
  background: var(--glass-featured-hover);
  border-color: var(--border-hover);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.telegram-featured-card:active {
  transform: translateY(0) scale(0.992);
}

.telegram-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.telegram-icon-box {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 15px;
  background: rgba(226, 211, 180, 0.16);
  border: 1px solid rgba(226, 211, 180, 0.36);
  color: var(--accent-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.34s var(--ease-calm);
}

.telegram-icon-box svg {
  width: 23px;
  height: 23px;
}

.telegram-featured-card:hover .telegram-icon-box {
  transform: scale(1.05);
}

.telegram-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.featured-kicker {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-champagne);
}

.telegram-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  line-height: 1.25;
}

.telegram-sub {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.35;
}

.telegram-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(248, 249, 251, 0.94);
  color: #0b0e14;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-calm);
}

.telegram-cta-pill svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-calm);
}

.telegram-featured-card:hover .telegram-cta-pill {
  background: #ffffff;
}

.telegram-featured-card:hover .telegram-cta-pill svg {
  transform: translateX(3px);
}

/* 2. DIVIDER */
.sanctuary-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
}

.divider-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 3. NEAT 2x3 ALIGNED SECONDARY GRID UNDERNEATH */
.secondary-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.secondary-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 13px 15px;
  border-radius: var(--radius-tile);
  background: var(--glass-tile);
  border: 1px solid var(--border-subtle);
}

.secondary-tile:hover {
  transform: translateY(-2px);
  background: var(--glass-tile-hover);
  border-color: rgba(255, 255, 255, 0.24);
}

.secondary-tile:active {
  transform: translateY(0) scale(0.99);
}

.secondary-tile-partner {
  border-color: rgba(226, 211, 180, 0.24);
  background: rgba(226, 211, 180, 0.058);
}

.secondary-tile-partner:hover {
  border-color: var(--border-hover);
  background: rgba(226, 211, 180, 0.115);
}

.tile-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(248, 249, 251, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-calm);
}

.tile-icon svg {
  width: 18px;
  height: 18px;
}

.tile-icon-accent {
  background: rgba(226, 211, 180, 0.14);
  border-color: rgba(226, 211, 180, 0.32);
  color: var(--accent-champagne);
}

.secondary-tile:hover .tile-icon {
  color: var(--accent-champagne);
  border-color: rgba(226, 211, 180, 0.35);
}

.tile-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.tile-meta {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-arrow {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-calm);
}

.tile-arrow svg {
  width: 14px;
  height: 14px;
}

.secondary-tile:hover .tile-arrow {
  color: var(--accent-champagne);
  transform: translate(2px, -2px);
}

/* ==========================================================================
   PEACEFUL FOOTER & DISCLOSURE
   ========================================================================== */
.peaceful-footer {
  width: 100%;
  max-width: 540px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px;
  animation: calmReveal 1.1s var(--ease-calm) 0.2s both;
}

.footer-disclaimer {
  font-size: 10.5px;
  line-height: 1.62;
  color: var(--text-muted);
}

.footer-disclaimer strong {
  color: rgba(240, 242, 246, 0.72);
  font-weight: 600;
}

.footer-copyright {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(240, 242, 246, 0.6);
}

/* ==========================================================================
   RESPONSIVE MOBILE DESIGN
   ========================================================================== */
@media (max-width: 560px) {
  .foreground-stage {
    padding: 30px 14px 28px;
    align-items: flex-start;
  }

  .center-column {
    gap: 22px;
  }

  .profile-medallion {
    width: 62px;
    height: 62px;
    margin-bottom: 12px;
  }

  .brand-title {
    font-size: 2rem;
    letter-spacing: 0.18em;
    padding-left: 0.18em;
  }

  .journey-headline {
    font-size: 11px;
    letter-spacing: 0.22em;
    padding-left: 0.22em;
  }

  .journey-pillars {
    font-size: 1.16rem;
  }

  .journey-welcome {
    font-size: 11.5px;
    letter-spacing: 0.1em;
    padding-left: 0.1em;
  }

  .glass-sanctuary {
    padding: 16px;
    border-radius: 24px;
    gap: 15px;
  }

  .telegram-featured-card {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 14px;
  }

  .telegram-cta-pill {
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
  }

  .secondary-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .secondary-tile {
    padding: 12px;
    gap: 10px;
    min-height: 62px;
  }

  .tile-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .tile-icon svg {
    width: 16px;
    height: 16px;
  }

  .tile-name {
    font-size: 13px;
  }

  .tile-meta {
    font-size: 10.5px;
  }

  .tile-arrow {
    display: none;
  }
}

@media (max-width: 359px) {
  .secondary-links-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   KEYFRAMES & REDUCED MOTION
   ========================================================================== */
@keyframes nycCinematicPan {
  0% {
    transform: scale(1.05) translate3d(-6.8%, -3.2%, 0);
  }
  33% {
    transform: scale(1.12) translate3d(2.4%, 2.8%, 0);
  }
  66% {
    transform: scale(1.08) translate3d(-2.6%, 3.4%, 0);
  }
  100% {
    transform: scale(1.15) translate3d(6.8%, -2.2%, 0);
  }
}

@keyframes calmReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
